Is there an absolute maximum length of Azure Resource IDs, independent of the resource type?
Some parts of the structure are fixed (like subscription id) and others like group and resource name have documented limits. But RP namespace and resource types seem to add some unknown into the mix.
/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider-namespace}/{resource-type}/{resource-name}
There is no official documentation which specifies the max character limit for Azure Resource ID.
Fully qualified resource IDs for the resources have format as mentioned in docs:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Also, this doc specifies the max allowed limits:
subscriptionId: 36resourceGroupName: 90resourceProviderNamespace as per docs is: 45, but may be assume it to be 64 chars.resourceType: These can't be guessed. Although there is command to list the types. And Assume it to be about 256 chars.resourceName: 512 chars after a quick look at the docs.| fields | Approx. chars |
|---|---|
subscriptionId |
36 |
resourceGroupName |
90 |
resourceProviderNamespace |
64 |
resourceType |
256 |
resourceName |
512 |
| fixed chars | 44 |
| Total | 1002 |
Warning: This is an educated guess. You're welcome to improve or quote the official figure, if available in future.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With