Skip to content

az config set -h | in-line help showing Bash-only example with no indication of environment #30726

@dbradish-microsoft

Description

@dbradish-microsoft

Describe the bug

The command az config set -h instructions our customers to use az 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 -->

Image

Without quotes in PowerShell -->

Image

With quotes in Bash -->

Image

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% of Azure 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.

Image

Image

Image

Issue script & Debug output

.

Expected behavior

The equivalent Bash output.

Image

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

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamConfigureaz configure/configquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions