Registers a virtual machine image for either Linux or Windowss
Inheritance: Elastacloud.AzureManagement.Fluent.Commands.Services.ServiceCommand
        /// <summary>
        /// Gets the available virtual networks in the correct order binding the address ranges to the subnets
        /// </summary>
        public IEnumerable<VirtualNetworkingUtils.VirtualNetwork> GetAvailableVirtualNetworks(string location)
        {
            var command = new ListVirtualNetworksCommand()
            {
                SubscriptionId = SubscriptionId,
                Certificate = ManagementCertificate
            };
            command.Execute();
            List<VirtualNetworkSite> virtualNetworks = command.VirtualNetworks;
            if (location != null)
            {
                virtualNetworks = command.VirtualNetworks.Where(network => network.Location == location).ToList();
            }

            return VirtualNetworkingUtils.ConvertVNetToHierarchicalModel(virtualNetworks);
        }
 public List<VirtualNetworkSite> GetAvailableVirtualNetworks()
 {
     var command = new ListVirtualNetworksCommand()
     {
         SubscriptionId = SubscriptionId,
         Certificate = ManagementCertificate
     };
     command.Execute();
     return command.VirtualNetworks;
 }