'List virtual networks.
:return: A list of virtual networks.
:rtype: ``list`` of :class:`.AzureNetwork`'

def ex_list_networks(self):

    action = ('/subscriptions/%s/providers/Microsoft.Network/virtualnetworks' % self.subscription_id)
    r = self.connection.request(action, params={'api-version': '2015-06-15'})
    return [AzureNetwork(net['id'], net['name'], net['location'], net['properties']) for net in r.object['value']]
