craftytech
craftytech

Reputation: 37

How to reference "deployment name" in an ARM Template

Can someone show an example of how to reference the 'deployment name' in an arm template? I'm planning on using it as prefix so I can concatenate it to other resource names.

Upvotes: 2

Views: 1700

Answers (1)

4c74356b41
4c74356b41

Reputation: 72176

you can use a built-in function:

"[deployment().name]"

Reading:
https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-functions-deployment#deployment

Upvotes: 6

Related Questions