Add Service Bus delegated API permission to my App Registration
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:
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?