question

LiamEisenhaur-3769 avatar image
0 Votes"
LiamEisenhaur-3769 asked AnuragSingh-MSFT commented

Azure Monitor: Request API Permissions

I am writing an application to collect azure monitor logs. Part of that process is enabling the proper permissions for the application I register in Azure. I have done this before with Office 365 by registering an app with the Office 365 Management APIs permissions. Which permissions need to be used to allow access to get the logs for Azure Monitor? This documentation (https://docs.microsoft.com/en-us/rest/api/azure/#register-your-client-application-with-azure-ad), under the header Client Registration, says the api is called Azure Resource Manager API, but on the permissions list, there is no permission with that name that I could find. Any help would be appreciated. Thanks!
140867-image.png


azure-monitormicrosoft-graph-permissions
image.png (84.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnuragSingh-MSFT avatar image
1 Vote"
AnuragSingh-MSFT answered EisenhaurLiam-9444 commented

Hi @LiamEisenhaur-3769,

Welcome to Microsoft Q&A!

Once the app has been registered in Azure, it gets a Service principal created for it which can be used in Azure role-based access control. Azure monitor has Built-in roles which can be assigned to the registered application's service principal for desired access (Reader, Contributor or Custom). The role-based access control is set at resource level. Please refer to this link for ApplicationInsights related details, and this link for log analytics.


Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@LiamEisenhaur-3769, I wanted to check if you had a chance to review my answer above. Please let me know if you have any queries or concerns.
Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.

0 Votes 0 ·