From dba441e2c98df81cd799df477a8967c572863089 Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Sat, 7 Mar 2020 05:45:18 +0000 Subject: [PATCH 01/20] update help examples for command [monitor] --- .../cli/command_modules/monitor/_help.py | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/_help.py b/src/azure-cli/azure/cli/command_modules/monitor/_help.py index 0d7fbe1c316..31cc33d6a03 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/_help.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/_help.py @@ -284,6 +284,10 @@ az monitor activity-log alert scope add -n {AlertName} -g {ResourceGroup} -s /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \\ /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG \\ /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/Microsoft.KeyVault/vaults/mykey + - name: Add scopes to this activity log alert. (autogenerated) + text: | + az monitor activity-log alert scope add --name MyActivityLogAlerts --resource-group MyResourceGroup --scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/Microsoft.KeyVault/vaults/mykey + crafted: true """ helps['monitor activity-log alert scope remove'] = """ @@ -499,6 +503,10 @@ text: | az monitor alert update --name MyAlertRule --remove-action email bob@contoso.com --resource-group MyResourceGroup crafted: true + - name: Update a classic metric-based alert rule. (autogenerated) + text: | + az monitor alert update --name MyAlertRule --resource-group MyResourceGroup --set retentionPolicy.days=365 + crafted: true """ helps['monitor autoscale'] = """ @@ -605,7 +613,11 @@ --recurrence week sat sun --timezone "Pacific Standard Time" - name: Create a fixed or recurring autoscale profile. (autogenerated) text: | - az monitor autoscale profile create --autoscale-name MyAutoscale --count 2 --end 2018-12-26 --name Christmas --recurrence week sat sun --resource-group MyResourceGroup --start 2018-12-24 --timezone "Pacific Standard Time" + az monitor autoscale profile create --autoscale-name MyAutoscale --copy-rules default --count 2 --end 2018-12-26 --max-count 10 --min-count 1 --name Christmas --recurrence week sat sun --resource-group MyResourceGroup --start 2018-12-24 --timezone "Pacific Standard Time" + crafted: true + - name: Create a fixed or recurring autoscale profile. (autogenerated) + text: | + az monitor autoscale profile create --autoscale-name MyAutoscale --count 2 --max-count 10 --min-count 1 --name Christmas --recurrence week sat sun --resource-group MyResourceGroup --start 2018-12-24 --subscription MySubscription --timezone "Pacific Standard Time" crafted: true """ @@ -929,7 +941,7 @@ examples: - name: Get a list of usage metrics for a workspace. (autogenerated) text: | - az monitor log-analytics workspace list-usages --resource-group MyResourceGroup --workspace-name MyWorkspace + az monitor log-analytics workspace list-usages --resource-group MyResourceGroup --subscription MySubscription --workspace-name MyWorkspace crafted: true """ @@ -946,11 +958,21 @@ helps['monitor log-analytics workspace pack enable'] = """ type: command short-summary: Enable an intelligence pack for a given workspace. +examples: + - name: Enable an intelligence pack for a given workspace. (autogenerated) + text: | + az monitor log-analytics workspace pack enable --name MyIntelligencePack --resource-group MyResourceGroup --workspace-name MyWorkspace + crafted: true """ helps['monitor log-analytics workspace pack list'] = """ type: command short-summary: List all the intelligence packs possible and whether they are enabled or disabled for a given workspace. +examples: + - name: List all the intelligence packs possible and whether they are enabled or disabled for a given workspace. (autogenerated) + text: | + az monitor log-analytics workspace pack list --resource-group MyResourceGroup --workspace-name MyWorkspace + crafted: true """ helps['monitor log-analytics workspace show'] = """ From a1aba344a09f7fa12551a31059aba8694fc3a63b Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Sat, 7 Mar 2020 05:45:18 +0000 Subject: [PATCH 02/20] update help examples for command [network] --- .../cli/command_modules/network/_help.py | 64 ++++++++++++++++--- 1 file changed, 54 insertions(+), 10 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/network/_help.py b/src/azure-cli/azure/cli/command_modules/network/_help.py index 8192e49959d..cd1cacfa5e4 100644 --- a/src/azure-cli/azure/cli/command_modules/network/_help.py +++ b/src/azure-cli/azure/cli/command_modules/network/_help.py @@ -186,7 +186,7 @@ text: az network application-gateway frontend-ip update -g MyResourceGroup --gateway-name MyAppGateway \\ -n MyFrontendIp --public-ip-address MyNewPublicIpAddress - name: Update a frontend IP address. (autogenerated) text: | - az network application-gateway frontend-ip update --gateway-name MyAppGateway --name MyFrontendIp --resource-group MyResourceGroup --set useRemoteGateways=true + az network application-gateway frontend-ip update --gateway-name MyAppGateway --name MyFrontendIp --private-ip-address 10.10.10.50 --resource-group MyResourceGroup crafted: true """ @@ -403,6 +403,10 @@ examples: - name: Delete a probe. text: az network application-gateway probe delete -g MyResourceGroup --gateway-name MyAppGateway -n MyProbe + - name: Delete a probe. (autogenerated) + text: | + az network application-gateway probe delete --gateway-name MyAppGateway --name MyProbe --resource-group MyResourceGroup --subscription MySubscription + crafted: true """ helps['network application-gateway probe list'] = """ @@ -1122,6 +1126,11 @@ helps['network application-gateway waf-policy list'] = """ type: command short-summary: List application gateway WAF policies. +examples: + - name: List application gateway WAF policies. (autogenerated) + text: | + az network application-gateway waf-policy list --resource-group MyResourceGroup + crafted: true """ helps['network application-gateway waf-policy policy-setting'] = """ @@ -1132,6 +1141,11 @@ helps['network application-gateway waf-policy policy-setting update'] = """ type: command short-summary: Update properties of a web application firewall global configuration. +examples: + - name: Update properties of a web application firewall global configuration. (autogenerated) + text: | + az network application-gateway waf-policy policy-setting update --mode Prevention --policy-name MyPolicy --resource-group MyResourceGroup + crafted: true """ helps['network application-gateway waf-policy policy-setting list'] = """ @@ -1207,6 +1221,11 @@ helps['network application-gateway waf-policy custom-rule update'] = """ type: command short-summary: Update an application gateway WAF policy custom rule. +examples: + - name: Update an application gateway WAF policy custom rule. (autogenerated) + text: | + az network application-gateway waf-policy custom-rule update --name MyWAFPolicyRule --policy-name MyPolicy --resource-group MyResourceGroup --set useRemoteGateways=true + crafted: true """ helps['network application-gateway waf-policy managed-rule'] = """ @@ -1243,7 +1262,6 @@ - name: Remove a managed rule set by rule set group name if rule_group_name is specified. Otherwise, remove all rule set. text: | az network application-gateway waf-policy managed-rule rule-set remove --policy-name MyPolicy --resource-group MyResourceGroup --type Permanent --version IPv4 - crafted: true """ helps['network application-gateway waf-policy managed-rule rule-set list'] = """ @@ -1289,10 +1307,6 @@ text: | az network application-gateway waf-policy update --add communities='12076:5010' --name MyApplicationGatewayWAFPolicy --resource-group MyResourceGroup crafted: true - - name: Update an application gateway WAF policy. (autogenerated) - text: | - az network application-gateway waf-policy update --name MyApplicationGatewayWAFPolicy --remove tags.no_80 --resource-group MyResourceGroup - crafted: true """ helps['network application-gateway waf-policy wait'] = """ @@ -1423,6 +1437,10 @@ examples: - name: Add a Vnet to a DDoS protection plan in the same subscription. text: az network ddos-protection update -g MyResourceGroup -n MyDdosPlan --vnets MyVnet + - name: Update a DDoS protection plan. (autogenerated) + text: | + az network ddos-protection update --name MyDdosPlan --remove tags.no_80 --resource-group MyResourceGroup + crafted: true """ helps['network dns'] = """ @@ -1758,6 +1776,10 @@ examples: - name: Create an empty MX record set. text: az network dns record-set mx create -g MyResourceGroup -z www.mysite.com -n MyRecordSet + - name: Create an empty MX record set. (autogenerated) + text: | + az network dns record-set mx create --name MyRecordSet --resource-group MyResourceGroup --ttl 30 --zone-name www.mysite.com + crafted: true """ helps['network dns record-set mx delete'] = """ @@ -2638,6 +2660,11 @@ helps['network express-route port update'] = """ type: command short-summary: Update settings of an ExpressRoute port. +examples: + - name: Update settings of an ExpressRoute port (autogenerated) + text: | + az network express-route port update --name MyExpressRoutePort --resource-group MyResourceGroup + crafted: true """ helps['network express-route port identity'] = """ @@ -2883,6 +2910,10 @@ text: | az network lb inbound-nat-pool update --backend-port 8080 --enable-tcp-reset true --frontend-port-range-end 89 --frontend-port-range-start 80 --lb-name MyLb --name MyNatPool --resource-group MyResourceGroup crafted: true + - name: Update an inbound NAT address pool. (autogenerated) + text: | + az network lb inbound-nat-pool update --enable-tcp-reset true --lb-name MyLb --name MyNatPool --protocol Udp --resource-group MyResourceGroup + crafted: true """ helps['network lb inbound-nat-rule'] = """ @@ -3007,10 +3038,6 @@ text: | az network lb outbound-rule update --lb-name MyLb --name MyOutboundRule --outbound-ports 10000 --resource-group MyResourceGroup crafted: true - - name: Update an outbound-rule. (autogenerated) - text: | - az network lb outbound-rule update --frontend-ip-configs myfrontendoutbound --lb-name MyLb --name MyOutboundRule --resource-group MyResourceGroup - crafted: true """ helps['network lb probe'] = """ @@ -3683,6 +3710,11 @@ helps['network private-link-service delete'] = """ type: command short-summary: Delete a private link service. +examples: + - name: Delete a private link service. (autogenerated) + text: | + az network private-link-service delete --name MyPrivateLinkService --resource-group MyResourceGroup + crafted: true """ helps['network private-link-service list'] = """ @@ -4300,6 +4332,10 @@ examples: - name: Update a traffic manager profile to change the TTL to 300. text: az network traffic-manager profile update -g MyResourceGroup -n MyTmProfile --ttl 300 + - name: Update a traffic manager profile. (autogenerated) + text: | + az network traffic-manager profile update --name MyTmProfile --resource-group MyResourceGroup --status Enabled + crafted: true """ helps['network vnet'] = """ @@ -5489,6 +5525,10 @@ examples: - name: Delete a packet capture session. This only deletes the session and not the capture file. text: az network watcher packet-capture delete -n packetCaptureName -l westcentralus + - name: Delete a packet capture session. (autogenerated) + text: | + az network watcher packet-capture delete --location westcentralus --name packetCaptureName --subscription MySubscription + crafted: true """ helps['network watcher packet-capture list'] = """ @@ -5497,6 +5537,10 @@ examples: - name: List all packet capture sessions within a region. text: az network watcher packet-capture list -l westus + - name: List all packet capture sessions within a resource group (autogenerated) + text: | + az network watcher packet-capture list --location westus --subscription MySubscription + crafted: true """ helps['network watcher packet-capture show'] = """ From a1d3b8a36182e528f4d2f51dd3fb22da376fad9a Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Sat, 7 Mar 2020 05:45:19 +0000 Subject: [PATCH 03/20] update help examples for command [privatedns] --- src/azure-cli/azure/cli/command_modules/privatedns/_help.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/privatedns/_help.py b/src/azure-cli/azure/cli/command_modules/privatedns/_help.py index 5dbdcfcb7fd..8bbca22547a 100644 --- a/src/azure-cli/azure/cli/command_modules/privatedns/_help.py +++ b/src/azure-cli/azure/cli/command_modules/privatedns/_help.py @@ -80,7 +80,7 @@ - name: Update a virtual network link properties to enable registration. text: > az network private-dns link vnet update -g MyResourceGroup -n MyLinkName -z www.mysite.com -e True - - name: Update a virtual network link's properties. Does not modify virtual network within the link. (autogenerated) + - name: Update a virtual network link's properties (autogenerated) text: | az network private-dns link vnet update --name MyLinkName --registration-enabled true --resource-group MyResourceGroup --tags CostCenter=Marketing --zone-name www.mysite.com crafted: true @@ -169,7 +169,7 @@ -z www.mysite.com --metadata owner=WebTeam - name: Update an A record set. (autogenerated) text: | - az network private-dns record-set a update --name MyRecordSet --resource-group MyResourceGroup --set useRemoteGateways=true --zone-name www.mysite.com + az network private-dns record-set a update --name MyRecordSet --resource-group MyResourceGroup --set useRemoteGateways=true --subscription MySubscription --zone-name www.mysite.com crafted: true """ From faca4a9194f588169d9f9c62b382ae963960bd3c Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Sat, 7 Mar 2020 05:45:19 +0000 Subject: [PATCH 04/20] update help examples for command [resource] --- .../azure/cli/command_modules/resource/_help.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index d5c16af83bd..91e8b18d0e5 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -1220,7 +1220,7 @@ examples: - name: Show a policy assignment's managed identity. (autogenerated) text: | - az policy assignment identity show --name MyPolicyAssignment + az policy assignment identity show --name MyPolicyAssignment --scope '/providers/Microsoft.Management/managementGroups/MyManagementGroup' crafted: true """ @@ -1644,6 +1644,10 @@ - name: Delete a resource level lock on a vnet using a vnet id. text: > az resource lock delete -n lockName --resource /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Network/virtualNetworks/{VMName} + - name: Delete a resource-level lock. (autogenerated) + text: | + az resource lock delete --ids /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Web/sites/{WebApp} + crafted: true """ helps['resource lock list'] = """ @@ -1704,10 +1708,6 @@ - name: Tag a web app with the key 'vmlist' and value 'vm1', using a resource identifier. text: > az resource tag --tags vmlist=vm1 --ids /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Web/sites/{WebApp} - - name: Tag a resource. (autogenerated) - text: | - az resource tag --ids /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Web/sites/{WebApp} --tags vmlist=vm1 - crafted: true """ helps['resource update'] = """ From 795d8f2cd973e10f02c6157481badddad25ebd1d Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Sat, 7 Mar 2020 05:45:19 +0000 Subject: [PATCH 05/20] update help examples for command [storage] --- .../cli/command_modules/storage/_help.py | 40 ++++++++----------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 35de0c48d00..c4c4157826a 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -103,7 +103,7 @@ text: | end=`date -v+30M '+%Y-%m-%dT%H:%MZ'` az storage account generate-sas --permissions cdlruwap --account-name MyStorageAccount --services qt --resource-types sco --expiry $end -o tsv - - name: Generate a shared access signature for the account (autogenerated) + - name: Generates a shared access signature for the account (autogenerated) text: | az storage account generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2020-01-01 --https-only --permissions acuw --resource-types co --services bfqt crafted: true @@ -198,7 +198,7 @@ examples: - name: Remove a network rule. (autogenerated) text: | - az storage account network-rule remove --account-name MyAccount --resource-group MyResourceGroup --subnet MySubnetID + az storage account network-rule remove --account-name MyAccount --resource-group MyResourceGroup --subnet mysubnet crafted: true - name: Remove a network rule. (autogenerated) text: | @@ -419,7 +419,7 @@ type: string short-summary: The shared access signature for the source storage account. examples: - - name: Copy multiple blobs to a blob container. Use `az storage blob show` to check the status of the blobs. (autogenerated) + - name: Copy multiple blobs or files to a blob container. Use `az storage blob show` to check the status of the blobs. (autogenerated) text: | az storage blob copy start-batch --account-key 00000000 --account-name MyAccount --destination-container MyDestinationContainer --source-account-key MySourceKey --source-account-name MySourceAccount --source-container MySourceContainer crafted: true @@ -531,7 +531,7 @@ text: | end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` az storage blob generate-sas -c myycontainer -n MyBlob --permissions r --expiry $end --https-only - - name: Generate a shared access signature for the blob. (autogenerated) + - name: Generates a shared access signature for the blob. (autogenerated) text: | az storage blob generate-sas --account-key 00000000 --account-name MyStorageAccount --container-name MyContainer --expiry 2018-01-01T00:00:00Z --name MyBlob --permissions r crafted: true @@ -610,7 +610,7 @@ examples: - name: Show the storage blob delete-policy. (autogenerated) text: | - az storage blob service-properties delete-policy show --account-name mystorageccount --account-key 00000000 + az storage blob service-properties delete-policy show --account-name MyAccount crafted: true """ @@ -620,7 +620,7 @@ examples: - name: Update the storage blob delete-policy. (autogenerated) text: | - az storage blob service-properties delete-policy update --account-name mystorageccount --account-key 00000000 --days-retained 7 --enable true + az storage blob service-properties delete-policy update --account-name MyAccount --days-retained 7 --enable true crafted: true """ @@ -630,7 +630,7 @@ examples: - name: Update storage blob service properties. (autogenerated) text: | - az storage blob service-properties update --404-document error.html --account-name mystorageccount --account-key 00000000 --index-document index.html --static-website true + az storage blob service-properties update --404-document error.html --account-name MyAccount --index-document index.html --static-website true crafted: true """ @@ -662,7 +662,7 @@ text: az storage blob show -c MyContainer -n MyBlob - name: Get the details of a blob (autogenerated) text: | - az storage blob show --account-name mystorageccount --account-key 00000000 --container-name MyContainer --name MyBlob + az storage blob show --account-name MyAccount --container-name MyContainer --name MyBlob crafted: true """ @@ -752,7 +752,7 @@ crafted: true - name: Create the url to access a blob (autogenerated) text: | - az storage blob url --account-name storageacct --account-key 00000000 --container-name container1 --name blob1 + az storage blob url --account-name storageacct --container-name container1 --name blob1 crafted: true """ @@ -799,7 +799,7 @@ examples: - name: Check for the existence of a storage container. (autogenerated) text: | - az storage container exists --account-name mystorageccount --account-key 00000000 --name mycontainer + az storage container exists --account-name MyAccount --name MyContainer crafted: true """ @@ -814,7 +814,7 @@ az storage blob upload -n MyBlob -c mycontainer -f file.txt --sas-token $sas - name: Generates a shared access signature for the container (autogenerated) text: | - az storage container generate-sas --account-key 00000000 --account-name mystorageaccount --expiry 2020-01-01 --name mycontainer --permissions dlrw + az storage container generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2020-01-01 --name MyContainer --permissions dlrw crafted: true """ @@ -839,7 +839,7 @@ examples: - name: Get the legal hold properties of a container. (autogenerated) text: | - az storage container legal-hold show --account-name mystorageccount --container-name MyContainer + az storage container legal-hold show --account-name MyAccount --container-name MyContainer crafted: true """ @@ -998,7 +998,7 @@ examples: - name: List directories in a share. (autogenerated) text: | - az storage directory list --account-name MyAccount --share-name MyShare + az storage directory list --account-key 00000000 --account-name MyAccount --share-name MyShare crafted: true """ @@ -1179,10 +1179,6 @@ text: | az storage file download-batch --account-key 00000000 --account-name MyAccount --destination . --no-progress --source /path/to/file crafted: true - - name: Download files from an Azure Storage File Share to a local directory in a batch operation. (autogenerated) - text: | - az storage file download-batch --destination . --pattern *.py --source /path/to/file - crafted: true """ helps['storage file exists'] = """ @@ -1206,7 +1202,7 @@ text: | end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` az storage file generate-sas -p path/file.txt -s MyShare --account-name MyStorageAccount --permissions rcdw --https-only --expiry $end - - name: Generate a shared access signature for the file. (autogenerated) + - name: Generates a shared access signature for the file. (autogenerated) text: | az storage file generate-sas --account-name MyStorageAccount --expiry 2037-12-31T23:59:00Z --path path/file.txt --permissions rcdw --share-name MyShare --start 2019-01-01T12:20Z crafted: true @@ -1531,11 +1527,11 @@ end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` sas=`az storage share generate-sas -n MyShare --account-name MyStorageAccount --https-only --permissions dlrw --expiry $end -o tsv` az storage file upload -s MyShare --account-name MyStorageAccount --source file.txt --sas-token $sas - - name: Generate a shared access signature for the share. (autogenerated) + - name: Generates a shared access signature for the share. (autogenerated) text: | az storage share generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2037-12-31T23:59:00Z --name MyShare --permissions dlrw crafted: true - - name: Generate a shared access signature for the share. (autogenerated) + - name: Generates a shared access signature for the share. (autogenerated) text: | az storage share generate-sas --connection-string $connectionString --expiry 2019-02-01T12:20Z --name MyShare --permissions dlrw crafted: true @@ -1564,10 +1560,6 @@ text: | az storage share url --account-key 00000000 --account-name MyAccount --name MyFileShare crafted: true - - name: Create a URI to access a file share. (autogenerated) - text: | - az storage share url --connection-string $connectionString --name MyFileShare - crafted: true """ helps['storage table'] = """ From 15cf7c9b8205492e0413e7ea6ac0a875a398c88e Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Sat, 7 Mar 2020 05:45:19 +0000 Subject: [PATCH 06/20] update help examples for command [vm] --- .../azure/cli/command_modules/vm/_help.py | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index a0884bc1478..ddeb8c63b4a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -61,9 +61,9 @@ type: command short-summary: Grant a resource access to a managed disk. examples: - - name: Grant a resource read access to a managed disk. (autogenerated) + - name: Grant a resource access to a managed disk. (autogenerated) text: | - az disk grant-access --duration-in-seconds 3600 --name MyManagedDisk --resource-group MyResourceGroup + az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group MyResourceGroup crafted: true """ @@ -448,6 +448,11 @@ helps['ppg update'] = """ type: command short-summary: Update a proximity placement group +examples: + - name: Update a proximity placement group. (autogenerated) + text: | + az ppg update --name MyProximityPlacementGroup --resource-group MyResourceGroup + crafted: true """ helps['sig'] = """ @@ -603,7 +608,7 @@ examples: - name: Update a snapshot. (autogenerated) text: | - az snapshot update --name MySnapshot --resource-group MyResourceGroup --subscription MySubscription + az snapshot update --name MySnapshot --resource-group MyResourceGroup crafted: true """ @@ -786,6 +791,10 @@ text: > az vm convert --ids $(az vm list -g MyResourceGroup --query "[].id" -o tsv) + - name: Convert a VM with unmanaged disks to use managed disks. (autogenerated) + text: | + az vm convert --name MyVm --resource-group MyResourceGroup --subscription MySubscription + crafted: true """ helps['vm create'] = """ @@ -2479,10 +2488,6 @@ type: command short-summary: Update a VMSS. examples: - - name: Update a VMSS. (autogenerated) - text: | - az vmss update --name MyScaleSet --resource-group MyResourceGroup --set virtualMachineProfile.storageProfile.imageReference.version=16.04.201801090 - crafted: true - name: Update a VMSS' license type for Azure Hybrid Benefit. text: az vmss update --name MyScaleSet --resource-group MyResourceGroup --license-type windows_server - name: Update a VM instance's protection policies. @@ -2509,14 +2514,14 @@ type: command short-summary: Place the CLI in a waiting state until a condition of a scale set is met. examples: - - name: Place the CLI in a waiting state until a condition of a scale set is met. (autogenerated) - text: | - az vmss wait --created --name MyScaleSet --resource-group MyResourceGroup - crafted: true - name: Place the CLI in a waiting state until the VMSS has been updated. text: az vmss wait --updated --name MyScaleSet --resource-group MyResourceGroup - name: Place the CLI in a waiting state until the VMSS instance has been updated. text: az vmss wait --updated --instance-id 1 --name MyScaleSet --resource-group MyResourceGroup + - name: Place the CLI in a waiting state until a condition of a scale set is met. (autogenerated) + text: | + az vmss wait --created --name MyScaleSet --resource-group MyResourceGroup + crafted: true """ helps['vm monitor'] = """ From 6be6dae4ce8b9b913778ef01965b00718d9e0c78 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 20 Mar 2020 16:25:49 +0800 Subject: [PATCH 07/20] [storage] manually fix typo Aladdin didn't learn from last time. --- .../azure/cli/command_modules/storage/_help.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index c4c4157826a..1be90207620 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -103,7 +103,7 @@ text: | end=`date -v+30M '+%Y-%m-%dT%H:%MZ'` az storage account generate-sas --permissions cdlruwap --account-name MyStorageAccount --services qt --resource-types sco --expiry $end -o tsv - - name: Generates a shared access signature for the account (autogenerated) + - name: Generate a shared access signature for the account (autogenerated) text: | az storage account generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2020-01-01 --https-only --permissions acuw --resource-types co --services bfqt crafted: true @@ -198,7 +198,7 @@ examples: - name: Remove a network rule. (autogenerated) text: | - az storage account network-rule remove --account-name MyAccount --resource-group MyResourceGroup --subnet mysubnet + az storage account network-rule remove --account-name MyAccount --resource-group MyResourceGroup --subnet MySubnetID crafted: true - name: Remove a network rule. (autogenerated) text: | @@ -531,7 +531,7 @@ text: | end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` az storage blob generate-sas -c myycontainer -n MyBlob --permissions r --expiry $end --https-only - - name: Generates a shared access signature for the blob. (autogenerated) + - name: Generate a shared access signature for the blob. (autogenerated) text: | az storage blob generate-sas --account-key 00000000 --account-name MyStorageAccount --container-name MyContainer --expiry 2018-01-01T00:00:00Z --name MyBlob --permissions r crafted: true @@ -812,7 +812,7 @@ end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` sas=`az storage container generate-sas -n mycontainer --https-only --permissions dlrw --expiry $end -o tsv` az storage blob upload -n MyBlob -c mycontainer -f file.txt --sas-token $sas - - name: Generates a shared access signature for the container (autogenerated) + - name: Generate a shared access signature for the container (autogenerated) text: | az storage container generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2020-01-01 --name MyContainer --permissions dlrw crafted: true @@ -1202,7 +1202,7 @@ text: | end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` az storage file generate-sas -p path/file.txt -s MyShare --account-name MyStorageAccount --permissions rcdw --https-only --expiry $end - - name: Generates a shared access signature for the file. (autogenerated) + - name: Generate a shared access signature for the file. (autogenerated) text: | az storage file generate-sas --account-name MyStorageAccount --expiry 2037-12-31T23:59:00Z --path path/file.txt --permissions rcdw --share-name MyShare --start 2019-01-01T12:20Z crafted: true @@ -1527,11 +1527,11 @@ end=`date -u -d "30 minutes" '+%Y-%m-%dT%H:%MZ'` sas=`az storage share generate-sas -n MyShare --account-name MyStorageAccount --https-only --permissions dlrw --expiry $end -o tsv` az storage file upload -s MyShare --account-name MyStorageAccount --source file.txt --sas-token $sas - - name: Generates a shared access signature for the share. (autogenerated) + - name: Generate a shared access signature for the share. (autogenerated) text: | az storage share generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2037-12-31T23:59:00Z --name MyShare --permissions dlrw crafted: true - - name: Generates a shared access signature for the share. (autogenerated) + - name: Generate a shared access signature for the share. (autogenerated) text: | az storage share generate-sas --connection-string $connectionString --expiry 2019-02-01T12:20Z --name MyShare --permissions dlrw crafted: true From 4c2b1fce1a633492df6351af65c4750ce393193a Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Wed, 25 Mar 2020 12:27:51 +0800 Subject: [PATCH 08/20] [storage] manually revert storage account name --- .../azure/cli/command_modules/storage/_help.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 1be90207620..dc752062530 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -610,7 +610,7 @@ examples: - name: Show the storage blob delete-policy. (autogenerated) text: | - az storage blob service-properties delete-policy show --account-name MyAccount + az storage blob service-properties delete-policy show --account-name mystorageccount crafted: true """ @@ -620,7 +620,7 @@ examples: - name: Update the storage blob delete-policy. (autogenerated) text: | - az storage blob service-properties delete-policy update --account-name MyAccount --days-retained 7 --enable true + az storage blob service-properties delete-policy update --account-name mystorageccount --days-retained 7 --enable true crafted: true """ @@ -630,7 +630,7 @@ examples: - name: Update storage blob service properties. (autogenerated) text: | - az storage blob service-properties update --404-document error.html --account-name MyAccount --index-document index.html --static-website true + az storage blob service-properties update --404-document error.html --account-name mystorageccount --index-document index.html --static-website true crafted: true """ @@ -662,7 +662,7 @@ text: az storage blob show -c MyContainer -n MyBlob - name: Get the details of a blob (autogenerated) text: | - az storage blob show --account-name MyAccount --container-name MyContainer --name MyBlob + az storage blob show --account-name mystorageccount --container-name MyContainer --name MyBlob crafted: true """ @@ -799,7 +799,7 @@ examples: - name: Check for the existence of a storage container. (autogenerated) text: | - az storage container exists --account-name MyAccount --name MyContainer + az storage container exists --account-name mystorageccount --name MyContainer crafted: true """ @@ -814,7 +814,7 @@ az storage blob upload -n MyBlob -c mycontainer -f file.txt --sas-token $sas - name: Generate a shared access signature for the container (autogenerated) text: | - az storage container generate-sas --account-key 00000000 --account-name MyStorageAccount --expiry 2020-01-01 --name MyContainer --permissions dlrw + az storage container generate-sas --account-key 00000000 --account-name mystorageaccount --expiry 2020-01-01 --name mycontainer --permissions dlrw crafted: true """ @@ -839,7 +839,7 @@ examples: - name: Get the legal hold properties of a container. (autogenerated) text: | - az storage container legal-hold show --account-name MyAccount --container-name MyContainer + az storage container legal-hold show --account-name mystorageccount --container-name MyContainer crafted: true """ From ca48650c26116bea8fe9ad8740b8f849ccfdd37c Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Thu, 2 Apr 2020 16:37:34 +0800 Subject: [PATCH 09/20] [storage] manually revert example name storage blob --- src/azure-cli/azure/cli/command_modules/storage/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index dc752062530..1147a4dc530 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -419,7 +419,7 @@ type: string short-summary: The shared access signature for the source storage account. examples: - - name: Copy multiple blobs or files to a blob container. Use `az storage blob show` to check the status of the blobs. (autogenerated) + - name: Copy multiple blobs to a blob container. Use `az storage blob show` to check the status of the blobs. (autogenerated) text: | az storage blob copy start-batch --account-key 00000000 --account-name MyAccount --destination-container MyDestinationContainer --source-account-key MySourceKey --source-account-name MySourceAccount --source-container MySourceContainer crafted: true From b1e24ca9079cc3da2e4ea0c7457c5d7e881ff481 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Thu, 2 Apr 2020 16:54:47 +0800 Subject: [PATCH 10/20] [storage] manually revert container name --- src/azure-cli/azure/cli/command_modules/storage/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 1147a4dc530..4eb06d7268e 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -799,7 +799,7 @@ examples: - name: Check for the existence of a storage container. (autogenerated) text: | - az storage container exists --account-name mystorageccount --name MyContainer + az storage container exists --account-name mystorageccount --name mycontainer crafted: true """ From e76d65340014a04c150fd648e1ae9eba13dd512d Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Thu, 2 Apr 2020 17:02:16 +0800 Subject: [PATCH 11/20] Update src/azure-cli/azure/cli/command_modules/vm/_help.py Co-Authored-By: Feiyue Yu --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index ddeb8c63b4a..9631e5b81d5 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -61,7 +61,7 @@ type: command short-summary: Grant a resource access to a managed disk. examples: - - name: Grant a resource access to a managed disk. (autogenerated) + - name: Grant a resource read access to a managed disk. (autogenerated) text: | az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group MyResourceGroup crafted: true From 1947e1b19b63475b7991fee52a31d803147df443 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 3 Apr 2020 11:57:44 +0800 Subject: [PATCH 12/20] [vm] delete duplicated example --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 9631e5b81d5..ededee88ae6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -790,11 +790,6 @@ - name: Convert all VMs with unmanaged disks in a resource group to use managed disks. text: > az vm convert --ids $(az vm list -g MyResourceGroup --query "[].id" -o tsv) - - - name: Convert a VM with unmanaged disks to use managed disks. (autogenerated) - text: | - az vm convert --name MyVm --resource-group MyResourceGroup --subscription MySubscription - crafted: true """ helps['vm create'] = """ From f8fe07dae2453b7ab387e4344fc0b94e7366eda9 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 3 Apr 2020 11:59:55 +0800 Subject: [PATCH 13/20] [vm] revert meaningful parameter --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index ededee88ae6..251a723a215 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -608,7 +608,7 @@ examples: - name: Update a snapshot. (autogenerated) text: | - az snapshot update --name MySnapshot --resource-group MyResourceGroup + az snapshot update --name MySnapshot --resource-group MyResourceGroup --subscription MySubscription crafted: true """ From da79201c3aeb29d26e87047d5836f3ed42e4f005 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 3 Apr 2020 13:13:12 +0800 Subject: [PATCH 14/20] [monitor] remove duplicated human written example --- src/azure-cli/azure/cli/command_modules/monitor/_help.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/_help.py b/src/azure-cli/azure/cli/command_modules/monitor/_help.py index 31cc33d6a03..16eac57c076 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/_help.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/_help.py @@ -279,11 +279,6 @@ - name: --reset short-summary: Remove all the existing scopes before add new scopes. examples: - - name: Add three levels of scopes into activity-log alert. - text: > - az monitor activity-log alert scope add -n {AlertName} -g {ResourceGroup} -s /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \\ - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG \\ - /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/Microsoft.KeyVault/vaults/mykey - name: Add scopes to this activity log alert. (autogenerated) text: | az monitor activity-log alert scope add --name MyActivityLogAlerts --resource-group MyResourceGroup --scope /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myRG/Microsoft.KeyVault/vaults/mykey From 6bd7ed119b2b912011bda3ca68a37d36aedddbae Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Tue, 7 Apr 2020 15:30:50 +0800 Subject: [PATCH 15/20] [vm] revert ppg example that udpate nothing --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 251a723a215..49f872b9ed0 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -448,11 +448,6 @@ helps['ppg update'] = """ type: command short-summary: Update a proximity placement group -examples: - - name: Update a proximity placement group. (autogenerated) - text: | - az ppg update --name MyProximityPlacementGroup --resource-group MyResourceGroup - crafted: true """ helps['sig'] = """ From 72f494f72fb710c4d206b5495483e773fc211819 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 17 Apr 2020 11:34:05 +0800 Subject: [PATCH 16/20] [storage] revert aladdin removed parameter --- src/azure-cli/azure/cli/command_modules/storage/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 4eb06d7268e..3cdd65bea2d 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -610,7 +610,7 @@ examples: - name: Show the storage blob delete-policy. (autogenerated) text: | - az storage blob service-properties delete-policy show --account-name mystorageccount + az storage blob service-properties delete-policy show --account-name mystorageccount --account-key 00000000 crafted: true """ From 08242ee0527adba7f3bcc0fc36568e8004053057 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 17 Apr 2020 14:15:13 +0800 Subject: [PATCH 17/20] [storage] revert --account-key back --- .../azure/cli/command_modules/storage/_help.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index 3cdd65bea2d..bcb6262f380 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -620,7 +620,7 @@ examples: - name: Update the storage blob delete-policy. (autogenerated) text: | - az storage blob service-properties delete-policy update --account-name mystorageccount --days-retained 7 --enable true + az storage blob service-properties delete-policy update --account-name mystorageccount --account-key 00000000 --days-retained 7 --enable true crafted: true """ @@ -630,7 +630,7 @@ examples: - name: Update storage blob service properties. (autogenerated) text: | - az storage blob service-properties update --404-document error.html --account-name mystorageccount --index-document index.html --static-website true + az storage blob service-properties update --404-document error.html --account-name mystorageccount --account-key 00000000 --index-document index.html --static-website true crafted: true """ @@ -662,7 +662,7 @@ text: az storage blob show -c MyContainer -n MyBlob - name: Get the details of a blob (autogenerated) text: | - az storage blob show --account-name mystorageccount --container-name MyContainer --name MyBlob + az storage blob show --account-name mystorageccount --container-name MyContainer --account-key 00000000 --name MyBlob crafted: true """ @@ -752,7 +752,7 @@ crafted: true - name: Create the url to access a blob (autogenerated) text: | - az storage blob url --account-name storageacct --container-name container1 --name blob1 + az storage blob url --account-name storageacct --account-key 00000000 --container-name container1 --name blob1 crafted: true """ @@ -799,7 +799,7 @@ examples: - name: Check for the existence of a storage container. (autogenerated) text: | - az storage container exists --account-name mystorageccount --name mycontainer + az storage container exists --account-name mystorageccount --account-key 00000000 --name mycontainer crafted: true """ From 99967e4555369aa4a1890ac336126a0de912f4d1 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Fri, 17 Apr 2020 14:17:12 +0800 Subject: [PATCH 18/20] [storage] fix mistake --- src/azure-cli/azure/cli/command_modules/storage/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/storage/_help.py b/src/azure-cli/azure/cli/command_modules/storage/_help.py index bcb6262f380..fb4cc4cbedd 100644 --- a/src/azure-cli/azure/cli/command_modules/storage/_help.py +++ b/src/azure-cli/azure/cli/command_modules/storage/_help.py @@ -662,7 +662,7 @@ text: az storage blob show -c MyContainer -n MyBlob - name: Get the details of a blob (autogenerated) text: | - az storage blob show --account-name mystorageccount --container-name MyContainer --account-key 00000000 --name MyBlob + az storage blob show --account-name mystorageccount --account-key 00000000 --container-name MyContainer --name MyBlob crafted: true """ From 91ad25adf965bcc0cc6d0c7869b1b21291b7233a Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Mon, 20 Apr 2020 13:10:32 +0800 Subject: [PATCH 19/20] [resource] delete Aladdin deleted example --- src/azure-cli/azure/cli/command_modules/resource/_help.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index b7e11f2dc32..fe06c2140ec 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -1812,10 +1812,6 @@ - name: Tag the virtual machine 'MyVm' with the key 'vmlist' and value 'vm1' incrementally, it doesn't empty the existing tags. text: > az resource tag --tags vmlist=vm1 -g MyResourceGroup -n MyVm --resource-type "Microsoft.Compute/virtualMachines" -i - - name: Tag a resource. (autogenerated) - text: | - az resource tag --ids /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Web/sites/{WebApp} --tags vmlist=vm1 - crafted: true """ helps['resource update'] = """ From efdf710f9c0447bd4612edff9b477e680237f3f1 Mon Sep 17 00:00:00 2001 From: Jianhui Harold Date: Mon, 20 Apr 2020 13:11:45 +0800 Subject: [PATCH 20/20] Update src/azure-cli/azure/cli/command_modules/resource/_help.py Co-Authored-By: Feiyue Yu --- src/azure-cli/azure/cli/command_modules/resource/_help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/resource/_help.py b/src/azure-cli/azure/cli/command_modules/resource/_help.py index fe06c2140ec..a1f40430a4d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -1809,7 +1809,7 @@ - name: Tag a web app with the key 'vmlist' and value 'vm1', using a resource identifier. text: > az resource tag --tags vmlist=vm1 --ids /subscriptions/{SubID}/resourceGroups/{ResourceGroup}/providers/Microsoft.Web/sites/{WebApp} - - name: Tag the virtual machine 'MyVm' with the key 'vmlist' and value 'vm1' incrementally, it doesn't empty the existing tags. + - name: Tag the virtual machine 'MyVm' with the key 'vmlist' and value 'vm1' incrementally. It doesn't empty the existing tags. text: > az resource tag --tags vmlist=vm1 -g MyResourceGroup -n MyVm --resource-type "Microsoft.Compute/virtualMachines" -i """