Azure Managed Identity "userAssignedIdentities" Syntax ":{}" Meaning

Lewis Liu 0 Reputation points
2023-02-28T22:12:38.4833333+00:00

Can somebody please explain why we have to define userAssigndIdentities in below syntax?

Example:

      "type": "Microsoft.Web/sites",
      "apiVersion": "2018-11-01",
      "name": "MyFunc",
      "kind": "functionapp",
      "identity": 
      {
        "type": "UserAssigned",
        "userAssignedIdentities": { "[parameters('managedId')]": {} }      
      }
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,929 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,941 Reputation points Moderator
    2023-03-01T06:56:06.6666667+00:00

    @Lewis Liu Thanks for reaching out. As you are defining the userAssignedIdentities identity to your function app so you can refer to this section for userAssignedIdentities parameters.

    Feel free to get back to me if you need any assistance.

    
     "kind": "functionapp",
                "identity": {
                    "type": "UserAssigned",
                    "userAssignedIdentities": {               "/subscriptions/subscriptionID/resourcegroups/resourcegroupname/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userdefineidentityname": {}
                    }
                }
       
    

    Please accept as "Yes" if the answer is helpful so that it can help others in the community. If you need any help/clarification/concerns/follow up questions, then please click on "Add Comment" on my answer and provide more details.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.