dynamically add a user assigned managed identity to a function app during DevOps Deployment

Viewed 12

I am creating ARM templates to deploy an azure function. I can parameterize most things, but I am unable to parameterize UserAssignedManagedIdentities.

The value for a userAssignedManagedIdentity is not a value in the json ARM template, but is instead an object that contains the reference to the managed identity.

ARM does not allow parameterization in this instance.

I can hard code the reference to the managed identity but this is not ideal when deploying across multiple environments.

Is there a way to dynamically add a user assigned managed identity to a function app during Azure Devops Deployment?

enter image description here This does not work

enter image description here This works

0 Answers
Related