Skip to content

Commit f81f563

Browse files
author
Amson Liu
authored
Merge pull request #9368 from amsliu/v-liuamson-CI6615
New article for CI 6615.
2 parents bc87f17 + 9b62394 commit f81f563

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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.

support/azure/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ items:
2727
href: activity-logs/config-export/troubleshoot-export-of-audit-logs-to-another-tenant.md
2828
- name: Troubleshoot Activity Log Download Issues
2929
href: activity-logs/config-export/troubleshoot-activity-log-download-issues.md
30+
- name: Troubleshoot Permission Errors in Activity Log Configuration
31+
href: activity-logs/config-export/troubleshoot-permission-errors-in-activity-log-configuration.md
3032
- name: Application Insights
3133
items:
3234
- name: OpenTelemetry troubleshooting

0 commit comments

Comments
 (0)