How to enable function app's managed identity with service bus namespace?

Najam ul Saqib 340 Reputation points
2024-04-18T08:27:44.61+00:00

I want to connect my function app's system-assigned MI with the service bus namespace but when I go to the role assignment panel in Identity blade of resource, there's no option for service bus i.e. User's image

I can surely apply permissions at the RG level but that'll violate the principle of least privilege.

If I go to the way that is assigning permissions via IAM- in the service bus like https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal?tabs=delegate-condition but before that if I check the managed identities in the Managed Identities tab in Azure portal, I cannot see any of the system-assigned managed identities there to assign them the permissions.

What's the way to go about it?

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
635 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,106 questions
{count} votes

Accepted answer
  1. joseandresc 480 Reputation points Microsoft Employee
    2024-04-18T15:29:57.89+00:00

    Hello @Najam ul Saqib when you go to Service Bus namespace--> IAM -->Members

    Are you choosing the correct subscription id from the subscription dropdown? You should see your function managed identity as follows:

    Screenshot 2024-04-18 092600

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.