Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbradish-microsoft opened this issue Jan 28, 2025 · 2 comments
Assignees
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

Comments

@dbradish-microsoft
Copy link
Contributor

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

@dbradish-microsoft dbradish-microsoft added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 28, 2025
Copy link

Hi @dbradish-microsoft,

2.66.0 is not the latest Azure CLI(2.68.0).

If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.

@azure-client-tools-bot-prd azure-client-tools-bot-prd bot added the Auto-Resolve Auto resolve by bot label Jan 28, 2025
@yonzhan
Copy link
Collaborator

yonzhan commented Jan 28, 2025

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Auto-Assign Auto assign by bot Configure az configure/config labels Jan 28, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 28, 2025
@yonzhan yonzhan removed the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jan 28, 2025
@yonzhan yonzhan added this to the Backlog milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants