|
| 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. |
0 commit comments