Resources, roles, and access control in Application Insights
Assign access to users in the resource group or subscription to which your application resource belongs - not in the resource itself. Assign the Application Insights component contributor role. This ensures uniform control of access to web tests and alerts along with your application resource. Learn more.
Resources, groups and subscriptions
First, some definitions:
Resource - An instance of a Microsoft Azure service. Your Application Insights resource collects, analyzes and displays the telemetry data sent from your application. Other types of Azure resources include web apps, databases, and VMs.
To see your resources, open the Azure portal, sign in, and click All Resources. To find a resource, type part of its name in the filter field.
Resource group - Every resource belongs to one group. A group is a convenient way to manage related resources, particularly for access control. For example, into one resource group you could put a Web App, an Application Insights resource to monitor the app, and a Storage resource to keep exported data.
Subscription - To use Application Insights or other Azure resources, you sign in to an Azure subscription. Every resource group belongs to one Azure subscription, where you choose your price package and, if it's an organization subscription, choose the members and their access permissions.
- Microsoft account - The username and password that you use to sign in to Microsoft Azure subscriptions, XBox Live, Outlook.com, and other Microsoft services.
Control access in the resource group
It's important to understand that in addition to the resource you created for your application, there are also separate hidden resources for alerts and web tests. They are attached to the same resource group as your application. You might also have put other Azure services in there, such as websites or storage.
To control access to these resources it's therefore recommended to:
- Control access at the resource group or subscription level.
- Assign the Application Insights Component contributor role to users. This allows them to edit web tests, alerts, and Application Insights resources, without providing access to any other services in the group.
To provide access to another user
You must have Owner rights to the subscription or the resource group.
Navigate to resource group or directly to the resource itself
Choose Access control (IAM) from the left-hand menu.
The Add permissions view below is primarily specific to Application Insights resources, if you were viewing the access control permissions from a higher level like resource groups, you would see additional non-Application Insights-centric roles.
To view information on all Azure role-based access control built-in roles use the official reference content.
Select a role
Where applicable we link to the associated official reference documentation.
|Role||In the resource group|
|Owner||Can change anything, including user access.|
|Contributor||Can edit anything, including all resources.|
|Application Insights Component contributor||Can edit Application Insights resources, web tests and alerts.|
|Reader||Can view but not change anything.|
|Application Insights Snapshot Debugger||Gives the user permission to use Application Insights Snapshot Debugger features. Note that this role is included in neither the Owner nor Contributor roles.|
|Azure Service Deploy Release Management Contributor||Contributor role for services deploying through Azure Service Deploy.|
|Data Purger||Special role for purging personal data. See our guidance for personal data for more information.|
|ExpressRoute Administrator||Can create delete and manage express routes.|
|Log Analytics Contributor||Log Analytics Contributor can read all monitoring data and edit monitoring settings. Editing monitoring settings includes adding the VM extension to VMs; reading storage account keys to be able to configure collection of logs from Azure Storage; creating and configuring Automation accounts; adding solutions; and configuring Azure diagnostics on all Azure resources.|
|Log Analytics Reader||Log Analytics Reader can view and search all monitoring data as well as and view monitoring settings, including viewing the configuration of Azure diagnostics on all Azure resources.|
|masterreader||Allows a user to view everything but not make changes.|
|Monitoring Contributor||Can read all monitoring data and update monitoring settings.|
|Monitoring Metrics Publisher||Enables publishing metrics against Azure resources.|
|Monitoring Reader||Can read all monitoring data.|
|Resource Policy Contributor (Preview)||Backfilled users from EA, with rights to create/modify resource policy, create support ticket and read resource/hierarchy.|
|User Access Administrator||Allows a user to manage access for other users to Azure resources.|
|Website Contributor||Lets you manage websites (not web plans), but not access to them..|
'Editing' includes creating, deleting and updating:
- Web tests
- Continuous export
Select the user
If the user you want isn't in the directory, you can invite anyone with a Microsoft account. (If they use services like Outlook.com, OneDrive, Windows Phone, or XBox Live, they have a Microsoft account.)