From b310a679c1b99f889578fe7bd5a3ed514f4a5b6c Mon Sep 17 00:00:00 2001 From: bragi92 Date: Tue, 9 Jan 2024 13:44:08 -0800 Subject: [PATCH] Fix link to script in troubleshooting README (#711) Creating a PR to get this -> https://github.com/Azure/prometheus-collector/pull/710/files merged in as currently its not possible to run workflows from forks in the prometheus-collector repository. --- internal/scripts/troubleshoot/README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/internal/scripts/troubleshoot/README.md b/internal/scripts/troubleshoot/README.md index 8d09d4b2b..0cef82a38 100644 --- a/internal/scripts/troubleshoot/README.md +++ b/internal/scripts/troubleshoot/README.md @@ -13,15 +13,18 @@ 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 ` > Note: For AKS, resourceIdoftheCluster should be in this format `/subscriptions//resourceGroups//providers/Microsoft.ContainerService/managedClusters/`. - This script will generate a TroubleshootDump.txt and a ZIP file called debugLogs.zip which collects detailed information about container health onboarding. - Please [create a support ticket](https://azure.microsoft.com/en-us/support/create-ticket) in Azure and send these two files alongwith it. We will respond back to you. -