Skip to content

Commit a673f06

Browse files
author
Amson Liu
authored
Merge branch 'main' into v-liuamson-CI6611
2 parents 35e913a + 9845a6e commit a673f06

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
@@ -19,6 +19,8 @@ items:
1919
href: activity-logs/config-export/resolving-log-limit-issues-in-azure-function-apps.md
2020
- name: Centralized Configuration of Activity Logs to Event Hub
2121
href: activity-logs/config-export/centralized-configuration-of-activity-logs-to-event-hub.md
22+
- name: Troubleshoot Azure CLI Configuration Issues
23+
href: activity-logs/config-export/troubleshoot-azure-cli-configuration-issues.md
2224
- name: Application Insights
2325
items:
2426
- name: OpenTelemetry troubleshooting

0 commit comments

Comments
 (0)