Reputation: 798
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
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