oli
oli

Reputation: 798

How can I get an Azure AD security group name by ObjectID in ARM template?

I'm trying to obtain and AAD group name from its object ID using:

reference(parameters('groupId')).displayName

But I get the error:

The template reference <groupId> is not valid.

What am I doing wrong?

Upvotes: 1

Views: 1408

Answers (1)

4c74356b41
4c74356b41

Reputation: 72211

you can only reference Azure resources using the reference() function, not Azure AD entities. this is not possible. you have to do this outside of the template and pass the display name to the template.

Upvotes: 3

Related Questions