Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum length of Azure Resource IDs?

Tags:

azure

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}
like image 249
silent Avatar asked Oct 24 '25 16:10

silent


1 Answers

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.

like image 156
Rajesh Swarnkar Avatar answered Oct 27 '25 07:10

Rajesh Swarnkar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!