CmdID / az / az self-help / az self-help diagnostic
az self-help diagnostic create
Creates a diagnostics that will help you troubleshoot an issue with your azure resource. Azure CLI extensions reference
1 example 4 options Its page in the Azure CLI extensions reference
Examples
Create Diagnostic at Resource Level
az self-help diagnostic create --diagnostic-name diagnostic-name --insights [{solutionId:Demo2InsightV2}] --scope 'subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read'Identify--diagnostic-nameUnique resource name for insight resources--insightsSolutionIds that are needed to be invoked.--scopeThis is an extension resource provider and only resource level extension is supported at the moment.Options
--diagnostic-nameUnique resource name for insight resources--global-parametersGlobal parameters that can be passed to all solutionIds.--insightsSolutionIds that are needed to be invoked.--scopeThis is an extension resource provider and only resource level extension is supported at the moment.