Skip to content

Commit 9845a6e

Browse files
author
Amson Liu
authored
Merge pull request #9363 from amsliu/v-liuamson-CI6610
New article for CI 6610.
2 parents c672ba8 + 5bc5f48 commit 9845a6e

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Troubleshoot Azure CLI Configuration Issues
3+
description: Troubleshooting guide for Azure CLI configuration issues.
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 Azure CLI configuration issues
11+
12+
This article discusses issues that are related to configuring Microsoft Azure to export activity logs by using PowerShell or CLI. Because of missing proxy certificates, users might experience difficulties when they try to run PowerShell commands.
13+
14+
## Common issues and solutions
15+
16+
- **Issue:** PowerShell commands don't run.
17+
- **Root Cause:** Missing proxy certificates that are required for command execution.
18+
19+
### Instructions to resolve configuration issues
20+
21+
1. **Verify proxy settings:**
22+
- Navigate to the **Network & Internet** settings on your system.
23+
- Make sure that the proxy settings are configured correctly to allow PowerShell access.
24+
25+
2. **Install proxy certificates:**
26+
- Download the necessary proxy certificates from your network administrator.
27+
- Open the **Certificates Manager** snap-in by typing `certmgr.msc` in the Windows search bar.
28+
- Import the downloaded certificates into the **Trusted Root Certification Authorities** store.
29+
30+
3. **Test PowerShell command execution:**
31+
- Open PowerShell and run a test command to check whether the issue is resolved.
32+
- Example command: `Get-AzActivityLog -MaxRecord 5`.
33+
34+
4. **Check Azure CLI configuration:**
35+
- Run `az upgrade` to verify that the Azure CLI is updated to the latest version.
36+
- Run `az configure` to verify that the CLI is configured correctly.
37+
38+
## References
39+
40+
- [Azure CLI Documentation](/azure/cli/)
41+
- [PowerShell Documentation](/powershell/)
42+
- [Azure Activity Logs Overview](/azure/azure-monitor/essentials/activity-log)
43+
44+
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
@@ -17,6 +17,8 @@ items:
1717
href: activity-logs/config-export/exporting-directory-level-activity-logs-to-event-hub.md
1818
- name: Resolving Log Limit Issues in Azure Function Apps
1919
href: activity-logs/config-export/resolving-log-limit-issues-in-azure-function-apps.md
20+
- name: Troubleshoot Azure CLI Configuration Issues
21+
href: activity-logs/config-export/troubleshoot-azure-cli-configuration-issues.md
2022
- name: Application Insights
2123
items:
2224
- name: OpenTelemetry troubleshooting

0 commit comments

Comments
 (0)