MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.25k stars 21.42k forks source link

What role is required to link AppInsights to APIM instance #114358

Closed fgheysels closed 1 year ago

fgheysels commented 1 year ago

It is not clear from the documentation what (minimum) role is required to be able to link an Application Insights resource to an API Management resource.

It would be helpful to have this information added to the documentation.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ManoharLakkoju-MSFT commented 1 year ago

@fgheysels Thanks for your feedback! We will investigate and update as appropriate.

mumurug-MSFT commented 1 year ago

@fgheysels If you are looking for the built-in role, you need to have API Management Service Contributor role (check Built-in service roles). However, in case of a custom role with minimum required permissions, permission Microsoft.ApiManagement/service/diagnostics/write is required based on Diagnostic entity API in addition to read access to the APIM instance. Refer Microsoft.ApiManagement doc for more detailed info.

image

I suggest you review https://techcommunity.microsoft.com/t5/azure-paas-blog/usage-of-custom-rbac-roles-in-azure-api-management/ba-p/1560571 for creating a custom role and validate the permission.

@dlepow any thoughts? Can we add a similar note like in other doc?

image

dlepow commented 1 year ago

@fgheysels @mumurug-MSFT - Thanks for the feedback about this article. I'll add a note about the minimum permissions required for creating the App Insights diagnostic.

mumurug-MSFT commented 1 year ago

@fgheysels We will proceed to close this thread and feel free to let us know if any questions. Thanks again.