This PowerShell script collects logs and metrics from an Azure Blockchain Workbench instance for troubleshooting.
Collects logs and metrics from an Azure Blockchain Workbench instance for troubleshooting. This script will prompt for Azure authentication if you are not already logged in.
NOTE: If you don't have the latest Azure Powershell installed on your machine, we recommend that you use the MSI installer to get the latest at https://github.com/Azure/azure-powershell/releases. This script currently doest not work on Azure Cloud shell.
SubscriptionID to create or locate all resources.
Name of the Azure Resource Group where Blockchain Workbench has been deployed to.
Path to create the output .ZIP file. If not specified, defaults to the current directory
Number of hours to use when pulling telemetry. Default to 24 hours. Maximum value is 90 hours.
The subscription id where OMS is deployed. Only pass this parameter if the OMS for the blockchain network is deployed outside of Blockchain Workbench's resource group.
The resource group where OMS is deployed. Only pass this parameter if the OMS for the blockchain network is deployed outside of Blockchain Workbench's resource group.
The OMS workspace name. Only pass this parameter if the OMS for the blockchain network is deployed outside of Blockchain Workbench's resource group.
None. You cannot pipe objects to this script.
None. This script does not generate any output. It creates a .ZIP file which contains a summary file with a "top errors" report, last timestamp information for each Workbench microservice, and recommended actions. Following that, it creates two subfolders, "details" and "metrics" for futher troubleshooting.
C:\tmp> .\collectBlockchainWorkbenchTroubleshooting.ps1 -SubscriptionID "<subscription_id>" -ResourceGroupName "<workbench-resource-group-name>"