Skip to content

Commit

Permalink
Learn Editor: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
braieralves committed Jan 5, 2024
1 parent ed7c342 commit 17b6629
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions internal/scripts/troubleshoot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ You can use the troubleshooting script provided [here](https://raw.githubusercon

Steps:
- Open powershell using the [cloudshell](https://docs.microsoft.com/en-us/azure/cloud-shell/overview) in the azure portal.
> Note: This script supported on any Powershell supported environment: Windows and Non-Windows.

> Note: This script supported on any Powershell supported environment: Windows and Non-Windows.
For Linux, refer [Install-Powershell-On-Linux](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7) and
For Mac OS, refer [install-powershell-core-on-mac](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7) how to install powershell
- Make sure that you're using powershell (selected by default)
- Run the following command to change home directory - `cd ~`
- Run the following command to download the script - `curl -LO https://raw.githubusercontent.com/Azure/prometheus-collector/kaveesh/troubleshoot/internal/scripts/troubleshoot/TroubleshootError.ps1`
> Note: In some versions of Powershell above CURL command may not work in such cases, you can try `curl https://raw.githubusercontent.com/Azure/prometheus-collector/kaveesh/troubleshoot/internal/scripts/troubleshoot/TroubleshootError.ps1 -O TroubleshootError.ps1`
- Run the following command to download the script - `curl -LO https://raw.githubusercontent.com/Azure/prometheus-collector/main/internal/scripts/troubleshoot/TroubleshootError.ps1`

> Note: In some versions of Powershell above CURL command may not work in such cases, you can try `curl https://raw.githubusercontent.com/Azure/prometheus-collector/main/internal/scripts/troubleshoot/TroubleshootError.ps1`

- Run the following command to execute the script - `./TroubleshootError.ps1 -ClusterResourceId <resourceIdoftheCluster>`
> Note: For AKS, resourceIdoftheCluster should be in this format `/subscriptions/<subId>/resourceGroups/<rgName>/providers/Microsoft.ContainerService/managedClusters/<clusterName>`.
- This script will generate a TroubleshootDump.txt and a ZIP file called debugLogs.zip which collects detailed information about container health onboarding.
Expand Down

0 comments on commit 17b6629

Please sign in to comment.