az config set -h | in-line help showing Bash-only example with no indication of environment #30726
Labels
Auto-Assign
Auto assign by bot
Auto-Resolve
Auto resolve by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Configure
az configure/config
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Describe the bug
The command
az config set -h
instructions our customers to useaz find "az config set"
to search our AI knowledge base for examples. However, this syntax example doesn't run in PowerShell, only Bash.With quotes in PowerShell -->
Without quotes in PowerShell -->
With quotes in Bash -->
Request to engineering
Please change the instructions to
To search AI knowledge base for examples, in Bash run: az find "az config set"
Although we would like to assume in all our conceptual docs and reference examples that customers are running Bash, they simply are not. We are addressing this in our conceptual content by having environment-specific code block tags. (Even if 95% of them will say
Azure CLI with Bash
we have gained clarity for our 25% ofAzure CLI with PowerShell
code blocks). In-line help does not have this distinction capability, so we need to specify an environment when we provide in-line command examples.Related command
az config set
Errors
The command example fails in PowerShell with double quotes, single quotes and no quotes.
Issue script & Debug output
.
Expected behavior
The equivalent Bash output.
Environment Summary
{
"azure-cli": "2.66.0",
"azure-cli-core": "2.66.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"alias": "0.5.2"
}
}
Additional context
No response
The text was updated successfully, but these errors were encountered: