Add Service Bus delegated API permission to my App Registration

Giulio Caprino 0 Reputation points
2024-09-25T09:56:08.1133333+00:00

I have a console app that is authenticating similar to how az does, with OAuth 2.0 auth code grant.
I managed to add some API permissions like this:
User's image

and I'm able to use those scopes for my code to be able to act as the authenticated user.

Now I'm trying to add the API permission that correspond to the https://servicebus.azure.net/.default scope but there is no Service Bus Api listed when adding a new permission.

I need my console app to be able to list messages of a queue, dead letter them, complete them, etc, and I don't want to hardcode the connection string, it would be great if I can add a delegated permission on the service bus apis.

How can I do this?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,685 questions
0 comments No comments
{count} votes

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.