question

Desmond-3250 avatar image
0 Votes"
Desmond-3250 asked SwathiDhanwada-MSFT commented

Is there a way to force the naming of resources that automatically gets setup within Azure?

Good Day

At times there are resources that gets automatically created from within ARM. That are dependencies to other resources you create. Or at times you cannot set the name of a particular service. For example the Gateway subnet will always be called GatewaySubnet. Or the automation accounts that gets created during a replication/DR setup. Or when you create a VM the osdisk is always called OsDisk_11111111

Just to help keep consistency to all names. Is there a way to force the naming of resources that automatically gets setup within Azure? Even if its just to force all names to be lowercase.

Thanks



azure-policy
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Desmond-3250 Thanks for reaching out. Can you please check if this azure policy definition meets your requirement of enforcing naming convention on azure resources?


0 Votes 0 ·

Thank you, will the policy definition force all names to be lower case for example. Even the names automatically created by the Azure Resource Manager?

0 Votes 0 ·

@Desmond-3250 Apologies for late response. As far as I know, this policy definition evaluates all the resources and denies creating of resources when policy criteria isn't met.

0 Votes 0 ·

0 Answers