There is no official documentation which specifies the max character limit for Azure Resource ID.
Note: So this is not the answer, but an attempt to answer.
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
: 36
resourceGroupName
: 90
- longest entry for
resourceProviderNamespace
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.