Currently our team trying to automate ExpressRoute provisioning and configuration using Azure Management API and we are experiencing the error The resource type could not be found in the namespace 'Microsoft.Network' for api version '2019-07-01'.
We tried a few different API versions and issue seems to be across versions. We found the below operations/ calls are working alright under the same namespace;
- express route circuits
- express route circuit connections
However, not the list of operations below;
- express route gateways
- express route cross connections
- express route connections
- express route cross connection peerings
- express route links
We also verified by executing the Powershell command
(Get-AzureRmResourceProvider
-ProviderNamespace Microsoft.Network).ResourceTypes
which also seems to be missing the operations under Microsoft.Network
provider.
This looks like a bug in the Azure Management API where it is missing some sort of linkage/ relationship. The error we experience seems to be consistent with the docs portal when using the 'Try It' as well
e.g.: https://docs.microsoft.com/en-us/rest/api/expressroute/expressroutecrossconnections/get
{
"error": {
"code": "InvalidResourceType",
"message": "The resource type could not be found in the namespace 'Microsoft.Network' for api version '2019-07-01'."
}
}