|
| 1 | +--- |
| 2 | +title: Troubleshoot Azure CLI Configuration Issues |
| 3 | +description: Troubleshooting guide for Azure CLI configuration issues. |
| 4 | +ms.date: 07/17/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 addresses issues related to configuring the export of Azure Activity Logs using PowerShell or CLI. Users may encounter difficulties executing PowerShell commands due to missing proxy certificates. |
| 13 | + |
| 14 | +## Common Issues and Solutions |
| 15 | + |
| 16 | +- **Issue:** PowerShell commands fail to execute. |
| 17 | +- **Root Cause:** Missing proxy certificates required for command execution. |
| 18 | + |
| 19 | +### Step-by-Step Instructions to Resolve Configuration Issues |
| 20 | + |
| 21 | +#### 1. Verify Proxy Settings |
| 22 | + |
| 23 | +- Navigate to the **Network & Internet** settings on your system. |
| 24 | +- Ensure that the proxy settings are correctly configured to allow PowerShell access. |
| 25 | + |
| 26 | +#### 2. Install Proxy Certificates |
| 27 | + |
| 28 | +- Download the necessary proxy certificates from your network administrator. |
| 29 | +- Open the **Certificates Manager** by typing `certmgr.msc` in the Windows search bar. |
| 30 | +- Import the downloaded certificates into the **Trusted Root Certification Authorities** store. |
| 31 | + |
| 32 | +#### 3. Test PowerShell Command Execution |
| 33 | + |
| 34 | +- Open PowerShell and run a test command to verify if the issue is resolved. |
| 35 | +- Example command: `Get-AzActivityLog -MaxRecord 5` |
| 36 | + |
| 37 | +#### 4. Check Azure CLI Configuration |
| 38 | + |
| 39 | +- Ensure that the Azure CLI is updated to the latest version by running `az upgrade`. |
| 40 | +- Verify that the CLI is configured correctly by executing `az configure`. |
| 41 | + |
| 42 | +## Reference |
| 43 | + |
| 44 | +- [Azure CLI Documentation](https://learn.microsoft.com/azure/cli/) |
| 45 | +- [PowerShell Documentation](https://learn.microsoft.com/powershell/) |
| 46 | +- [Azure Activity Logs Overview](https://learn.microsoft.com/azure/azure-monitor/essentials/activity-log) |
| 47 | + |
| 48 | +If the issue persists after following the solution steps, please open a support case for further assistance. |
0 commit comments