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

Najam ul Saqib 100 Reputation points

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 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.
557 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,372 questions
{count} votes

1 answer

Sort by: Most helpful
  1. joseandresc 320 Reputation points Microsoft Employee

    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.