|
| 1 | +--- |
| 2 | +title: Troubleshoot Permission Errors in Activity Log Configuration |
| 3 | +description: Troubleshooting guide for permission errors in Activity Log configuration. |
| 4 | +ms.date: 07/22/2025 |
| 5 | +ms.reviewer: v-liuamson; v-gsitser |
| 6 | +ms.service: azure-monitor |
| 7 | +ms.custom: I can’t configure export of Activity Logs |
| 8 | +--- |
| 9 | + |
| 10 | +# Troubleshoot permission errors in Activity Log configuration |
| 11 | + |
| 12 | +Users might experience permission errors when they configure the Azure Activity Log to export to Log Analytics. This issue typically occurs because insufficient permissions are assigned to the custom role. This article helps you determine the root cause of the errors and apply the correct permissions to resolve the issue efficiently. |
| 13 | + |
| 14 | +## Common issues and solutions |
| 15 | + |
| 16 | +- **Authorization Failed**: This error indicates that the user doesn't have the necessary permissions to perform the action. Verify that the correct permissions are assigned and that the scope is set correctly. |
| 17 | + |
| 18 | +### Instructions to resolve permission errors |
| 19 | + |
| 20 | +1. Verify the role assignments: |
| 21 | + 1. Navigate to the Azure portal. |
| 22 | + 1. Go to **Subscriptions** and select the relevant subscription. |
| 23 | + 1. Select **Access Control (IAM)** > **Role assignments**. |
| 24 | + 1. Make sure that the custom role is assigned to the account that's responsible for creating the diagnostic settings. |
| 25 | + |
| 26 | +2. Assign the necessary permissions: |
| 27 | + 1. Duplicate the **Log Analytics Contributor** role. |
| 28 | + 1. Remove any unnecessary permissions. |
| 29 | + 1. Make sure that the **Microsoft.Insights/diagnosticSettings/write** permission is included. |
| 30 | + |
| 31 | +3. Make sure that the scope is set appropriately to the **subscription level** instead of the resource group level. |
| 32 | + |
| 33 | +4. If access was recently granted, update the credentials to reflect the changes. |
| 34 | + |
| 35 | +## References |
| 36 | + |
| 37 | +- [Azure Analysis Services Overview](/analysis-services/azure-analysis-services/analysis-services-overview?view=asallproducts-allversions&preserve-view=true) |
| 38 | +- [Log Analytics Contributor Role](/azure/role-based-access-control/built-in-roles/analytics#log-analytics-contributor) |
| 39 | +- [Azure Monitor Activity Log](/azure/azure-monitor/platform/activity-log?tabs=powershell) |
| 40 | + |
| 41 | +If the issue persists after you follow these steps, open a support case for further assistance. |
0 commit comments