If you need to also check service links
$result = az rest --method get --url
'https://management.azure.com/subscriptions/xxxx-xxx-xxx/resourceGroups/networks-prd-rg-
we/providers/Microsoft.Network/virtualNetworks/ntw_awe_prd_10.24.0.0_18?
api-version=2021-02-01' `
| ConvertFrom-Json
$withServiceLinks = $result.properties.subnets.Where({$null -ne
$PSItem.properties.serviceAssociationLinks})
foreach ($subnet in $withServiceLinks) {
foreach ($serviceAssociationLink in
$subnet.properties.serviceAssociationLinks) {
$serviceAssociationLink.properties.link
}
}
This will show all the services linked. Of course you'll need to change the url or use az network vnet commands to get all the networks and iterate over them.