azure_preview_modules icon indicating copy to clipboard operation
azure_preview_modules copied to clipboard

List of Subnets within one Virtual Network not working (wrong method call)

Open maximdorko opened this issue 3 years ago • 0 comments

When I would like to get the list of all subnets within a Virtual Network, it's not working, because 2 methods are wrong:

Line 214: self.network_client.subnets.get used instead of self.network_client.subnets.list and for "get" Subnet name is mandatory. Please check: https://docs.microsoft.com/en-us/python/api/azure-mgmt-network/azure.mgmt.network.v2020_06_01.operations.subnetsoperations?view=azure-python#list-resource-group-name--virtual-network-name----kwargs-

Line 222: results.append(self.format_item(item)) format_item is not defined. If I change it to format_result it's working.

maximdorko avatar Apr 20 '21 13:04 maximdorko