Skip to content

[lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand#32354

Merged
kairu-ms merged 1 commit into
Azure:devfrom
aupetit-ms:aupetit/lab-vm-documentation
Nov 6, 2025
Merged

[lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand#32354
kairu-ms merged 1 commit into
Azure:devfrom
aupetit-ms:aupetit/lab-vm-documentation

Conversation

@aupetit-ms
Copy link
Copy Markdown
Contributor

@aupetit-ms aupetit-ms commented Oct 29, 2025

Add double quotes with escape character, to avoid issue with documentation when user copy/paste the command.

Related command

  • az lab vm show --help
  • az lab vm list --help
  • az lab vm wait --help

Description
This PR is here to fix this issue:
Using az lab vm show to view artifacts doesn't work
The --expand help text have been updated with double quotes to help people when they copy/paste it into their terminal.

Testing Guide
Run these commands and look at the output displayed:

  • az lab vm show --help
  • az lab vm list --help
  • az lab vm wait --help

Before:
--expand : Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSched ule)'.

After:
--expand : Specify the $expand query. Example: '"properties($expand=artifacts,computeVm,networkInterface,applicableSchedu le)"'.


This checklist is used to make sure that common guidelines for a pull request are followed.

Adding double quotes with escape character, to avoid issue with documentation when user copy/paste the command.
Copilot AI review requested due to automatic review settings October 29, 2025 11:40
@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Oct 29, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd Bot commented Oct 29, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Oct 29, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the help text examples for the --expand parameter in three Azure DevTest Lab VM commands by adding escaped double quotes around the example values. The change modifies the example from 'properties($expand=...)' to '\"properties($expand=...)\"'.

  • Updated help text formatting for the --expand parameter example
  • Applied consistently across three VM-related command files
  • Added escaped double quotes to the query example value

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/azure-cli/azure/cli/command_modules/lab/aaz/latest/lab/vm/_wait.py Updated --expand help text example with escaped double quotes
src/azure-cli/azure/cli/command_modules/lab/aaz/latest/lab/vm/_show.py Updated --expand help text example with escaped double quotes
src/azure-cli/azure/cli/command_modules/lab/aaz/latest/lab/vm/_list.py Updated --expand help text example with escaped double quotes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@yonzhan yonzhan requested a review from kairu-ms October 30, 2025 00:23
@yonzhan yonzhan requested a review from jsntcy October 30, 2025 00:25
@kairu-ms
Copy link
Copy Markdown
Contributor

kairu-ms commented Nov 3, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@aupetit-ms aupetit-ms changed the title [lab] Fix #7903 Help updated (az lab vm): Adding double quotes with escape character to --expand [lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand Nov 3, 2025
@aupetit-ms aupetit-ms changed the title [lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand [lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand Nov 3, 2025
@aupetit-ms
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 32354 in repo Azure/azure-cli

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Nov 4, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@aupetit-ms aupetit-ms changed the title [lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand [lab] Fix #7903 Help updated (az lab vm): Add double quotes with escape character to --expand Nov 4, 2025
@aupetit-ms
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Commenter does not have sufficient privileges for PR 32354 in repo Azure/azure-cli

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Nov 4, 2025

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@kairu-ms kairu-ms merged commit be23c6c into Azure:dev Nov 6, 2025
55 of 56 checks passed
@jiasli
Copy link
Copy Markdown
Member

jiasli commented Nov 11, 2025

The format of the PR title is incorrect. This PR doesn't qualify as a customer-facing change either. It should start with {Lab}.

See https://github.com/Azure/azure-cli/tree/dev/doc/authoring_command_modules#submitting-pull-requests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants