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 c8faa7d42fd..dee1fc68946 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_help.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_help.py @@ -1712,6 +1712,9 @@ - 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. + 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 diff --git a/src/azure-cli/azure/cli/command_modules/resource/_params.py b/src/azure-cli/azure/cli/command_modules/resource/_params.py index 4ca8bb9d49b..19db6ae869d 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/_params.py +++ b/src/azure-cli/azure/cli/command_modules/resource/_params.py @@ -93,6 +93,10 @@ def load_arguments(self, _): c.argument('scope', help='Fully-qualified scope for retrieving links.') c.argument('filter_string', options_list=['--filter', c.deprecate(target='--filter-string', redirect='--filter', hide=True)], help='Filter string for limiting results.') + with self.argument_context('resource tag') as c: + c.argument('is_incremental', action='store_true', options_list=['--is-incremental', '-i'], + help='The option to add tags incrementally without deleting the original tags. If the key of new tag and original tag are duplicated, the original value will be overwritten.') + with self.argument_context('provider') as c: c.ignore('top') c.argument('resource_provider_namespace', options_list=['--namespace', '-n'], completer=get_providers_completion_list, help=_PROVIDER_HELP_TEXT) diff --git a/src/azure-cli/azure/cli/command_modules/resource/custom.py b/src/azure-cli/azure/cli/command_modules/resource/custom.py index 8192cb98b17..ddd032a94ff 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/custom.py +++ b/src/azure-cli/azure/cli/command_modules/resource/custom.py @@ -1343,9 +1343,9 @@ def update_resource(cmd, parameters, resource_ids=None, # pylint: unused-argument -def tag_resource(cmd, tags, resource_ids=None, - resource_group_name=None, resource_provider_namespace=None, - parent_resource_path=None, resource_type=None, resource_name=None, api_version=None): +def tag_resource(cmd, tags, resource_ids=None, resource_group_name=None, resource_provider_namespace=None, + parent_resource_path=None, resource_type=None, resource_name=None, api_version=None, + is_incremental=None): """ Updates the tags on an existing resource. To clear tags, specify the --tag option without anything else. """ parsed_ids = _get_parsed_resource_ids(resource_ids) or [_create_parsed_id(cmd.cli_ctx, @@ -1356,7 +1356,8 @@ def tag_resource(cmd, tags, resource_ids=None, resource_name)] return _single_or_collection( - [_get_rsrc_util_from_parsed_id(cmd.cli_ctx, id_dict, api_version).tag(tags) for id_dict in parsed_ids]) + [_get_rsrc_util_from_parsed_id(cmd.cli_ctx, id_dict, api_version).tag(tags, is_incremental) + for id_dict in parsed_ids]) # pylint: unused-argument @@ -2414,9 +2415,16 @@ def update(self, parameters): self.api_version, parameters) - def tag(self, tags): + def tag(self, tags, is_incremental=False): resource = self.get_resource() + if is_incremental is True: + if not tags: + raise CLIError("When modifying tag incrementally, the parameters of tag must have specific values.") + if resource.tags: + resource.tags.update(tags) + tags = resource.tags + # please add the service type that needs to be requested with PATCH type here # for example: the properties of RecoveryServices/vaults must be filled, and a PUT request that passes back # to properties will fail due to the lack of properties, so the PATCH type should be used diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tag_incrementally.yaml b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tag_incrementally.yaml new file mode 100644 index 00000000000..dc64e9b08d2 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_tag_incrementally.yaml @@ -0,0 +1,1828 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource create + Connection: + - keep-alive + ParameterSetName: + - -g -n --resource-type --is-full-object -p + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:56:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {}, "sku": {"name": "Standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource create + Connection: + - keep-alive + Content-Length: + - '69' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --resource-type --is-full-object -p + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A38.8379238Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '544' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:56:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A38.8379238Z''\"","properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '544' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"tags": {"cli-test": "test", "cli-test2": "test2"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + Content-Length: + - '52' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A42.8687809Z''\"","tags":{"cli-test":"test","cli-test2":"test2"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '591' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:56:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A42.8687809Z''\"","tags":{"cli-test":"test","cli-test2":"test2"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '591' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:48 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"tags": {"cli-test3": "test3", "cli-test4": "test4"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + Content-Length: + - '54' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A51.3809211Z''\"","tags":{"cli-test3":"test3","cli-test4":"test4"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '593' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:56:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A51.3809211Z''\"","tags":{"cli-test3":"test3","cli-test4":"test4"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '593' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"tags": {"cli-test3": "test3", "cli-test4": "test4a", "cli-test5": "test5"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + Content-Length: + - '77' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A55.6500066Z''\"","tags":{"cli-test3":"test3","cli-test4":"test4a","cli-test5":"test5"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:56:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A55.6500066Z''\"","tags":{"cli-test3":"test3","cli-test4":"test4a","cli-test5":"test5"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:56:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:56:59 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags -i + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A55.6500066Z''\"","tags":{"cli-test3":"test3","cli-test4":"test4a","cli-test5":"test5"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:57:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:57:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A56%3A55.6500066Z''\"","tags":{"cli-test3":"test3","cli-test4":"test4a","cli-test5":"test5"},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '614' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:57:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"tags": {}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource tag + Connection: + - keep-alive + Content-Length: + - '12' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --ids --tags + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '{"location":"westus","name":"vault-000002","etag":"W/\"datetime''2020-04-17T04%3A57%3A03.1421732Z''\"","tags":{},"properties":{"provisioningState":"Succeeded","privateEndpointStateForBackup":"None","privateEndpointStateForSiteRecovery":"None"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002","type":"Microsoft.RecoveryServices/vaults","sku":{"name":"Standard"}}' + headers: + cache-control: + - no-cache + content-length: + - '554' + content-type: + - application/json + date: + - Fri, 17 Apr 2020 04:57:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.RecoveryServices","namespace":"Microsoft.RecoveryServices","authorizations":[{"applicationId":"262044b1-e2ce-469f-a196-69ab7ada62d3","roleDefinitionId":"21CEC436-F7D0-4ADE-8AD8-FEC5668484CC"},{"applicationId":"b8340c3b-9267-498f-b21a-15d5547fd85e","roleDefinitionId":"8A00C8EA-8F1B-45A7-8F64-F4CC61EEE9B6"},{"applicationId":"3b2fa68d-a091-48c9-95be-88d572e08fb7","roleDefinitionId":"47d68fae-99c7-4c10-b9db-2316116a061e"},{"applicationId":"9bdab391-7bbe-42e8-8132-e4491dc29cc0","roleDefinitionId":"0383f7f5-023d-4379-b2c7-9ef786459969"}],"resourceTypes":[{"resourceType":"vaults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","Canada Central","Canada East","West Central US","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-12-20-preview","2018-07-10-preview","2018-07-10","2018-01-10","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2016-05-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"CrossResourceGroupResourceMove, + CrossSubscriptionResourceMove, SystemAssignedResourceIdentity, SupportsTags, + SupportsLocation"},{"resourceType":"operations","locations":[],"apiVersions":["2020-02-02-preview","2020-02-02","2019-06-15","2019-05-13-preview","2019-05-13","2018-07-10-preview","2018-07-10","2018-01-10","2017-09-01","2017-07-01-preview","2017-07-01","2016-12-01","2016-08-10","2016-06-01","2015-12-15","2015-12-10","2015-11-10","2015-08-15","2015-08-10","2015-06-10","2015-03-15"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-08-10"}],"capabilities":"None"},{"resourceType":"locations","locations":[],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01","2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/checkNameAvailability","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-01-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-01-10"}],"capabilities":"None"},{"resourceType":"locations/allocatedStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/allocateStamp","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2016-06-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2016-06-01"}],"capabilities":"None"},{"resourceType":"locations/backupValidateFeatures","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupPreValidateProtection","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJobs","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrJob","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupAadProperties","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrossRegionRestore","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"locations/backupCrrOperationsStatus","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-12-20-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-12-20-preview"}],"capabilities":"None"},{"resourceType":"backupProtectedItems","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2017-07-01-preview"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2017-07-01-preview"}],"capabilities":"SupportsExtension"},{"resourceType":"replicationEligibilityResults","locations":["West + US","East US","North Europe","West Europe","Brazil South","East Asia","Southeast + Asia","North Central US","South Central US","Japan East","Japan West","Australia + East","Australia Southeast","Central US","East US 2","Central India","South + India","West India","West Central US","Canada Central","Canada East","West + US 2","UK South","UK West","Korea Central","Korea South","France Central","Australia + Central","South Africa North","UAE North","Switzerland North","Germany West + Central","Norway East","Central US EUAP","East US 2 EUAP"],"apiVersions":["2018-07-10"],"apiProfiles":[{"profileVersion":"2018-06-01-profile","apiVersion":"2018-07-10"}],"capabilities":"SupportsExtension"}],"registrationState":"Registered","registrationPolicy":"RegistrationRequired"}' + headers: + cache-control: + - no-cache + content-length: + - '12934' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 17 Apr 2020 04:57:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - resource delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id + User-Agent: + - python/3.8.1 (Windows-10-10.0.18362-SP0) msrest/0.6.11 msrest_azure/0.6.3 + azure-mgmt-resource/8.0.1 Azure-SDK-For-Python AZURECLI/2.3.1 + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_tag_incrementally000001/providers/Microsoft.RecoveryServices/vaults/vault-000002?api-version=2020-02-02 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 17 Apr 2020 04:57:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-resource-requests: + - '199' + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource.py b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource.py index e0792c52d09..7a0bcfea93c 100644 --- a/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource.py +++ b/src/azure-cli/azure/cli/command_modules/resource/tests/latest/test_resource.py @@ -324,6 +324,33 @@ def test_tag_update_by_patch(self, resource_group, resource_group_location): self.cmd('resource delete --id {vault_id}', checks=self.is_empty()) + @ResourceGroupPreparer(name_prefix='cli_test_tag_incrementally', location='westus') + def test_tag_incrementally(self, resource_group, resource_group_location): + self.kwargs.update({ + 'loc': resource_group_location, + 'vault': self.create_random_name('vault-', 30), + }) + + resource = self.cmd( + 'resource create -g {rg} -n {vault} --resource-type Microsoft.RecoveryServices/vaults --is-full-object -p "{{\\"properties\\":{{}},\\"location\\":\\"{loc}\\",\\"sku\\":{{\\"name\\":\\"Standard\\"}}}}"', + checks=self.check('name', '{vault}')).get_output_in_json() + + self.kwargs['vault_id'] = resource['id'] + + self.cmd('resource tag --ids {vault_id} --tags cli-test=test cli-test2=test2', checks=self.check('tags', {'cli-test': 'test', 'cli-test2': 'test2'})) + self.cmd('resource tag --ids {vault_id} --tags cli-test3=test3 cli-test4=test4', checks=self.check('tags', {'cli-test3': 'test3', 'cli-test4': 'test4'})) + + self.cmd('resource tag --ids {vault_id} --tags cli-test4=test4a cli-test5=test5 -i', + checks=self.check('tags', {'cli-test3': 'test3', 'cli-test4': 'test4a', 'cli-test5': 'test5'})) + + with self.assertRaises(CLIError): + self.cmd('resource tag --ids {vault_id} --tags -i ') + with self.assertRaises(CLIError): + self.cmd('resource tag --ids {vault_id} --tags "" -i ') + self.cmd('resource tag --ids {vault_id} --tags', checks=self.check('tags', {})) + + self.cmd('resource delete --id {vault_id}', checks=self.is_empty()) + @ResourceGroupPreparer(name_prefix='cli_test_tag_default_location_scenario', location='westus') def test_tag_default_location_scenario(self, resource_group, resource_group_location):