Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/azure-cli/azure/cli/command_modules/vm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -1384,11 +1384,11 @@


latest=$(az vm extension image list-versions \\
--publisher {publisher} -l {location} -n {extension} \\
--publisher ${publisher} -l ${location} -n ${extension} \\
--query "[].name" -o tsv | sort | tail -n 1)

az vm extension image show -l {location} \\
--publisher {publisher} -n {extension} --version {latest}
az vm extension image show -l ${location} \\
--publisher ${publisher} -n ${extension} --version ${latest}
"""

helps['vm extension list'] = """
Expand Down Expand Up @@ -1461,9 +1461,9 @@
- name: Deallocate, generalize, and capture multiple stopped virtual machines.
text: |
vms_ids=$(az vm list -g MyResourceGroup --query "[].id" -o tsv)
az vm deallocate --ids {vms_ids}
az vm generalize --ids {vms_ids}
az vm capture --ids {vms_ids} --vhd-name-prefix MyPrefix
az vm deallocate --ids ${vms_ids}
az vm generalize --ids ${vms_ids}
az vm capture --ids ${vms_ids} --vhd-name-prefix MyPrefix

"""

Expand Down Expand Up @@ -1709,7 +1709,7 @@
text: >
latest=$(az vm image list -p OpenLogic -s 7.3 --all --query \\
"[?offer=='CentOS'].version" -o tsv | sort -u | tail -n 1)
az vm image show -l westus -f CentOS -p OpenLogic --sku 7.3 --version {latest}
az vm image show -l westus -f CentOS -p OpenLogic --sku 7.3 --version ${latest}
- name: Get the details for a VM image available in the Azure Marketplace. (autogenerated)
text: |
az vm image show --location westus --urn publisher:offer:sku:version
Expand Down