Method: Fog::Network::AzureRM::Real#list_virtual_networks_in_subscription

Defined in:
lib/fog/azurerm/requests/network/list_virtual_networks_in_subscription.rb

#list_virtual_networks_in_subscriptionObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/fog/azurerm/requests/network/list_virtual_networks_in_subscription.rb', line 6

def list_virtual_networks_in_subscription
  msg = 'Listing Virtual Networks in a subscription'
  Fog::Logger.debug msg
  begin
    virtual_networks = @network_client.virtual_networks.list_all
  rescue MsRestAzure::AzureOperationError => e
    raise_azure_exception(e, msg)
  end
  virtual_networks
end