From 97e2f060a365775d8a6b8f62dfbdd62c08dc28de Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 9 Jan 2020 16:44:45 +0800 Subject: [PATCH 1/7] [Compute] disk update: Add --disk-encryption-set and --encryption-type --- src/azure-cli/HISTORY.rst | 4 + .../azure/cli/command_modules/vm/_params.py | 5 +- .../azure/cli/command_modules/vm/custom.py | 14 +- .../test_disk_encryption_set_disk_update.yaml | 1404 +++++++++++++++++ .../vm/tests/latest/test_vm_commands.py | 41 + 5 files changed, 1465 insertions(+), 3 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 9b5d88c1d25..3c5e6dba438 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +**Compute** + +* disk update: Add --disk-encryption-set and --encryption-type + 2.0.79 ++++++ diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 3bbb09a844b..38bb6bf96cc 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -114,8 +114,9 @@ def load_arguments(self, _): c.argument('hyper_v_generation', arg_type=hyper_v_gen_sku, help='The hypervisor generation of the Virtual Machine. Applicable to OS disks only.') else: c.ignore('access_level', 'for_upload', 'hyper_v_generation') - c.argument('encryption_type', arg_type=get_enum_type(self.get_models('EncryptionType')), help='Encryption type.') - c.argument('disk_encryption_set', help='Name or ID of disk encryption set that is used to encrypt the disk.') + c.argument('encryption_type', min_api='2019-07-01', arg_type=get_enum_type(self.get_models('EncryptionType')), + help='Encryption type. EncryptionAtRestWithPlatformKey: Disk is encrypted with XStore managed key at rest. It is the default encryption type. EncryptionAtRestWithCustomerKey: Disk is encrypted with Customer managed key at rest.') + c.argument('disk_encryption_set', min_api='2019-07-01', help='Name or ID of disk encryption set that is used to encrypt the disk.') for scope in ['disk create', 'snapshot create']: with self.argument_context(scope) as c: diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index ed03dae1352..f5d097e622c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -327,7 +327,11 @@ def list_managed_disks(cmd, resource_group_name=None): return client.disks.list() -def update_managed_disk(cmd, instance, size_gb=None, sku=None, disk_iops_read_write=None, disk_mbps_read_write=None): +def update_managed_disk(cmd, resource_group_name, instance, size_gb=None, sku=None, disk_iops_read_write=None, + disk_mbps_read_write=None, encryption_type=None, disk_encryption_set=None): + from msrestazure.tools import resource_id, is_valid_resource_id + from azure.cli.core.commands.client_factory import get_subscription_id + if size_gb is not None: instance.disk_size_gb = size_gb if sku is not None: @@ -336,6 +340,14 @@ def update_managed_disk(cmd, instance, size_gb=None, sku=None, disk_iops_read_wr instance.disk_iops_read_write = disk_iops_read_write if disk_mbps_read_write is not None: instance.disk_mbps_read_write = disk_mbps_read_write + if disk_encryption_set is not None: + if not is_valid_resource_id(disk_encryption_set): + disk_encryption_set = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, + namespace='Microsoft.Compute', type='diskEncryptionSets', name=disk_encryption_set) + instance.encryption.disk_encryption_set_id = disk_encryption_set + if encryption_type is not None: + instance.encryption.type = encryption_type return instance # endregion diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml new file mode 100644 index 00000000000..4fe53582f6b --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml @@ -0,0 +1,1404 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault create + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-purge-protection --enable-soft-delete + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T08:41:16Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:41:23 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 + Connection: + - keep-alive + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"consentProvidedForMinor":null,"country":null,"createdDateTime":"2019-08-07T22:18:30Z","creationType":"Invitation","department":null,"dirSyncEnabled":null,"displayName":"Feiyue + Yu","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"legalAgeGroupClassification":null,"mail":"fey@microsoft.com","mailNickname":"fey_microsoft.com#EXT#","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":["fey@microsoft.com"],"passwordPolicies":null,"passwordProfile":null,"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":["SMTP:fey@microsoft.com"],"refreshTokensValidFromDateTime":"2019-08-07T22:18:30Z","showInAddressList":false,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"thumbnailPhoto@odata.mediaEditLink":"directoryObjects/0a592c45-613e-4f1b-9023-7c4414fd53bf/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":null,"userIdentities":[],"userPrincipalName":"fey_microsoft.com#EXT#@AzureSDKTeam.onmicrosoft.com","userState":"Accepted","userStateChangedOn":"2019-08-08T01:44:26Z","userType":"Guest"}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1671' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 08:41:26 GMT + duration: + - '3065976' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - Xue2xIv4aVyJ+cQtv/X6CuUDT74+HqRXcHt4rB3UTr0= + ocp-aad-session-key: + - GoIKfI9S8B05qzV9J7CZYvvImrp6goOW-940EnXfgyHF9rX1NZoApoV6mbd8EA-tdp6iuMXBuvhLdCq1g-G4J9YkyAMRbDGaXykl2mTLj7doORVZrh_2uV4SH2md3jRU.ZH-K5sgOgV15Njr4s9IhI7NUrKIfoFNUWk3uPfRv_Cw + pragma: + - no-cache + request-id: + - 40442f22-ee32-46e2-bb9e-1ad5ad3eaa36 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0a592c45-613e-4f1b-9023-7c4414fd53bf", + "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", + "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", + "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", + "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", + "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", + "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}], + "enableSoftDelete": true, "enablePurgeProtection": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault create + Connection: + - keep-alive + Content-Length: + - '810' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --enable-purge-protection --enable-soft-delete + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net","provisioningState":"RegisteringDns"}}' + headers: + cache-control: + - no-cache + content-length: + - '1154' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:41:37 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault create + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-purge-protection --enable-soft-delete + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1150' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:09 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - 0 + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + response: + body: + string: '{"error":{"code":"Unauthorized","message":"Request is missing a Bearer + or PoP token."}}' + headers: + cache-control: + - no-cache + content-length: + - '87' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000;includeSubDomains + www-authenticate: + - Bearer authorization="https://login.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + resource="https://vault.azure.net" + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - addr=167.220.255.108;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - westcentralus + x-ms-keyvault-service-version: + - 1.1.0.891 + x-powered-by: + - ASP.NET + status: + code: 401 + message: Unauthorized +- request: + body: '{"kty": "RSA", "attributes": {"enabled": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + response: + body: + string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"gZQWl9Xga0g80IMB7Pq2vHtKLxAZnpdzuVHuZKnOcEpygOMXzxhgMTe_F8eDemQdU5gsOgu14m852crvOSpEM42Gr_y0IELgTdeK14NUtu-prrUviSfTfOKfXvI0CvduCPqokTy79O7yOj5L47qFFKBpE91J4k4hRiSRZAu1_-qQscRK2Q8_eQBi52B9G1dkpxYbOOGYw-XwTVrmZnL8ds2LBU4rVyJ5k3alRVuVE_G0xhzTIjXG1V_Gb2-dYUBoXaQmFnnwXFozy1nb9L7Uu3PWmqWmx5Ac9aP81jUqziIV5dYfxpIR-AD8nKkNwD2c4e0-xAdpuP-grjy8nSWZgw","e":"AQAB"},"attributes":{"enabled":true,"created":1578559333,"updated":1578559333,"recoveryLevel":"Recoverable"}}' + headers: + cache-control: + - no-cache + content-length: + - '665' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000;includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - addr=167.220.255.108;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - westcentralus + x-ms-keyvault-service-version: + - 1.1.0.891 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T08:41:16Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:14 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: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, + "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + Content-Length: + - '443' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --key-url --source-vault + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"867afe05-aa5e-4be6-aa42-145d31652824\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585\"\r\n + \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;99,Microsoft.Compute/HighCostDiskEncryptionSet30Min;299 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"867afe05-aa5e-4be6-aa42-145d31652824\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585\"\r\n + \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;39998 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1516' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:25 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: + - keyvault set-policy + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1150' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:26 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0a592c45-613e-4f1b-9023-7c4414fd53bf", + "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", + "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", + "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", + "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", + "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", + "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "867afe05-aa5e-4be6-aa42-145d31652824", + "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": + true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '1078' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"867afe05-aa5e-4be6-aa42-145d31652824","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1305' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:27 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets + you view everything, but not make any changes.","assignableScopes":["/"],"permissions":[{"actions":["*/read"],"notActions":[],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:35.7424745Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","type":"Microsoft.Authorization/roleDefinitions","name":"acdd72a7-3385-48ef-bd42-f606fba81ae7"}]}' + headers: + cache-control: + - no-cache + content-length: + - '615' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:44 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27867afe05-aa5e-4be6-aa42-145d31652824%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 08:42:44 GMT + duration: + - '2370394' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - xukW/YUz8ZjCN5OuyB75Ot+MQq2Au8EttZedWyKRLIM= + ocp-aad-session-key: + - EHDU9VI2Z20QvmZCTxDgA7WzWcmSa-WBa9bie_jbmBdJq11pjONLwoYFn3AW9TqXWlu4aJo-tBz1IPOrIMGtfagIfaExIkLx6JN15ooAOfbkgsvkGpiYIFZQDv8aA3VQ.yJBp-tBCxOwQj92IwnDqIW5UTdLZNCKAK-DLW5R-adc + pragma: + - no-cache + request-id: + - fb2436e6-f32b-4ee2-8681-868385c95311 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"objectIds": ["867afe05-aa5e-4be6-aa42-145d31652824"], "includeDirectoryObjectReferences": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: POST + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"867afe05-aa5e-4be6-aa42-145d31652824","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"dba48ae1-726d-4abe-98e3-460b1f6841b3","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"C289C5D220055A1F16E9CD1A901D9075B9E10B41","endDate":"2020-04-08T08:37:00Z","keyId":"c6fd7ee9-79f6-49bd-9133-397eae18c125","startDate":"2020-01-09T08:37:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["dba48ae1-726d-4abe-98e3-460b1f6841b3","https://identity.azure.net/fVktuBMkkytmVxLA2bPMsKMr51rjSwmACJDuj0aAqWk="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1645' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 08:42:45 GMT + duration: + - '4387797' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - QvTnWe952z9A9XUm7LYocRUrZR1+xahkvqMczXNjN/0= + ocp-aad-session-key: + - kLxJDhT7VArwJ4JCxTXIOOvZosVUSqZ8ULx6bi5DGXetbGDdVxueuAI1r9lMe8lR3b7s3NxWowxSbL99OnBDQoEj9clMEMgLA_pI1hoz3TOxQskH-1l2DEQfKvkQnYqB.a_UyYGQ2iDXZSPUWADrbXnC7PVZignNQmMTe0d2Wlt8 + pragma: + - no-cache + request-id: + - 4e401c96-01ab-40b3-8cc7-343f09279b05 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalId": "867afe05-aa5e-4be6-aa42-145d31652824"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"867afe05-aa5e-4be6-aa42-145d31652824","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T08:42:46.7064879Z","updatedOn":"2020-01-09T08:42:46.7064879Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + headers: + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:42:50 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '2' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T08:41:16Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:06 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": "westcentralus", "tags": {}, "sku": {"name": "Premium_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Empty"}, + "diskSizeGB": 10}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + Content-Length: + - '176' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"disk-000005\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n + \ \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": + {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\": 10,\r\n + \ \"provisioningState\": \"Updating\",\r\n \"isArmResource\": true\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '336' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:12 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6?monitor=true&api-version=2019-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n \"endTime\": + \"2020-01-09T08:43:13.1924772+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk-000005\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": + 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1126' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"disk-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": + 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '901' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39996 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk update + Connection: + - keep-alive + ParameterSetName: + - -g -n --disk-encryption-set --encryption-type + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"disk-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": + 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '901' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4994,Microsoft.Compute/LowCostGet30Min;39994 + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westcentralus", "tags": {}, "sku": {"name": "Premium_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Empty"}, + "diskSizeGB": 10, "diskIOPSReadWrite": 120, "diskMBpsReadWrite": 25, "encryption": + {"diskEncryptionSetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004", + "type": "EncryptionAtRestWithCustomerKey"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk update + Connection: + - keep-alive + Content-Length: + - '523' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --disk-encryption-set --encryption-type + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"disk-000005\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n + \ \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": + {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\": 10,\r\n + \ \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\": + true\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '658' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:20 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d?monitor=true&api-version=2019-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7998 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk update + Connection: + - keep-alive + ParameterSetName: + - -g -n --disk-encryption-set --encryption-type + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-09T08:43:20.098659+00:00\",\r\n \"endTime\": + \"2020-01-09T08:43:21.4111438+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk-000005\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": + 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_H4HSTIBSFAG43MA4TQNYTT7MTIYBCVGZXA/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1369' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399997 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk update + Connection: + - keep-alive + ParameterSetName: + - -g -n --disk-encryption-set --encryption-type + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"disk-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": + 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_H4HSTIBSFAG43MA4TQNYTT7MTIYBCVGZXA/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1145' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 08:43:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;39992 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index bf74f7886b0..4d9465808d8 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -3889,6 +3889,47 @@ def test_disk_encryption_set_update(self, resource_group): self.check('vault', '{vault2}'), ]) + @ResourceGroupPreparer(name_prefix='cli_test_disk_encryption_set_disk_update_', location='westcentralus') + @AllowLargeResponse(size_kb=99999) + def test_disk_encryption_set_disk_update(self, resource_group): + self.kwargs.update({ + 'vault': self.create_random_name(prefix='vault-', length=20), + 'key': self.create_random_name(prefix='key-', length=20), + 'des1': self.create_random_name(prefix='des1-', length=20), + 'disk': self.create_random_name(prefix='disk-', length=20), + }) + + vault_id = self.cmd('keyvault create -g {rg} -n {vault} --enable-purge-protection true --enable-soft-delete true').get_output_in_json()['id'] + kid = self.cmd('keyvault key create -n {key} --vault {vault} --protection software').get_output_in_json()['key']['kid'] + self.kwargs.update({ + 'vault_id': vault_id, + 'kid': kid + }) + + self.cmd('disk-encryption-set create -g {rg} -n {des1} --key-url {kid} --source-vault {vault}') + des1_show_output = self.cmd('disk-encryption-set show -g {rg} -n {des1}').get_output_in_json() + des1_sp_id = des1_show_output['identity']['principalId'] + des1_id = des1_show_output['id'] + self.kwargs.update({ + 'des1_sp_id': des1_sp_id, + 'des1_id': des1_id + }) + + self.cmd('keyvault set-policy -n {vault} --object-id {des1_sp_id} --key-permissions wrapKey unwrapKey get') + + time.sleep(15) + + with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + self.cmd('role assignment create --assignee {des1_sp_id} --role Reader --scope {vault_id}') + + time.sleep(15) + + self.cmd('disk create -g {rg} -n {disk} --size-gb 10') + self.cmd('disk update -g {rg} -n {disk} --disk-encryption-set {des1} --encryption-type EncryptionAtRestWithCustomerKey', checks=[ + self.check('encryption.diskEncryptionSetId', '{des1_id}', False), + self.check('encryption.type', 'EncryptionAtRestWithCustomerKey') + ]) + if __name__ == '__main__': unittest.main() From 8a8db117131b761faf111550b0baf13c2bfe063f Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 9 Jan 2020 18:08:11 +0800 Subject: [PATCH 2/7] snapshot create/update: Add --disk-encryption-set and --encryption-type --- src/azure-cli/HISTORY.rst | 1 + .../azure/cli/command_modules/vm/custom.py | 38 +- .../test_disk_encryption_set_disk_update.yaml | 170 +- .../test_disk_encryption_set_snapshot.yaml | 2250 +++++++++++++++++ .../vm/tests/latest/test_vm_commands.py | 59 + 5 files changed, 2429 insertions(+), 89 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 3c5e6dba438..d9c54637aa9 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -6,6 +6,7 @@ Release History **Compute** * disk update: Add --disk-encryption-set and --encryption-type +* snapshot create/update: Add --disk-encryption-set and --encryption-type 2.0.79 ++++++ diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index f5d097e622c..7a031b36d08 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -424,8 +424,13 @@ def create_snapshot(cmd, resource_group_name, snapshot_name, location=None, size source=None, for_upload=None, incremental=None, # pylint: disable=unused-argument # below are generated internally from 'source' source_blob_uri=None, source_disk=None, source_snapshot=None, source_storage_account_id=None, - hyper_v_generation=None, tags=None, no_wait=False): - Snapshot, CreationData, DiskCreateOption = cmd.get_models('Snapshot', 'CreationData', 'DiskCreateOption') + hyper_v_generation=None, tags=None, no_wait=False, disk_encryption_set=None, + encryption_type=None): + from msrestazure.tools import resource_id, is_valid_resource_id + from azure.cli.core.commands.client_factory import get_subscription_id + + Snapshot, CreationData, DiskCreateOption, Encryption = cmd.get_models( + 'Snapshot', 'CreationData', 'DiskCreateOption', 'Encryption') location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) if source_blob_uri: @@ -444,8 +449,22 @@ def create_snapshot(cmd, resource_group_name, snapshot_name, location=None, size if size_gb is None and option == DiskCreateOption.empty: raise CLIError('Please supply size for the snapshots') + + if disk_encryption_set is not None and not is_valid_resource_id(disk_encryption_set): + disk_encryption_set = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, + namespace='Microsoft.Compute', type='diskEncryptionSets', name=disk_encryption_set) + + if disk_encryption_set is not None and encryption_type is None: + raise CLIError('usage error: Please specify --encryption-type.') + if encryption_type is not None: + encryption = Encryption(type=encryption_type, disk_encryption_set_id=disk_encryption_set) + else: + encryption = None + snapshot = Snapshot(location=location, creation_data=creation_data, tags=(tags or {}), - sku=_get_sku_object(cmd, sku), disk_size_gb=size_gb, incremental=incremental) + sku=_get_sku_object(cmd, sku), disk_size_gb=size_gb, incremental=incremental, + encryption=encryption) if hyper_v_generation: snapshot.hyper_vgeneration = hyper_v_generation @@ -465,9 +484,20 @@ def list_snapshots(cmd, resource_group_name=None): return client.snapshots.list() -def update_snapshot(cmd, instance, sku=None): +def update_snapshot(cmd, resource_group_name, instance, sku=None, disk_encryption_set=None, encryption_type=None): + from msrestazure.tools import resource_id, is_valid_resource_id + from azure.cli.core.commands.client_factory import get_subscription_id + if sku is not None: _set_sku(cmd, instance, sku) + if disk_encryption_set is not None: + if not is_valid_resource_id(disk_encryption_set): + disk_encryption_set = resource_id( + subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, + namespace='Microsoft.Compute', type='diskEncryptionSets', name=disk_encryption_set) + instance.encryption.disk_encryption_set_id = disk_encryption_set + if encryption_type is not None: + instance.encryption.type = encryption_type return instance # endregion diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml index 4fe53582f6b..33bf0e285b5 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T08:41:16Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:20:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:41:23 GMT + - Thu, 09 Jan 2020 09:20:53 GMT expires: - '-1' pragma: @@ -76,19 +76,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 08:41:26 GMT + - Thu, 09 Jan 2020 09:20:53 GMT duration: - - '3065976' + - '3349856' expires: - '-1' ocp-aad-diagnostics-server-name: - - Xue2xIv4aVyJ+cQtv/X6CuUDT74+HqRXcHt4rB3UTr0= + - wa7XLTE+/p7laYRXAZUltYgvhndklofPlRXpYDhC3dg= ocp-aad-session-key: - - GoIKfI9S8B05qzV9J7CZYvvImrp6goOW-940EnXfgyHF9rX1NZoApoV6mbd8EA-tdp6iuMXBuvhLdCq1g-G4J9YkyAMRbDGaXykl2mTLj7doORVZrh_2uV4SH2md3jRU.ZH-K5sgOgV15Njr4s9IhI7NUrKIfoFNUWk3uPfRv_Cw + - B_jueZrzt0yxj_YVt1sUbmi8FiQmsjXv2eNzLKkvq6Rr8e_p4I_7aa-Jk2Zx8c_5EHjKw72VZLlfqDfiUsVsAyU2SOi4r4myoqxJRJ6xzLDjE_VOxd-WnTNMdkHXXu05.BmahsnBh3kXOWJ74pLHgH1L3AERgvS-69qNbHOvNW1c pragma: - no-cache request-id: - - 40442f22-ee32-46e2-bb9e-1ad5ad3eaa36 + - a77085f2-ef23-456e-887f-41fadfc70ac6 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -144,7 +144,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:41:37 GMT + - Thu, 09 Jan 2020 09:21:04 GMT expires: - '-1' pragma: @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:09 GMT + - Thu, 09 Jan 2020 09:21:36 GMT expires: - '-1' pragma: @@ -255,7 +255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:11 GMT + - Thu, 09 Jan 2020 09:21:38 GMT expires: - '-1' pragma: @@ -304,7 +304,7 @@ interactions: uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 response: body: - string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"gZQWl9Xga0g80IMB7Pq2vHtKLxAZnpdzuVHuZKnOcEpygOMXzxhgMTe_F8eDemQdU5gsOgu14m852crvOSpEM42Gr_y0IELgTdeK14NUtu-prrUviSfTfOKfXvI0CvduCPqokTy79O7yOj5L47qFFKBpE91J4k4hRiSRZAu1_-qQscRK2Q8_eQBi52B9G1dkpxYbOOGYw-XwTVrmZnL8ds2LBU4rVyJ5k3alRVuVE_G0xhzTIjXG1V_Gb2-dYUBoXaQmFnnwXFozy1nb9L7Uu3PWmqWmx5Ac9aP81jUqziIV5dYfxpIR-AD8nKkNwD2c4e0-xAdpuP-grjy8nSWZgw","e":"AQAB"},"attributes":{"enabled":true,"created":1578559333,"updated":1578559333,"recoveryLevel":"Recoverable"}}' + string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"1OpYq5BLsLTP9J5Hsjy_QOmvUwonjQ0hKJ_24rr4AQBlk_Kga8lnBBfaaCaEVQJA6fgROsEwfeLKwFC_vBi4sGubZi41awbRCSIGYOkDuNqO4qqckr93SgNi69aa7Bu77mGx0kiVJl4Xt7jj0JOBGVKDz_ikTb4k2Of7wdGHh581Ze4Ry3LFA55E86jrDx5v5DWcfgohpA1wscOMCUrgww1_QP-WKCgQJleHRmYypZ3eKyKRzT2gekFoCAKfZ0UN7x_PXxki7I54hW9RHlo5qshAMhhsgerxevPNqbiU0xv_STCcHqxyNkqpNgyKj4NjnEBOGQS_cjF06kMjVr3EpQ","e":"AQAB"},"attributes":{"enabled":true,"created":1578561699,"updated":1578561699,"recoveryLevel":"Recoverable"}}' headers: cache-control: - no-cache @@ -313,7 +313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:13 GMT + - Thu, 09 Jan 2020 09:21:39 GMT expires: - '-1' pragma: @@ -359,7 +359,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T08:41:16Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:20:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:14 GMT + - Thu, 09 Jan 2020 09:21:41 GMT expires: - '-1' pragma: @@ -385,7 +385,7 @@ interactions: - request: body: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, - "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585"}}}''' + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426"}}}''' headers: Accept: - application/json @@ -413,10 +413,10 @@ interactions: string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"867afe05-aa5e-4be6-aa42-145d31652824\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -426,7 +426,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:24 GMT + - Thu, 09 Jan 2020 09:21:52 GMT expires: - '-1' pragma: @@ -470,10 +470,10 @@ interactions: string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"867afe05-aa5e-4be6-aa42-145d31652824\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/fbbefca45aff4468823d9a76922f1585\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -483,7 +483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:25 GMT + - Thu, 09 Jan 2020 09:21:53 GMT expires: - '-1' pragma: @@ -500,7 +500,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;39998 + - Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39999 status: code: 200 message: OK @@ -528,16 +528,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv2","name":"bim-kv2","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1516' + - '1730' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:25 GMT + - Thu, 09 Jan 2020 09:21:54 GMT expires: - '-1' pragma: @@ -584,7 +584,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:26 GMT + - Thu, 09 Jan 2020 09:21:56 GMT expires: - '-1' pragma: @@ -618,7 +618,7 @@ interactions: "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, - {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "867afe05-aa5e-4be6-aa42-145d31652824", + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "1d5e9dc8-79e0-42ee-bdb7-2241a231aa74", "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": true}}' @@ -646,7 +646,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"867afe05-aa5e-4be6-aa42-145d31652824","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -655,7 +655,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:27 GMT + - Thu, 09 Jan 2020 09:21:56 GMT expires: - '-1' pragma: @@ -713,7 +713,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:44 GMT + - Thu, 09 Jan 2020 09:22:12 GMT expires: - '-1' pragma: @@ -752,7 +752,7 @@ interactions: accept-language: - en-US method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%27867afe05-aa5e-4be6-aa42-145d31652824%27%29&api-version=1.6 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%271d5e9dc8-79e0-42ee-bdb7-2241a231aa74%27%29&api-version=1.6 response: body: string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' @@ -768,19 +768,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 08:42:44 GMT + - Thu, 09 Jan 2020 09:22:13 GMT duration: - - '2370394' + - '2333537' expires: - '-1' ocp-aad-diagnostics-server-name: - - xukW/YUz8ZjCN5OuyB75Ot+MQq2Au8EttZedWyKRLIM= + - j/TeueXqGoxg72Sodyo9LPF37e5fj6+aZ8dorDYYGeM= ocp-aad-session-key: - - EHDU9VI2Z20QvmZCTxDgA7WzWcmSa-WBa9bie_jbmBdJq11pjONLwoYFn3AW9TqXWlu4aJo-tBz1IPOrIMGtfagIfaExIkLx6JN15ooAOfbkgsvkGpiYIFZQDv8aA3VQ.yJBp-tBCxOwQj92IwnDqIW5UTdLZNCKAK-DLW5R-adc + - fT5E0DUDc2QhAJF-2Zn4iDgtZD5IXsrdFTAfF9djeF-VmvBHCfCJbps-_CpEBhQfVNTzG_S-09I3-Sajaw_T7xcfq-qvjWkYsIr76Ztw-TRfsPsJZnPAqNpsSiwiJcj5.Cv4_rA3UpEUjp5XugyRyCPrGyGIvasiFwfU1fT1CMqc pragma: - no-cache request-id: - - fb2436e6-f32b-4ee2-8681-868385c95311 + - c3f3666b-6458-4dd8-bb51-7ccc67bec1fb strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -793,7 +793,7 @@ interactions: code: 200 message: OK - request: - body: '{"objectIds": ["867afe05-aa5e-4be6-aa42-145d31652824"], "includeDirectoryObjectReferences": + body: '{"objectIds": ["1d5e9dc8-79e0-42ee-bdb7-2241a231aa74"], "includeDirectoryObjectReferences": true}' headers: Accept: @@ -819,7 +819,7 @@ interactions: uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"867afe05-aa5e-4be6-aa42-145d31652824","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"dba48ae1-726d-4abe-98e3-460b1f6841b3","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"C289C5D220055A1F16E9CD1A901D9075B9E10B41","endDate":"2020-04-08T08:37:00Z","keyId":"c6fd7ee9-79f6-49bd-9133-397eae18c125","startDate":"2020-01-09T08:37:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["dba48ae1-726d-4abe-98e3-460b1f6841b3","https://identity.azure.net/fVktuBMkkytmVxLA2bPMsKMr51rjSwmACJDuj0aAqWk="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"4ba84a88-ce1b-442c-b91a-ac6bde358fe7","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"0DD81FA7D7C7C651F299C178B00F73F9A0A3CA5B","endDate":"2020-04-08T09:16:00Z","keyId":"8c9cb81a-770f-4bfc-983d-73b230a4f70a","startDate":"2020-01-09T09:16:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["4ba84a88-ce1b-442c-b91a-ac6bde358fe7","https://identity.azure.net/UtfYjdz+u6HyUeBsXy6LR6Tmcc2kUqx0/yR8YW+YcWc="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' headers: access-control-allow-origin: - '*' @@ -832,19 +832,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 08:42:45 GMT + - Thu, 09 Jan 2020 09:22:13 GMT duration: - - '4387797' + - '4433570' expires: - '-1' ocp-aad-diagnostics-server-name: - - QvTnWe952z9A9XUm7LYocRUrZR1+xahkvqMczXNjN/0= + - a2IvgnFhp0V1rHNtSspnziA7fb53giIMAHNWWiZxpVI= ocp-aad-session-key: - - kLxJDhT7VArwJ4JCxTXIOOvZosVUSqZ8ULx6bi5DGXetbGDdVxueuAI1r9lMe8lR3b7s3NxWowxSbL99OnBDQoEj9clMEMgLA_pI1hoz3TOxQskH-1l2DEQfKvkQnYqB.a_UyYGQ2iDXZSPUWADrbXnC7PVZignNQmMTe0d2Wlt8 + - XsadCoFi6d25mTpjfPLRRf9RfrwINh55lmaXF_gdwt-PIQiQcrpkPR1TW_nZk2NrQb-GzrIxTd_LcmU4cbD2XNsqOHzIn6LcrpHi3b4DfRLBMZC1yGGA4vuHAzI-KGTM.v-RC8SEShSbELp0LMEmTQTQGp7qpT4ywLQ6pcaG1RCU pragma: - no-cache request-id: - - 4e401c96-01ab-40b3-8cc7-343f09279b05 + - 5414d3c6-ca89-4fc3-b316-fd0954c66318 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -858,7 +858,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalId": "867afe05-aa5e-4be6-aa42-145d31652824"}}' + "principalId": "1d5e9dc8-79e0-42ee-bdb7-2241a231aa74"}}' headers: Accept: - application/json @@ -885,7 +885,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"867afe05-aa5e-4be6-aa42-145d31652824","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T08:42:46.7064879Z","updatedOn":"2020-01-09T08:42:46.7064879Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T09:22:14.9890438Z","updatedOn":"2020-01-09T09:22:14.9890438Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' headers: cache-control: - no-cache @@ -894,7 +894,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:42:50 GMT + - Thu, 09 Jan 2020 09:22:20 GMT expires: - '-1' pragma: @@ -906,9 +906,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' x-ms-request-charge: - - '2' + - '3' status: code: 201 message: Created @@ -934,7 +934,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T08:41:16Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:20:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -943,7 +943,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:06 GMT + - Thu, 09 Jan 2020 09:22:35 GMT expires: - '-1' pragma: @@ -993,7 +993,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1ec1a449-781d-4637-812a-b992614fbf4b?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1001,11 +1001,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:12 GMT + - Thu, 09 Jan 2020 09:22:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1ec1a449-781d-4637-812a-b992614fbf4b?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -1039,11 +1039,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1ec1a449-781d-4637-812a-b992614fbf4b?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n \"endTime\": - \"2020-01-09T08:43:13.1924772+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \"endTime\": + \"2020-01-09T09:22:42.1711316+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk-000005\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n @@ -1052,10 +1052,10 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"a49bbde4-888c-4f6e-a9f5-bbbfefc0c3d6\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"1ec1a449-781d-4637-812a-b992614fbf4b\"\r\n}" headers: cache-control: - no-cache @@ -1064,7 +1064,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:15 GMT + - Thu, 09 Jan 2020 09:22:44 GMT expires: - '-1' pragma: @@ -1112,9 +1112,9 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n \ }\r\n}" headers: cache-control: @@ -1124,7 +1124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:16 GMT + - Thu, 09 Jan 2020 09:22:44 GMT expires: - '-1' pragma: @@ -1141,7 +1141,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39996 + - Microsoft.Compute/LowCostGet3Min;4997,Microsoft.Compute/LowCostGet30Min;39997 status: code: 200 message: OK @@ -1174,9 +1174,9 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n \ }\r\n}" headers: cache-control: @@ -1186,7 +1186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:18 GMT + - Thu, 09 Jan 2020 09:22:47 GMT expires: - '-1' pragma: @@ -1203,7 +1203,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4994,Microsoft.Compute/LowCostGet30Min;39994 + - Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39996 status: code: 200 message: OK @@ -1247,7 +1247,7 @@ interactions: true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/62c03d03-5d0c-4ee8-b723-5da537a3a6c9?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1255,11 +1255,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:20 GMT + - Thu, 09 Jan 2020 09:22:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/62c03d03-5d0c-4ee8-b723-5da537a3a6c9?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -1293,11 +1293,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/62c03d03-5d0c-4ee8-b723-5da537a3a6c9?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T08:43:20.098659+00:00\",\r\n \"endTime\": - \"2020-01-09T08:43:21.4111438+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2020-01-09T09:22:50.2804035+00:00\",\r\n \"endTime\": + \"2020-01-09T09:22:51.5303848+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk-000005\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n @@ -1306,20 +1306,20 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_H4HSTIBSFAG43MA4TQNYTT7MTIYBCVGZXA/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_37C67H2OSDHDLWDOR7UOW2OQAEOE3G4XQS/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"d112d7a8-14c4-44ee-a300-6c2c8a6f3e1d\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"62c03d03-5d0c-4ee8-b723-5da537a3a6c9\"\r\n}" headers: cache-control: - no-cache content-length: - - '1369' + - '1370' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:23 GMT + - Thu, 09 Jan 2020 09:22:53 GMT expires: - '-1' pragma: @@ -1367,10 +1367,10 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_H4HSTIBSFAG43MA4TQNYTT7MTIYBCVGZXA/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T08:43:13.0987221+00:00\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_37C67H2OSDHDLWDOR7UOW2OQAEOE3G4XQS/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"3a24c385-d657-420f-bbb0-31ad5af21609\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n \ }\r\n}" headers: cache-control: @@ -1380,7 +1380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 08:43:24 GMT + - Thu, 09 Jan 2020 09:22:53 GMT expires: - '-1' pragma: @@ -1397,7 +1397,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;39992 + - Microsoft.Compute/LowCostGet3Min;4994,Microsoft.Compute/LowCostGet30Min;39994 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml new file mode 100644 index 00000000000..8fe65e0b4d6 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml @@ -0,0 +1,2250 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault create + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-purge-protection --enable-soft-delete + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:34:31 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 + Connection: + - keep-alive + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/me?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects/@Element","odata.type":"Microsoft.DirectoryServices.User","objectType":"User","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","deletionTimestamp":null,"accountEnabled":true,"ageGroup":null,"assignedLicenses":[],"assignedPlans":[],"city":null,"companyName":null,"consentProvidedForMinor":null,"country":null,"createdDateTime":"2019-08-07T22:18:30Z","creationType":"Invitation","department":null,"dirSyncEnabled":null,"displayName":"Feiyue + Yu","employeeId":null,"facsimileTelephoneNumber":null,"givenName":null,"immutableId":null,"isCompromised":null,"jobTitle":null,"lastDirSyncTime":null,"legalAgeGroupClassification":null,"mail":"fey@microsoft.com","mailNickname":"fey_microsoft.com#EXT#","mobile":null,"onPremisesDistinguishedName":null,"onPremisesSecurityIdentifier":null,"otherMails":["fey@microsoft.com"],"passwordPolicies":null,"passwordProfile":null,"physicalDeliveryOfficeName":null,"postalCode":null,"preferredLanguage":null,"provisionedPlans":[],"provisioningErrors":[],"proxyAddresses":["SMTP:fey@microsoft.com"],"refreshTokensValidFromDateTime":"2019-08-07T22:18:30Z","showInAddressList":false,"signInNames":[],"sipProxyAddress":null,"state":null,"streetAddress":null,"surname":null,"telephoneNumber":null,"thumbnailPhoto@odata.mediaEditLink":"directoryObjects/0a592c45-613e-4f1b-9023-7c4414fd53bf/Microsoft.DirectoryServices.User/thumbnailPhoto","usageLocation":null,"userIdentities":[],"userPrincipalName":"fey_microsoft.com#EXT#@AzureSDKTeam.onmicrosoft.com","userState":"Accepted","userStateChangedOn":"2019-08-08T01:44:26Z","userType":"Guest"}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1671' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 09:34:32 GMT + duration: + - '2662675' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - 5i9CxkA3n98WqiB7OXfEZKpnX5njqVB9a51ZAoJ1dl8= + ocp-aad-session-key: + - vh28y0ZcwgVmva2jw4gMgBYaa5rIb-XhbkFk3Bf7El1f22Q3qlHz8C5yKTDc-IecK1f0yxC1o7ff0ifOYVbW6UsuwffdVx8nhp9gDIJyXPgDtSHo0MDQ8MciC80L1zsn.1cuKRbPl0wAAC7LozzdUxzYrGfK_8TbKRdf-BTKEl6w + pragma: + - no-cache + request-id: + - b5becc11-7ade-4458-b050-79e237937e24 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0a592c45-613e-4f1b-9023-7c4414fd53bf", + "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", + "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", + "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", + "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", + "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", + "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}], + "enableSoftDelete": true, "enablePurgeProtection": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault create + Connection: + - keep-alive + Content-Length: + - '810' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --enable-purge-protection --enable-soft-delete + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net","provisioningState":"RegisteringDns"}}' + headers: + cache-control: + - no-cache + content-length: + - '1154' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:34:39 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault create + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-purge-protection --enable-soft-delete + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1150' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:10 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - 0 + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + response: + body: + string: '{"error":{"code":"Unauthorized","message":"Request is missing a Bearer + or PoP token."}}' + headers: + cache-control: + - no-cache + content-length: + - '87' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000;includeSubDomains + www-authenticate: + - Bearer authorization="https://login.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + resource="https://vault.azure.net" + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - addr=167.220.255.108;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - westcentralus + x-ms-keyvault-service-version: + - 1.1.0.891 + x-powered-by: + - ASP.NET + status: + code: 401 + message: Unauthorized +- request: + body: '{"kty": "RSA", "attributes": {"enabled": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-keyvault/7.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + response: + body: + string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"1HTM4KXVemNL6ZgKFfRrnMTh6oHE2D6IOl-UXVKqlmujRZNv_k7vm2nr9jTuqe749CqA8dfzIwAbd0xi6o8Kk683NGrQXRUjZ3rs8h-rjkSPldXTPj9_nUVFsbrXFyI7comJ8FIfBHK9_SuVhKrFS9OKgQ98oZsQjzUyDwbAvay8s8sCIHNp5KHy0OsNl-mGrNEh8cSD7FYYq8fWv0WX2NrY1zcSl8UwnERKbQ0b_Kn2CmrpUqzbWiB5dYDxkpd16ovoNJ2bEgzhMZHJkCL2kxnbmFlm2pL2n9tpVkwkDLWZCJHNgXNEL7IG-1y4orodNQnHlUCp0tK0VfcTQVdlyQ","e":"AQAB"},"attributes":{"enabled":true,"created":1578562514,"updated":1578562514,"recoveryLevel":"Recoverable"}}' + headers: + cache-control: + - no-cache + content-length: + - '665' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000;includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - addr=167.220.255.108;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - westcentralus + x-ms-keyvault-service-version: + - 1.1.0.891 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:15 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: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, + "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + Content-Length: + - '443' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --key-url --source-vault + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;96,Microsoft.Compute/HighCostDiskEncryptionSet30Min;286 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4981,Microsoft.Compute/LowCostGet30Min;39946 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:26 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: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, + "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + Content-Length: + - '443' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --key-url --source-vault + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"1fd880c3-ff9a-48ee-9627-a030709572ac\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:34 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;285 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"1fd880c3-ff9a-48ee-9627-a030709572ac\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4990,Microsoft.Compute/LowCostGet30Min;39944 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv2","name":"bim-kv2","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_a4pfrszmvz5f7ib7haiby6cqtlu4pqq5nrqod/providers/Microsoft.KeyVault/vaults/vault-hthyeagto3cnqm","name":"vault-hthyeagto3cnqm","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2041' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:36 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: + - keyvault set-policy + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1150' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:38 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0a592c45-613e-4f1b-9023-7c4414fd53bf", + "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", + "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", + "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", + "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", + "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", + "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "7c0bf4c8-c93f-41df-93d2-b630b0b9c23a", + "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": + true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '1078' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1305' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:40 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv2","name":"bim-kv2","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_a4pfrszmvz5f7ib7haiby6cqtlu4pqq5nrqod/providers/Microsoft.KeyVault/vaults/vault-hthyeagto3cnqm","name":"vault-hthyeagto3cnqm","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2041' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:41 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: + - keyvault set-policy + Connection: + - keep-alive + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1305' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35: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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"location": "westcentralus", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0a592c45-613e-4f1b-9023-7c4414fd53bf", + "permissions": {"keys": ["get", "create", "delete", "list", "update", "import", + "backup", "restore", "recover"], "secrets": ["get", "list", "set", "delete", + "backup", "restore", "recover"], "certificates": ["get", "list", "delete", "create", + "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", + "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", + "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "7c0bf4c8-c93f-41df-93d2-b630b0b9c23a", + "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1fd880c3-ff9a-48ee-9627-a030709572ac", "permissions": {"keys": + ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": + true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '1242' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","permissions":{"keys":["wrapKey","unwrapKey","get"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"1fd880c3-ff9a-48ee-9627-a030709572ac","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1460' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:43 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-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.1.0.269 + x-ms-ratelimit-remaining-subscription-writes: + - '1193' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets + you view everything, but not make any changes.","assignableScopes":["/"],"permissions":[{"actions":["*/read"],"notActions":[],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:35.7424745Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","type":"Microsoft.Authorization/roleDefinitions","name":"acdd72a7-3385-48ef-bd42-f606fba81ae7"}]}' + headers: + cache-control: + - no-cache + content-length: + - '615' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:35:59 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%277c0bf4c8-c93f-41df-93d2-b630b0b9c23a%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 09:36:00 GMT + duration: + - '2297671' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - uXv8ZGY9PhQhOs4AU9DmgRv2qLnMCFf3B8vdft8Qz1c= + ocp-aad-session-key: + - w5zD8VZKC04LKV2SksNTaP-jsn8Ml5SkyfwffKbZT9F8BOjXmIuzyt1uHlMuLSURAxp46lB-9tIEwoQUg9kMwW-D7LPyPOaTFvNutRJn_qMkQRx6PUkq4nNGLysJhAdj.dPy7CP7p9UzlFaKL-JwsTt1syBSPbbIuPhoJxlH3heI + pragma: + - no-cache + request-id: + - cce4de0a-c5eb-4566-8c6b-b826c4dc1df8 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"objectIds": ["7c0bf4c8-c93f-41df-93d2-b630b0b9c23a"], "includeDirectoryObjectReferences": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: POST + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"46853b4c-91c0-4589-9a12-aab2b83e74be","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"9BD7F221181B7910AEC32BDBB36D4F9FAA2E07C1","endDate":"2020-04-08T09:30:00Z","keyId":"e3b4134f-5add-45e4-b9db-431002f22f24","startDate":"2020-01-09T09:30:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["46853b4c-91c0-4589-9a12-aab2b83e74be","https://identity.azure.net/qosFfaRCZGnYjW0D+C2Nd1OnyEv3K5hfgYkxcfsWx9g="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1645' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 09:36:01 GMT + duration: + - '4525859' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - D8da6Z00zv5l3pI9cGPVo16n7vtqzRfrbwcETYmDmuo= + ocp-aad-session-key: + - QWtjPc75h5oOe4Gs3LzZWPRdaChwtHI6giFlHxUCBsZmq4bAxf7bbKAYvaeZX0OBxBoSjuSWKtHJB7EyffzAS3gpbW-8SB_QcLu_WpeaSea8phluF5aWPTPqpN0IPUaE.5khSzfoi_xDHVShkAq3ImSMVMBlJI46c6M1oFcoCxt4 + pragma: + - no-cache + request-id: + - 85e26699-5c38-449f-a5aa-b30d10fdfc78 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalId": "7c0bf4c8-c93f-41df-93d2-b630b0b9c23a"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T09:36:02.3726408Z","updatedOn":"2020-01-09T09:36:02.3726408Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + headers: + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:07 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-ms-request-charge: + - '4' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets + you view everything, but not make any changes.","assignableScopes":["/"],"permissions":[{"actions":["*/read"],"notActions":[],"dataActions":[],"notDataActions":[]}],"createdOn":"2015-02-02T21:55:09.8806423Z","updatedOn":"2019-02-05T21:24:35.7424745Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","type":"Microsoft.Authorization/roleDefinitions","name":"acdd72a7-3385-48ef-bd42-f606fba81ae7"}]}' + headers: + cache-control: + - no-cache + content-length: + - '615' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:08 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; SameSite=None; secure; HttpOnly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-request-charge: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%271fd880c3-ff9a-48ee-9627-a030709572ac%27%29&api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '121' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 09:36:09 GMT + duration: + - '2314232' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - XFTZwrwfCa04ftlyi0qbEXoOO0n9AirMPfPwS39JMLw= + ocp-aad-session-key: + - 9B8vuqywe9H2VGOD5gs2SGFcO9hlXlEEq_tzGA7DJ1b3-l3cP_5gLXb4eOEIz2kV9ChY1kE3wDb-b42DWwmXC_stt70hlRCSn9rwr_xoiVgwZu_ZF2U3yJ_Y8ECjpd3d.IdrSyPp_lIHQtsPaTHaYnQFUzU8TIkAccc51ApN4BN8 + pragma: + - no-cache + request-id: + - 23a5c411-8b9c-4b78-be7a-7abe7ee728b7 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"objectIds": ["1fd880c3-ff9a-48ee-9627-a030709572ac"], "includeDirectoryObjectReferences": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '97' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-graphrbac/0.60.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: POST + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 + response: + body: + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"1fd880c3-ff9a-48ee-9627-a030709572ac","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005"],"appDisplayName":null,"appId":"f3dc88d5-6994-46a4-8be1-ef49e35dbad5","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des2-000005","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"12FEF7A3DCE04A587403A383E22C7D27B6A9163C","endDate":"2020-04-08T09:30:00Z","keyId":"10e01676-8076-4d6b-a84a-f4bc882946b0","startDate":"2020-01-09T09:30:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["f3dc88d5-6994-46a4-8be1-ef49e35dbad5","https://identity.azure.net/xDDZOMO6vjr4FeZWtQOT8JMJefvDi1wGXR3RYM3bp1Q="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + headers: + access-control-allow-origin: + - '*' + cache-control: + - no-cache + content-length: + - '1645' + content-type: + - application/json; odata=minimalmetadata; streaming=true; charset=utf-8 + dataserviceversion: + - 3.0; + date: + - Thu, 09 Jan 2020 09:36:10 GMT + duration: + - '4386336' + expires: + - '-1' + ocp-aad-diagnostics-server-name: + - Es9KcG7A+7Q0mKkbmodvEkdl38k2NLSbbtmK5pz3W58= + ocp-aad-session-key: + - BZ6e2croExhMbtTHTYmLsDYuixLBMqOxyHW_nS6aqZLn5pm7j6fTK4qXGheeNna3Y8SyufWz1zGBxFkQOzTZNl2lRuCHQF50JxSnZdd98cyTzpkdNZqG7xvxlcfV2IIF.ZSwsPSZwVCPjfwSXLTjy21AoKjg1i5j3shXk0fZKbG0 + pragma: + - no-cache + request-id: + - 1eb81204-4838-4499-9151-ec41c0a7d221 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-aspnet-version: + - 4.0.30319 + x-ms-dirapi-data-contract-version: + - '1.6' + x-powered-by: + - ASP.NET + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", + "principalId": "1fd880c3-ff9a-48ee-9627-a030709572ac"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --assignee --role --scope + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-authorization/0.52.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2018-09-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"1fd880c3-ff9a-48ee-9627-a030709572ac","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T09:36:11.3668021Z","updatedOn":"2020-01-09T09:36:11.3668021Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' + headers: + cache-control: + - no-cache + content-length: + - '1017' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:18 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; HttpOnly; SameSite=None + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '5' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:35 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: 'b''{"location": "westcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Empty"}, + "diskSizeGB": 10, "encryption": {"diskEncryptionSetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004", + "type": "EncryptionAtRestWithCustomerKey"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + Content-Length: + - '473' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot1-000006?api-version=2019-07-01 + response: + body: + string: "{\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"sku\": + {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": + \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n + \ },\r\n \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithCustomerKey\",\r\n \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\": + true\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/64b0e4db-9b0d-4e26-8101-248118226b1f?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '624' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:40 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/64b0e4db-9b0d-4e26-8101-248118226b1f?monitor=true&api-version=2019-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;239,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1914 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/64b0e4db-9b0d-4e26-8101-248118226b1f?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-09T09:36:40.7256937+00:00\",\r\n \"endTime\": + \"2020-01-09T09:36:43.3819395+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot1-000006\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot1-000006\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:41.725699+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e4cc38c3-c96a-4ab8-89da-f57c9dcd4604\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"64b0e4db-9b0d-4e26-8101-248118226b1f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1345' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399957 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot1-000006?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"snapshot1-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot1-000006\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:41.725699+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e4cc38c3-c96a-4ab8-89da-f57c9dcd4604\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1120' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;39939 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/6.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:46 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": "westcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Empty"}, + "diskSizeGB": 10}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + Content-Length: + - '177' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007?api-version=2019-07-01 + response: + body: + string: "{\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"sku\": + {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": + \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n + \ },\r\n \"diskSizeGB\": 10,\r\n \"provisioningState\": \"Updating\",\r\n + \ \"isArmResource\": true\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/3723226f-9f8c-45c9-9239-3bf0427fa5f9?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '302' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:50 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/3723226f-9f8c-45c9-9239-3bf0427fa5f9?monitor=true&api-version=2019-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;238,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1913 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/3723226f-9f8c-45c9-9239-3bf0427fa5f9?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n \"endTime\": + \"2020-01-09T09:36:51.5849546+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot2-000007\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"3723226f-9f8c-45c9-9239-3bf0427fa5f9\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1102' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399955 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --size-gb + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"snapshot2-000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '877' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;39937 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot update + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"snapshot2-000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '877' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;39936 + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Empty"}, + "diskSizeGB": 10, "incremental": false, "encryption": {"diskEncryptionSetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005", + "type": "EncryptionAtRestWithCustomerKey"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot update + Connection: + - keep-alive + Content-Length: + - '495' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007?api-version=2019-07-01 + response: + body: + string: "{\r\n \"location\": \"westcentralus\",\r\n \"tags\": {},\r\n \"sku\": + {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": + \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n + \ },\r\n \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithCustomerKey\",\r\n \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"\r\n + \ },\r\n \"incremental\": false,\r\n \"provisioningState\": \"Updating\",\r\n + \ \"isArmResource\": true,\r\n \"faultDomain\": 0\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '674' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:36:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?monitor=true&api-version=2019-07-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;237,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1912 + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot update + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-09T09:36:58.5849181+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"a2a17ca3-49a0-4fdc-8419-0b016898b1e1\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:37:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399953 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot update + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2020-01-09T09:36:58.5849181+00:00\",\r\n \"endTime\": + \"2020-01-09T09:37:03.7099076+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"snapshot2-000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\"type\":\"Microsoft.Compute/snapshots\",\"location\":\"westcentralus\",\"tags\":{},\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"hyperVGeneration\":\"V1\",\"creationData\":{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"encryption\":{\"type\":\"EncryptionAtRestWithCustomerKey\",\"diskEncryptionSetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"},\"incremental\":false,\"timeCreated\":\"2020-01-09T09:36:50.8818577+00:00\",\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\",\"diskSizeBytes\":10737418240,\"uniqueId\":\"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"}}\r\n + \ },\r\n \"name\": \"a2a17ca3-49a0-4fdc-8419-0b016898b1e1\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1178' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:37:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399951 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot update + Connection: + - keep-alive + ParameterSetName: + - -g -n --encryption-type --disk-encryption-set + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"snapshot2-000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1121' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 09 Jan 2020 09:37:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4981,Microsoft.Compute/LowCostGet30Min;39929 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 4d9465808d8..d5d7f29cbea 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -3930,6 +3930,65 @@ def test_disk_encryption_set_disk_update(self, resource_group): self.check('encryption.type', 'EncryptionAtRestWithCustomerKey') ]) + @ResourceGroupPreparer(name_prefix='cli_test_disk_encryption_set_snapshot_', location='westcentralus') + @AllowLargeResponse(size_kb=99999) + def test_disk_encryption_set_snapshot(self, resource_group): + self.kwargs.update({ + 'vault': self.create_random_name(prefix='vault-', length=20), + 'key': self.create_random_name(prefix='key-', length=20), + 'des1': self.create_random_name(prefix='des1-', length=20), + 'des2': self.create_random_name(prefix='des2-', length=20), + 'snapshot1': self.create_random_name(prefix='snapshot1-', length=20), + 'snapshot2': self.create_random_name(prefix='snapshot2-', length=20), + }) + + vault_id = self.cmd('keyvault create -g {rg} -n {vault} --enable-purge-protection true --enable-soft-delete true').get_output_in_json()['id'] + kid = self.cmd('keyvault key create -n {key} --vault {vault} --protection software').get_output_in_json()['key']['kid'] + self.kwargs.update({ + 'vault_id': vault_id, + 'kid': kid + }) + + self.cmd('disk-encryption-set create -g {rg} -n {des1} --key-url {kid} --source-vault {vault}') + des1_show_output = self.cmd('disk-encryption-set show -g {rg} -n {des1}').get_output_in_json() + des1_sp_id = des1_show_output['identity']['principalId'] + des1_id = des1_show_output['id'] + self.kwargs.update({ + 'des1_sp_id': des1_sp_id, + 'des1_id': des1_id + }) + + self.cmd('disk-encryption-set create -g {rg} -n {des2} --key-url {kid} --source-vault {vault}') + des2_show_output = self.cmd('disk-encryption-set show -g {rg} -n {des2}').get_output_in_json() + des2_sp_id = des2_show_output['identity']['principalId'] + des2_id = des2_show_output['id'] + self.kwargs.update({ + 'des2_sp_id': des2_sp_id, + 'des2_id': des2_id + }) + + self.cmd('keyvault set-policy -n {vault} --object-id {des1_sp_id} --key-permissions wrapKey unwrapKey get') + self.cmd('keyvault set-policy -n {vault} --object-id {des2_sp_id} --key-permissions wrapKey unwrapKey get') + + time.sleep(15) + + with mock.patch('azure.cli.command_modules.role.custom._gen_guid', side_effect=self.create_guid): + self.cmd('role assignment create --assignee {des1_sp_id} --role Reader --scope {vault_id}') + self.cmd('role assignment create --assignee {des2_sp_id} --role Reader --scope {vault_id}') + + time.sleep(15) + + self.cmd('snapshot create -g {rg} -n {snapshot1} --encryption-type EncryptionAtRestWithCustomerKey --disk-encryption-set {des1} --size-gb 10', checks=[ + self.check('encryption.diskEncryptionSetId', '{des1_id}', False), + self.check('encryption.type', 'EncryptionAtRestWithCustomerKey') + ]) + + self.cmd('snapshot create -g {rg} -n {snapshot2} --size-gb 10') + + self.cmd('snapshot update -g {rg} -n {snapshot2} --encryption-type EncryptionAtRestWithCustomerKey --disk-encryption-set {des2}', checks=[ + self.check('encryption.diskEncryptionSetId', '{des2_id}', False) + ]) + if __name__ == '__main__': unittest.main() From 4c0dd7dbd816c6fbc9f32fc345f5fb9ae26a8930 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 9 Jan 2020 18:12:25 +0800 Subject: [PATCH 3/7] Remove preview label --- src/azure-cli/azure/cli/command_modules/vm/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/commands.py b/src/azure-cli/azure/cli/command_modules/vm/commands.py index 00f8e696d5b..0aa4f63f1ce 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -202,7 +202,7 @@ def load_command_table(self, _): g.generic_update_command('update', custom_func_name='update_managed_disk', setter_arg_name='disk', supports_no_wait=True) g.wait_command('wait') - with self.command_group('disk-encryption-set', compute_disk_encryption_set_sdk, client_factory=cf_disk_encryption_set, min_api='2019-07-01', is_preview=True) as g: + with self.command_group('disk-encryption-set', compute_disk_encryption_set_sdk, client_factory=cf_disk_encryption_set, min_api='2019-07-01') as g: g.custom_command('create', 'create_disk_encryption_set', supports_no_wait=True) g.command('delete', 'delete') g.generic_update_command('update', custom_func_name='update_disk_encryption_set', setter_arg_name='disk_encryption_set') From 1d35e94bdc83f349bd1c96f0892f5d87c62c01cd Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 9 Jan 2020 19:05:40 +0800 Subject: [PATCH 4/7] Fix style problem --- src/azure-cli/azure/cli/command_modules/vm/custom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index 7a031b36d08..c17cbabc65a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -420,8 +420,9 @@ def list_images(cmd, resource_group_name=None): # region Snapshots +# pylint: disable=unused-argument,too-many-locals def create_snapshot(cmd, resource_group_name, snapshot_name, location=None, size_gb=None, sku='Standard_LRS', - source=None, for_upload=None, incremental=None, # pylint: disable=unused-argument + source=None, for_upload=None, incremental=None, # below are generated internally from 'source' source_blob_uri=None, source_disk=None, source_snapshot=None, source_storage_account_id=None, hyper_v_generation=None, tags=None, no_wait=False, disk_encryption_set=None, From 8ff7d0db523193ba43a0addcc44b8630f5f2f5a8 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Thu, 9 Jan 2020 19:33:49 +0800 Subject: [PATCH 5/7] Add parameter validation --- src/azure-cli/azure/cli/command_modules/vm/custom.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index c17cbabc65a..eb6742d331e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -341,6 +341,9 @@ def update_managed_disk(cmd, resource_group_name, instance, size_gb=None, sku=No if disk_mbps_read_write is not None: instance.disk_mbps_read_write = disk_mbps_read_write if disk_encryption_set is not None: + if instance.encryption.type != 'EncryptionAtRestWithCustomerKey' and \ + encryption_type != 'EncryptionAtRestWithCustomerKey': + raise CLIError('usage error: Please set --encryption-type to EncryptionAtRestWithCustomerKey') if not is_valid_resource_id(disk_encryption_set): disk_encryption_set = resource_id( subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, @@ -492,6 +495,9 @@ def update_snapshot(cmd, resource_group_name, instance, sku=None, disk_encryptio if sku is not None: _set_sku(cmd, instance, sku) if disk_encryption_set is not None: + if instance.encryption.type != 'EncryptionAtRestWithCustomerKey' and \ + encryption_type != 'EncryptionAtRestWithCustomerKey': + raise CLIError('usage error: Please set --encryption-type to EncryptionAtRestWithCustomerKey') if not is_valid_resource_id(disk_encryption_set): disk_encryption_set = resource_id( subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, From fe4968294d85d7c87819b3b7c7c0895c03687e0b Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 10 Jan 2020 11:24:49 +0800 Subject: [PATCH 6/7] Fix yaml --- .../recordings/test_disk_encryption_set_disk_update.yaml | 4 ++-- .../recordings/test_disk_encryption_set_snapshot.yaml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml index 33bf0e285b5..1ef182bd1b4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml @@ -1306,7 +1306,7 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_37C67H2OSDHDLWDOR7UOW2OQAEOE3G4XQS/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n @@ -1367,7 +1367,7 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_DISK_UPDATE_37C67H2OSDHDLWDOR7UOW2OQAEOE3G4XQS/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml index 8fe65e0b4d6..d5fdf5bcb18 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml @@ -1630,7 +1630,7 @@ interactions: \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:41.725699+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e4cc38c3-c96a-4ab8-89da-f57c9dcd4604\"\r\n @@ -1690,7 +1690,7 @@ interactions: \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:41.725699+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e4cc38c3-c96a-4ab8-89da-f57c9dcd4604\"\r\n @@ -2156,7 +2156,7 @@ interactions: body: string: "{\r\n \"startTime\": \"2020-01-09T09:36:58.5849181+00:00\",\r\n \"endTime\": \"2020-01-09T09:37:03.7099076+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\"name\":\"snapshot2-000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\"type\":\"Microsoft.Compute/snapshots\",\"location\":\"westcentralus\",\"tags\":{},\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"hyperVGeneration\":\"V1\",\"creationData\":{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"encryption\":{\"type\":\"EncryptionAtRestWithCustomerKey\",\"diskEncryptionSetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"},\"incremental\":false,\"timeCreated\":\"2020-01-09T09:36:50.8818577+00:00\",\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\",\"diskSizeBytes\":10737418240,\"uniqueId\":\"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"}}\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"snapshot2-000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\"type\":\"Microsoft.Compute/snapshots\",\"location\":\"westcentralus\",\"tags\":{},\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"hyperVGeneration\":\"V1\",\"creationData\":{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"encryption\":{\"type\":\"EncryptionAtRestWithCustomerKey\",\"diskEncryptionSetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"},\"incremental\":false,\"timeCreated\":\"2020-01-09T09:36:50.8818577+00:00\",\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\",\"diskSizeBytes\":10737418240,\"uniqueId\":\"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"}}\r\n \ },\r\n \"name\": \"a2a17ca3-49a0-4fdc-8419-0b016898b1e1\"\r\n}" headers: cache-control: @@ -2213,7 +2213,7 @@ interactions: \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n - \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_DISK_ENCRYPTION_SET_SNAPSHOT_TRUIK5OJFZIGA2NK5AXNFY7CAKWELF2G4RU3M/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"\r\n \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n From 8cec412d522df0515a39fc49b5b1954e9db87c10 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 10 Jan 2020 12:46:40 +0800 Subject: [PATCH 7/7] Fix test --- .../test_disk_encryption_set_disk_update.yaml | 190 ++++---- .../test_disk_encryption_set_snapshot.yaml | 409 ++++++++---------- .../vm/tests/latest/test_vm_commands.py | 4 +- 3 files changed, 281 insertions(+), 322 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml index 1ef182bd1b4..ee27bec0f3a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_disk_update.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:20:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:35:45Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:20:53 GMT + - Fri, 10 Jan 2020 04:35:52 GMT expires: - '-1' pragma: @@ -76,19 +76,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:20:53 GMT + - Fri, 10 Jan 2020 04:35:54 GMT duration: - - '3349856' + - '2846035' expires: - '-1' ocp-aad-diagnostics-server-name: - - wa7XLTE+/p7laYRXAZUltYgvhndklofPlRXpYDhC3dg= + - oUZPSuQNGNzArM2e1hDtSjXxq+ySFKzIto9RsQmrMb8= ocp-aad-session-key: - - B_jueZrzt0yxj_YVt1sUbmi8FiQmsjXv2eNzLKkvq6Rr8e_p4I_7aa-Jk2Zx8c_5EHjKw72VZLlfqDfiUsVsAyU2SOi4r4myoqxJRJ6xzLDjE_VOxd-WnTNMdkHXXu05.BmahsnBh3kXOWJ74pLHgH1L3AERgvS-69qNbHOvNW1c + - us04W3FSFAoAFTCKnaUE1Z9TBTt-kmHAZR3x6aEg97wwBw6p65IF1A8NSjDnEfXyb1dGSIfQtddJDI3oqM02mkid9kQ4-usDov2oRyQLswCfoECiiRM59FCGyPLiZ1y7.w9h3QIOFVwAsKdKsXgXlo7BM6HA7J4t-A35WxO7jMUQ pragma: - no-cache request-id: - - a77085f2-ef23-456e-887f-41fadfc70ac6 + - a6d55330-f17d-42b7-9095-c54418c441f3 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -132,10 +132,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net","provisioningState":"RegisteringDns"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002","name":"vault3-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault3-000002.vault.azure.net","provisioningState":"RegisteringDns"}}' headers: cache-control: - no-cache @@ -144,7 +144,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:04 GMT + - Fri, 10 Jan 2020 04:36:04 GMT expires: - '-1' pragma: @@ -164,7 +164,7 @@ interactions: x-ms-keyvault-service-version: - 1.1.0.269 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - ASP.NET status: @@ -187,10 +187,10 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002","name":"vault3-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault3-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:36 GMT + - Fri, 10 Jan 2020 04:36:35 GMT expires: - '-1' pragma: @@ -242,7 +242,7 @@ interactions: accept-language: - en-US method: POST - uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + uri: https://vault3-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 response: body: string: '{"error":{"code":"Unauthorized","message":"Request is missing a Bearer @@ -255,7 +255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:38 GMT + - Fri, 10 Jan 2020 04:36:37 GMT expires: - '-1' pragma: @@ -301,10 +301,10 @@ interactions: accept-language: - en-US method: POST - uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + uri: https://vault3-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 response: body: - string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"1OpYq5BLsLTP9J5Hsjy_QOmvUwonjQ0hKJ_24rr4AQBlk_Kga8lnBBfaaCaEVQJA6fgROsEwfeLKwFC_vBi4sGubZi41awbRCSIGYOkDuNqO4qqckr93SgNi69aa7Bu77mGx0kiVJl4Xt7jj0JOBGVKDz_ikTb4k2Of7wdGHh581Ze4Ry3LFA55E86jrDx5v5DWcfgohpA1wscOMCUrgww1_QP-WKCgQJleHRmYypZ3eKyKRzT2gekFoCAKfZ0UN7x_PXxki7I54hW9RHlo5qshAMhhsgerxevPNqbiU0xv_STCcHqxyNkqpNgyKj4NjnEBOGQS_cjF06kMjVr3EpQ","e":"AQAB"},"attributes":{"enabled":true,"created":1578561699,"updated":1578561699,"recoveryLevel":"Recoverable"}}' + string: '{"key":{"kid":"https://vault3-000002.vault.azure.net/keys/key-000003/9a781f9ffcfc4389809adf4d6d510fe1","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"tba1tSRvLV_yJKQI6W5ADfXHIBskpgSD5BuGMTL042njBMXRdDOzCj7hF9FGYBrNcJN6sDWYWteWxbAB8-bPCqr6TRCz91vPJcCPOCDp4rRifkyIsjfUWurvKgDk2JFpedns-0XbkCfl1j4qbJ-IRyoaW_FYeK36LKdiMKjW6ZBV6bVmihbpruPJ8wP4ciwtPxEP7d76dY2KkZllbOv8TzYdFp561kUYtunWLVYutBD53mMRC0QJQpyD9FxH7Yid29Mm4jdp_d_PUH_SsfTQo0-luGDrmjR1btbrxDWhsGsAGAxtk7TsnpIbsHhAACx_7EHQuMjL_BHW4zeyCatkqQ","e":"AQAB"},"attributes":{"enabled":true,"created":1578631000,"updated":1578631000,"recoveryLevel":"Recoverable"}}' headers: cache-control: - no-cache @@ -313,7 +313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:39 GMT + - Fri, 10 Jan 2020 04:36:40 GMT expires: - '-1' pragma: @@ -359,7 +359,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:20:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:35:45Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:41 GMT + - Fri, 10 Jan 2020 04:36:41 GMT expires: - '-1' pragma: @@ -384,8 +384,8 @@ interactions: message: OK - request: body: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, - "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, - "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426"}}}''' + "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002"}, + "keyUrl": "https://vault3-000002.vault.azure.net/keys/key-000003/9a781f9ffcfc4389809adf4d6d510fe1"}}}''' headers: Accept: - application/json @@ -413,10 +413,10 @@ interactions: string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"91c52f48-ee32-4b41-b7aa-734155c651e0\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault3-000002.vault.azure.net/keys/key-000003/9a781f9ffcfc4389809adf4d6d510fe1\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -426,7 +426,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:52 GMT + - Fri, 10 Jan 2020 04:36:52 GMT expires: - '-1' pragma: @@ -441,7 +441,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostDiskEncryptionSet3Min;99,Microsoft.Compute/HighCostDiskEncryptionSet30Min;299 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -470,10 +470,10 @@ interactions: string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"91c52f48-ee32-4b41-b7aa-734155c651e0\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/72e171b9fe7f4803818b09519339c426\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault3-000002.vault.azure.net/keys/key-000003/9a781f9ffcfc4389809adf4d6d510fe1\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -483,7 +483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:53 GMT + - Fri, 10 Jan 2020 04:36:54 GMT expires: - '-1' pragma: @@ -528,16 +528,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv2","name":"bim-kv2","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002","name":"vault3-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '1730' + - '993' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:54 GMT + - Fri, 10 Jan 2020 04:36:54 GMT expires: - '-1' pragma: @@ -572,10 +572,10 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002","name":"vault3-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault3-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -584,7 +584,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:56 GMT + - Fri, 10 Jan 2020 04:36:56 GMT expires: - '-1' pragma: @@ -618,8 +618,8 @@ interactions: "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, - {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "1d5e9dc8-79e0-42ee-bdb7-2241a231aa74", - "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "91c52f48-ee32-4b41-b7aa-734155c651e0", + "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault3-000002.vault.azure.net/", "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": true}}' headers: @@ -643,10 +643,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002","name":"vault3-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"91c52f48-ee32-4b41-b7aa-734155c651e0","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault3-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -655,7 +655,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:21:56 GMT + - Fri, 10 Jan 2020 04:36:58 GMT expires: - '-1' pragma: @@ -700,7 +700,7 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview response: body: string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets @@ -713,7 +713,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:12 GMT + - Fri, 10 Jan 2020 04:37:14 GMT expires: - '-1' pragma: @@ -752,7 +752,7 @@ interactions: accept-language: - en-US method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%271d5e9dc8-79e0-42ee-bdb7-2241a231aa74%27%29&api-version=1.6 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%2791c52f48-ee32-4b41-b7aa-734155c651e0%27%29&api-version=1.6 response: body: string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' @@ -768,19 +768,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:22:13 GMT + - Fri, 10 Jan 2020 04:37:15 GMT duration: - - '2333537' + - '2329491' expires: - '-1' ocp-aad-diagnostics-server-name: - - j/TeueXqGoxg72Sodyo9LPF37e5fj6+aZ8dorDYYGeM= + - C8TrCVVTAkLP6c6HL4PGoY9R0WooVdfsYI7c9Lj6EBs= ocp-aad-session-key: - - fT5E0DUDc2QhAJF-2Zn4iDgtZD5IXsrdFTAfF9djeF-VmvBHCfCJbps-_CpEBhQfVNTzG_S-09I3-Sajaw_T7xcfq-qvjWkYsIr76Ztw-TRfsPsJZnPAqNpsSiwiJcj5.Cv4_rA3UpEUjp5XugyRyCPrGyGIvasiFwfU1fT1CMqc + - 8ekUGhNibaa70a3b8MY8tDIgRBli1nrj9aDAAOSsJGGjf_vsrh9i1i1y-3Cn6p1TCjL87NL2CPEF1fro_79mSEv-H63deI-3bjsuxRHvkLHWbLGaZEuYl3cAs4lGRAT5.HYhFgK-FpXhozHXneNjxhEtHTZoFY8-Sw6V28A6pOLQ pragma: - no-cache request-id: - - c3f3666b-6458-4dd8-bb51-7ccc67bec1fb + - c479224a-4baa-46cf-bf01-988410ae3698 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -793,7 +793,7 @@ interactions: code: 200 message: OK - request: - body: '{"objectIds": ["1d5e9dc8-79e0-42ee-bdb7-2241a231aa74"], "includeDirectoryObjectReferences": + body: '{"objectIds": ["91c52f48-ee32-4b41-b7aa-734155c651e0"], "includeDirectoryObjectReferences": true}' headers: Accept: @@ -819,7 +819,7 @@ interactions: uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"4ba84a88-ce1b-442c-b91a-ac6bde358fe7","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"0DD81FA7D7C7C651F299C178B00F73F9A0A3CA5B","endDate":"2020-04-08T09:16:00Z","keyId":"8c9cb81a-770f-4bfc-983d-73b230a4f70a","startDate":"2020-01-09T09:16:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["4ba84a88-ce1b-442c-b91a-ac6bde358fe7","https://identity.azure.net/UtfYjdz+u6HyUeBsXy6LR6Tmcc2kUqx0/yR8YW+YcWc="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"91c52f48-ee32-4b41-b7aa-734155c651e0","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"f55ca32a-268a-41d2-9c2e-ddf62bdecdf0","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"0D1AB5CCC4D5F70A6C052F24DE7E92D1C3E681FF","endDate":"2020-04-09T04:31:00Z","keyId":"69ca52d7-2711-4be9-b802-862d80816ded","startDate":"2020-01-10T04:31:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["f55ca32a-268a-41d2-9c2e-ddf62bdecdf0","https://identity.azure.net/EWMvhYbgiOZjn8Dx2wYpYUfMxKGmT7WcpstHhvkYeC0="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' headers: access-control-allow-origin: - '*' @@ -832,19 +832,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:22:13 GMT + - Fri, 10 Jan 2020 04:37:15 GMT duration: - - '4433570' + - '4526173' expires: - '-1' ocp-aad-diagnostics-server-name: - - a2IvgnFhp0V1rHNtSspnziA7fb53giIMAHNWWiZxpVI= + - jAY6tweZL71h4Zs/fSXIbbKUblkE4vI7Xhf6+Ag18Ok= ocp-aad-session-key: - - XsadCoFi6d25mTpjfPLRRf9RfrwINh55lmaXF_gdwt-PIQiQcrpkPR1TW_nZk2NrQb-GzrIxTd_LcmU4cbD2XNsqOHzIn6LcrpHi3b4DfRLBMZC1yGGA4vuHAzI-KGTM.v-RC8SEShSbELp0LMEmTQTQGp7qpT4ywLQ6pcaG1RCU + - L5Svsz6rdJ5ptmPsbK7RdcNwfbfxMrgGcNotSboZHfju29FfV8Y4u5XhAsmbmmaLt5o-RPjsCLfRbxGUBXQFxOZ7Jh4FUZexlo5PGtgtu6G37WmvpUoJr0kdGLvi3kSF.SA6pYT4-cCZtoBDAFH0tCqa1v7Z0K6E7oubGfKHqcys pragma: - no-cache request-id: - - 5414d3c6-ca89-4fc3-b316-fd0954c66318 + - 47a7cbdc-e7f8-4094-a193-be0c916d103e strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -858,7 +858,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalId": "1d5e9dc8-79e0-42ee-bdb7-2241a231aa74"}}' + "principalId": "91c52f48-ee32-4b41-b7aa-734155c651e0"}}' headers: Accept: - application/json @@ -882,10 +882,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"1d5e9dc8-79e0-42ee-bdb7-2241a231aa74","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T09:22:14.9890438Z","updatedOn":"2020-01-09T09:22:14.9890438Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"91c52f48-ee32-4b41-b7aa-734155c651e0","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002","createdOn":"2020-01-10T04:37:16.7890517Z","updatedOn":"2020-01-10T04:37:16.7890517Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.KeyVault/vaults/vault3-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' headers: cache-control: - no-cache @@ -894,7 +894,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:20 GMT + - Fri, 10 Jan 2020 04:37:21 GMT expires: - '-1' pragma: @@ -934,7 +934,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_disk_update_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:20:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001","name":"cli_test_disk_encryption_set_disk_update_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:35:45Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -943,7 +943,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:35 GMT + - Fri, 10 Jan 2020 04:37:36 GMT expires: - '-1' pragma: @@ -993,7 +993,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1ec1a449-781d-4637-812a-b992614fbf4b?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1db8a1e6-a908-4714-80c8-4c4210075c53?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1001,11 +1001,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:41 GMT + - Fri, 10 Jan 2020 04:37:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1ec1a449-781d-4637-812a-b992614fbf4b?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1db8a1e6-a908-4714-80c8-4c4210075c53?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -1018,7 +1018,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -1039,11 +1039,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1ec1a449-781d-4637-812a-b992614fbf4b?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/1db8a1e6-a908-4714-80c8-4c4210075c53?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n \"endTime\": - \"2020-01-09T09:22:42.1711316+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2020-01-10T04:37:42.2243277+00:00\",\r\n \"endTime\": + \"2020-01-10T04:37:42.3649094+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk-000005\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n @@ -1052,10 +1052,10 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-10T04:37:42.2243277+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"1ec1a449-781d-4637-812a-b992614fbf4b\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"0c3a14b2-e4d5-4bce-968e-f609719060b0\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"1db8a1e6-a908-4714-80c8-4c4210075c53\"\r\n}" headers: cache-control: - no-cache @@ -1064,7 +1064,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:44 GMT + - Fri, 10 Jan 2020 04:37:45 GMT expires: - '-1' pragma: @@ -1112,9 +1112,9 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-10T04:37:42.2243277+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"0c3a14b2-e4d5-4bce-968e-f609719060b0\"\r\n \ }\r\n}" headers: cache-control: @@ -1124,7 +1124,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:44 GMT + - Fri, 10 Jan 2020 04:37:45 GMT expires: - '-1' pragma: @@ -1174,9 +1174,9 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-10T04:37:42.2243277+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"0c3a14b2-e4d5-4bce-968e-f609719060b0\"\r\n \ }\r\n}" headers: cache-control: @@ -1186,7 +1186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:47 GMT + - Fri, 10 Jan 2020 04:37:47 GMT expires: - '-1' pragma: @@ -1247,7 +1247,7 @@ interactions: true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/62c03d03-5d0c-4ee8-b723-5da537a3a6c9?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/90e4cd2f-61c8-4506-ac61-73571a11c907?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1255,11 +1255,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:50 GMT + - Fri, 10 Jan 2020 04:37:50 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/62c03d03-5d0c-4ee8-b723-5da537a3a6c9?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/90e4cd2f-61c8-4506-ac61-73571a11c907?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -1272,7 +1272,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -1293,11 +1293,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/62c03d03-5d0c-4ee8-b723-5da537a3a6c9?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/90e4cd2f-61c8-4506-ac61-73571a11c907?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T09:22:50.2804035+00:00\",\r\n \"endTime\": - \"2020-01-09T09:22:51.5303848+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2020-01-10T04:37:49.3492443+00:00\",\r\n \"endTime\": + \"2020-01-10T04:37:50.6773526+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk-000005\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/disks/disk-000005\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westcentralus\",\r\n @@ -1307,10 +1307,10 @@ interactions: \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-10T04:37:42.2243277+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"62c03d03-5d0c-4ee8-b723-5da537a3a6c9\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"0c3a14b2-e4d5-4bce-968e-f609719060b0\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"90e4cd2f-61c8-4506-ac61-73571a11c907\"\r\n}" headers: cache-control: - no-cache @@ -1319,7 +1319,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:53 GMT + - Fri, 10 Jan 2020 04:37:53 GMT expires: - '-1' pragma: @@ -1368,9 +1368,9 @@ interactions: \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n - \ },\r\n \"timeCreated\": \"2020-01-09T09:22:42.0774102+00:00\",\r\n + \ },\r\n \"timeCreated\": \"2020-01-10T04:37:42.2243277+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"33243f0d-2f69-484c-b9ef-19ae54d5fac7\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"0c3a14b2-e4d5-4bce-968e-f609719060b0\"\r\n \ }\r\n}" headers: cache-control: @@ -1380,7 +1380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:22:53 GMT + - Fri, 10 Jan 2020 04:37:54 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml index d5fdf5bcb18..b747be38532 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_snapshot.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:39:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:34:31 GMT + - Fri, 10 Jan 2020 04:39:38 GMT expires: - '-1' pragma: @@ -76,19 +76,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:34:32 GMT + - Fri, 10 Jan 2020 04:39:39 GMT duration: - - '2662675' + - '2421243' expires: - '-1' ocp-aad-diagnostics-server-name: - - 5i9CxkA3n98WqiB7OXfEZKpnX5njqVB9a51ZAoJ1dl8= + - 0ckRfx0wKNAF3tQRGM778rnRPbGUYODeCcCKEzizf3Y= ocp-aad-session-key: - - vh28y0ZcwgVmva2jw4gMgBYaa5rIb-XhbkFk3Bf7El1f22Q3qlHz8C5yKTDc-IecK1f0yxC1o7ff0ifOYVbW6UsuwffdVx8nhp9gDIJyXPgDtSHo0MDQ8MciC80L1zsn.1cuKRbPl0wAAC7LozzdUxzYrGfK_8TbKRdf-BTKEl6w + - hl5DYKIhyLfrVFovLhriB7BVC263gLajptmRinJGPef4s4b8lWAiO9_NHwNhGVWTZgaUJGhs1R1pWzHMdy_dnJCCgfu85FYe3JSE1JRcdBdfbqDIvgmr25ybymJ5oknA.PN7qXfycPy3O3_ijj5NGr3boU4IEXFOdmTZuEb0qy6o pragma: - no-cache request-id: - - b5becc11-7ade-4458-b050-79e237937e24 + - 0e3f1848-6227-4d6d-8802-7bce8f4891de strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -132,10 +132,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net","provisioningState":"RegisteringDns"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault4-000002.vault.azure.net","provisioningState":"RegisteringDns"}}' headers: cache-control: - no-cache @@ -144,7 +144,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:34:39 GMT + - Fri, 10 Jan 2020 04:39:48 GMT expires: - '-1' pragma: @@ -187,10 +187,10 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-keyvault/1.1.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault4-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -199,7 +199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:10 GMT + - Fri, 10 Jan 2020 04:40:18 GMT expires: - '-1' pragma: @@ -242,7 +242,7 @@ interactions: accept-language: - en-US method: POST - uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + uri: https://vault4-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 response: body: string: '{"error":{"code":"Unauthorized","message":"Request is missing a Bearer @@ -255,7 +255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:12 GMT + - Fri, 10 Jan 2020 04:40:21 GMT expires: - '-1' pragma: @@ -301,10 +301,10 @@ interactions: accept-language: - en-US method: POST - uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 + uri: https://vault4-000002.vault.azure.net/keys/key-000003/create?api-version=7.0 response: body: - string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"1HTM4KXVemNL6ZgKFfRrnMTh6oHE2D6IOl-UXVKqlmujRZNv_k7vm2nr9jTuqe749CqA8dfzIwAbd0xi6o8Kk683NGrQXRUjZ3rs8h-rjkSPldXTPj9_nUVFsbrXFyI7comJ8FIfBHK9_SuVhKrFS9OKgQ98oZsQjzUyDwbAvay8s8sCIHNp5KHy0OsNl-mGrNEh8cSD7FYYq8fWv0WX2NrY1zcSl8UwnERKbQ0b_Kn2CmrpUqzbWiB5dYDxkpd16ovoNJ2bEgzhMZHJkCL2kxnbmFlm2pL2n9tpVkwkDLWZCJHNgXNEL7IG-1y4orodNQnHlUCp0tK0VfcTQVdlyQ","e":"AQAB"},"attributes":{"enabled":true,"created":1578562514,"updated":1578562514,"recoveryLevel":"Recoverable"}}' + string: '{"key":{"kid":"https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"xT8cXXRpANPskv6YcvKi2n1HgAmDSDS2TlgqLYv1azLg8KOdSc7jXjmu8myyGbVgn7k9C4Fj6oTQqxDW6Ii4T3h63bc2Nk6X9DRL3Tyl8RYD5IzzS5cP-RAX1n2V1ab4RQHEWw7BeZL9hpRnL48ggVdime3b7t18Ml4VUEBFBAqqeMbWgVRGrcIf3sL2_1eghp_BUMQaM8KbujrAA8Ooc8XlTY17LIDW0745kLhsIRISrsq2R9TwUJWKyGxKYj-9tnARZ-7ozhU3ImYuGaImIRydqAvN9YnR0YpVX-66W0cvZxl3M_fUHNwiKkMqTnE076-pmB9uZlLNAnAiGWPeyQ","e":"AQAB"},"attributes":{"enabled":true,"created":1578631222,"updated":1578631222,"recoveryLevel":"Recoverable"}}' headers: cache-control: - no-cache @@ -313,7 +313,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:14 GMT + - Fri, 10 Jan 2020 04:40:22 GMT expires: - '-1' pragma: @@ -359,7 +359,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:39:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -368,7 +368,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:15 GMT + - Fri, 10 Jan 2020 04:40:23 GMT expires: - '-1' pragma: @@ -384,8 +384,8 @@ interactions: message: OK - request: body: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, - "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, - "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32"}}}''' + "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002"}, + "keyUrl": "https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c"}}}''' headers: Accept: - application/json @@ -413,10 +413,10 @@ interactions: string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"6e8b8efb-311a-42c9-ab58-932dac53f0b8\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -426,7 +426,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:23 GMT + - Fri, 10 Jan 2020 04:40:32 GMT expires: - '-1' pragma: @@ -439,9 +439,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskEncryptionSet3Min;96,Microsoft.Compute/HighCostDiskEncryptionSet30Min;286 + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;98,Microsoft.Compute/HighCostDiskEncryptionSet30Min;297 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1198' status: code: 201 message: Created @@ -470,10 +470,10 @@ interactions: string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"6e8b8efb-311a-42c9-ab58-932dac53f0b8\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -483,7 +483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:25 GMT + - Fri, 10 Jan 2020 04:40:33 GMT expires: - '-1' pragma: @@ -500,7 +500,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4981,Microsoft.Compute/LowCostGet30Min;39946 + - Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;39988 status: code: 200 message: OK @@ -526,7 +526,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:39:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -535,7 +535,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:26 GMT + - Fri, 10 Jan 2020 04:40:33 GMT expires: - '-1' pragma: @@ -551,8 +551,8 @@ interactions: message: OK - request: body: 'b''{"location": "westcentralus", "identity": {"type": "SystemAssigned"}, - "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, - "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32"}}}''' + "properties": {"activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002"}, + "keyUrl": "https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c"}}}''' headers: Accept: - application/json @@ -580,10 +580,10 @@ interactions: string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"1fd880c3-ff9a-48ee-9627-a030709572ac\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"08e9a7a3-9698-4d84-8012-b7c57033f80a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -593,7 +593,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:34 GMT + - Fri, 10 Jan 2020 04:40:42 GMT expires: - '-1' pragma: @@ -606,7 +606,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;285 + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;97,Microsoft.Compute/HighCostDiskEncryptionSet30Min;296 x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -637,10 +637,10 @@ interactions: string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"westcentralus\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"1fd880c3-ff9a-48ee-9627-a030709572ac\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"08e9a7a3-9698-4d84-8012-b7c57033f80a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/5b7bd9127ee1481cb03d18eb6ff40f32\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault4-000002.vault.azure.net/keys/key-000003/0639d17c095d429d9a357c26b4791f0c\"\r\n \ },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -650,7 +650,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:36 GMT + - Fri, 10 Jan 2020 04:40:43 GMT expires: - '-1' pragma: @@ -667,7 +667,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4990,Microsoft.Compute/LowCostGet30Min;39944 + - Microsoft.Compute/LowCostGet3Min;4994,Microsoft.Compute/LowCostGet30Min;39986 status: code: 200 message: OK @@ -695,16 +695,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv2","name":"bim-kv2","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_a4pfrszmvz5f7ib7haiby6cqtlu4pqq5nrqod/providers/Microsoft.KeyVault/vaults/vault-hthyeagto3cnqm","name":"vault-hthyeagto3cnqm","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2041' + - '993' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:36 GMT + - Fri, 10 Jan 2020 04:40:44 GMT expires: - '-1' pragma: @@ -739,10 +739,10 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault4-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -751,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:38 GMT + - Fri, 10 Jan 2020 04:40:45 GMT expires: - '-1' pragma: @@ -785,8 +785,8 @@ interactions: "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, - {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "7c0bf4c8-c93f-41df-93d2-b630b0b9c23a", - "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "6e8b8efb-311a-42c9-ab58-932dac53f0b8", + "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault4-000002.vault.azure.net/", "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": true}}' headers: @@ -810,10 +810,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"6e8b8efb-311a-42c9-ab58-932dac53f0b8","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault4-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -822,7 +822,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:40 GMT + - Fri, 10 Jan 2020 04:40:47 GMT expires: - '-1' pragma: @@ -842,7 +842,7 @@ interactions: x-ms-keyvault-service-version: - 1.1.0.269 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' x-powered-by: - ASP.NET status: @@ -872,16 +872,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv","name":"bim-kv","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bim-rg/providers/Microsoft.KeyVault/vaults/bim-kv2","name":"bim-kv2","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_disk_update_yczlyo3f3sf7v5gy5ehjffev65enoqlbwa/providers/Microsoft.KeyVault/vaults/vault-gmbouxq4q57ayc","name":"vault-gmbouxq4q57ayc","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_a4pfrszmvz5f7ib7haiby6cqtlu4pqq5nrqod/providers/Microsoft.KeyVault/vaults/vault-hthyeagto3cnqm","name":"vault-hthyeagto3cnqm","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/azure-cli-test-rg/providers/Microsoft.KeyVault/vaults/azureclitest-vault","name":"azureclitest-vault","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/fytest/providers/Microsoft.KeyVault/vaults/vault4848","name":"vault4848","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yeming/providers/Microsoft.KeyVault/vaults/yeming","name":"yeming","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}}]}' headers: cache-control: - no-cache content-length: - - '2041' + - '993' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:41 GMT + - Fri, 10 Jan 2020 04:40:48 GMT expires: - '-1' pragma: @@ -916,10 +916,10 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"6e8b8efb-311a-42c9-ab58-932dac53f0b8","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault4-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -928,7 +928,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:41 GMT + - Fri, 10 Jan 2020 04:40:50 GMT expires: - '-1' pragma: @@ -962,10 +962,10 @@ interactions: "import", "update", "managecontacts", "getissuers", "listissuers", "setissuers", "deleteissuers", "manageissuers", "recover"], "storage": ["get", "list", "delete", "set", "update", "regeneratekey", "setsas", "listsas", "getsas", "deletesas"]}}, - {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "7c0bf4c8-c93f-41df-93d2-b630b0b9c23a", + {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "6e8b8efb-311a-42c9-ab58-932dac53f0b8", "permissions": {"keys": ["wrapKey", "unwrapKey", "get"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", - "objectId": "1fd880c3-ff9a-48ee-9627-a030709572ac", "permissions": {"keys": - ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "objectId": "08e9a7a3-9698-4d84-8012-b7c57033f80a", "permissions": {"keys": + ["wrapKey", "unwrapKey", "get"]}}], "vaultUri": "https://vault4-000002.vault.azure.net/", "enabledForDeployment": false, "enableSoftDelete": true, "enablePurgeProtection": true}}' headers: @@ -989,10 +989,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2018-02-14 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002?api-version=2018-02-14 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","permissions":{"keys":["wrapKey","unwrapKey","get"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"1fd880c3-ff9a-48ee-9627-a030709572ac","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","name":"vault4-000002","type":"Microsoft.KeyVault/vaults","location":"westcentralus","tags":{},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0a592c45-613e-4f1b-9023-7c4414fd53bf","permissions":{"keys":["get","create","delete","list","update","import","backup","restore","recover"],"secrets":["get","list","set","delete","backup","restore","recover"],"certificates":["get","list","delete","create","import","update","managecontacts","getissuers","listissuers","setissuers","deleteissuers","manageissuers","recover"],"storage":["get","list","delete","set","update","regeneratekey","setsas","listsas","getsas","deletesas"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"6e8b8efb-311a-42c9-ab58-932dac53f0b8","permissions":{"keys":["wrapKey","unwrapKey","get"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"08e9a7a3-9698-4d84-8012-b7c57033f80a","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"enablePurgeProtection":true,"vaultUri":"https://vault4-000002.vault.azure.net/","provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1001,7 +1001,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:43 GMT + - Fri, 10 Jan 2020 04:40:50 GMT expires: - '-1' pragma: @@ -1021,7 +1021,7 @@ interactions: x-ms-keyvault-service-version: - 1.1.0.269 x-ms-ratelimit-remaining-subscription-writes: - - '1193' + - '1198' x-powered-by: - ASP.NET status: @@ -1046,7 +1046,7 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview response: body: string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets @@ -1059,7 +1059,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:35:59 GMT + - Fri, 10 Jan 2020 04:41:05 GMT expires: - '-1' pragma: @@ -1098,7 +1098,7 @@ interactions: accept-language: - en-US method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%277c0bf4c8-c93f-41df-93d2-b630b0b9c23a%27%29&api-version=1.6 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%276e8b8efb-311a-42c9-ab58-932dac53f0b8%27%29&api-version=1.6 response: body: string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' @@ -1114,19 +1114,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:36:00 GMT + - Fri, 10 Jan 2020 04:41:06 GMT duration: - - '2297671' + - '2501441' expires: - '-1' ocp-aad-diagnostics-server-name: - - uXv8ZGY9PhQhOs4AU9DmgRv2qLnMCFf3B8vdft8Qz1c= + - Md6E3vPOqFLz1QkERrZZo6BWrUx/Iddg8pmWAKTOGQg= ocp-aad-session-key: - - w5zD8VZKC04LKV2SksNTaP-jsn8Ml5SkyfwffKbZT9F8BOjXmIuzyt1uHlMuLSURAxp46lB-9tIEwoQUg9kMwW-D7LPyPOaTFvNutRJn_qMkQRx6PUkq4nNGLysJhAdj.dPy7CP7p9UzlFaKL-JwsTt1syBSPbbIuPhoJxlH3heI + - UIOUs1A6o-uApKgfhhIsP8HBuY6C34H_47NZ0iilIA0sePO1q8Obw9NPCb8nNzyiyopWbzVIE-0DmZ8SnlmATTRvF0UZAjdFFq2VKM-c9DSHIw-dFZZvLjqxBKsVcsUK.-UGpyeXjYWVRrwt8hNUpwyrCAicw2QD_irbMmiEJJ3U pragma: - no-cache request-id: - - cce4de0a-c5eb-4566-8c6b-b826c4dc1df8 + - 323ec88c-2aeb-4a77-b70d-f742483d5280 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1139,7 +1139,7 @@ interactions: code: 200 message: OK - request: - body: '{"objectIds": ["7c0bf4c8-c93f-41df-93d2-b630b0b9c23a"], "includeDirectoryObjectReferences": + body: '{"objectIds": ["6e8b8efb-311a-42c9-ab58-932dac53f0b8"], "includeDirectoryObjectReferences": true}' headers: Accept: @@ -1165,7 +1165,7 @@ interactions: uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"46853b4c-91c0-4589-9a12-aab2b83e74be","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"9BD7F221181B7910AEC32BDBB36D4F9FAA2E07C1","endDate":"2020-04-08T09:30:00Z","keyId":"e3b4134f-5add-45e4-b9db-431002f22f24","startDate":"2020-01-09T09:30:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["46853b4c-91c0-4589-9a12-aab2b83e74be","https://identity.azure.net/qosFfaRCZGnYjW0D+C2Nd1OnyEv3K5hfgYkxcfsWx9g="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"6e8b8efb-311a-42c9-ab58-932dac53f0b8","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004"],"appDisplayName":null,"appId":"29d158d7-b828-4d58-b295-6ab92029b3fc","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des1-000004","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"C490F99A0D18A672D63F19030628EC1984AFFEBF","endDate":"2020-04-09T04:35:00Z","keyId":"b96e6292-fded-4df0-af0d-ac46d5817a84","startDate":"2020-01-10T04:35:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["29d158d7-b828-4d58-b295-6ab92029b3fc","https://identity.azure.net/XRcSmex0kMusZUoBLlXhUpNzT9CREViIct1kJF4IyRw="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' headers: access-control-allow-origin: - '*' @@ -1178,19 +1178,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:36:01 GMT + - Fri, 10 Jan 2020 04:41:08 GMT duration: - - '4525859' + - '4538859' expires: - '-1' ocp-aad-diagnostics-server-name: - - D8da6Z00zv5l3pI9cGPVo16n7vtqzRfrbwcETYmDmuo= + - BI70eeqtQXrdS4Ok9RnJ88M0ewwv+DbnOCOkOB0pCIo= ocp-aad-session-key: - - QWtjPc75h5oOe4Gs3LzZWPRdaChwtHI6giFlHxUCBsZmq4bAxf7bbKAYvaeZX0OBxBoSjuSWKtHJB7EyffzAS3gpbW-8SB_QcLu_WpeaSea8phluF5aWPTPqpN0IPUaE.5khSzfoi_xDHVShkAq3ImSMVMBlJI46c6M1oFcoCxt4 + - sVShf2farWgjxYAmHKfpaolVYwe9tUa9Lg6TSetNEw83IiK4R0sVBiDe4WFNRgxuRThi7IKpdcQ5rkcfGkWhtfzx6e208CgjjYvKekBb98e6EupobqVO5FB3y5rDLtjQ.DAqvZJL3q5IMsYjUTjRV95sdN2nuy6vJiZRTs7TQTy4 pragma: - no-cache request-id: - - 85e26699-5c38-449f-a5aa-b30d10fdfc78 + - 5e64d309-c27c-45b6-af5b-3c9bcfe73036 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1204,7 +1204,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalId": "7c0bf4c8-c93f-41df-93d2-b630b0b9c23a"}}' + "principalId": "6e8b8efb-311a-42c9-ab58-932dac53f0b8"}}' headers: Accept: - application/json @@ -1228,10 +1228,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"7c0bf4c8-c93f-41df-93d2-b630b0b9c23a","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T09:36:02.3726408Z","updatedOn":"2020-01-09T09:36:02.3726408Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"6e8b8efb-311a-42c9-ab58-932dac53f0b8","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","createdOn":"2020-01-10T04:41:08.6294881Z","updatedOn":"2020-01-10T04:41:08.6294881Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' headers: cache-control: - no-cache @@ -1240,7 +1240,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:07 GMT + - Fri, 10 Jan 2020 04:41:17 GMT expires: - '-1' pragma: @@ -1252,9 +1252,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1197' x-ms-request-charge: - - '4' + - '8' status: code: 201 message: Created @@ -1277,7 +1277,7 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27Reader%27&api-version=2018-01-01-preview response: body: string: '{"value":[{"properties":{"roleName":"Reader","type":"BuiltInRole","description":"Lets @@ -1290,7 +1290,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:08 GMT + - Fri, 10 Jan 2020 04:41:19 GMT expires: - '-1' pragma: @@ -1329,7 +1329,7 @@ interactions: accept-language: - en-US method: GET - uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%271fd880c3-ff9a-48ee-9627-a030709572ac%27%29&api-version=1.6 + uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%2708e9a7a3-9698-4d84-8012-b7c57033f80a%27%29&api-version=1.6 response: body: string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[]}' @@ -1345,19 +1345,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:36:09 GMT + - Fri, 10 Jan 2020 04:41:19 GMT duration: - - '2314232' + - '2487566' expires: - '-1' ocp-aad-diagnostics-server-name: - - XFTZwrwfCa04ftlyi0qbEXoOO0n9AirMPfPwS39JMLw= + - WZ1tie5kwd2P/fNOMow1DDXctXC5/a/bbla5vKZtclY= ocp-aad-session-key: - - 9B8vuqywe9H2VGOD5gs2SGFcO9hlXlEEq_tzGA7DJ1b3-l3cP_5gLXb4eOEIz2kV9ChY1kE3wDb-b42DWwmXC_stt70hlRCSn9rwr_xoiVgwZu_ZF2U3yJ_Y8ECjpd3d.IdrSyPp_lIHQtsPaTHaYnQFUzU8TIkAccc51ApN4BN8 + - kAYTmUpB-oweI7ydF3X6CGgBEWVZv5_K26PKIcRR78T36vttx3HeKB2wEKnOPd6DCtrF7Ky3uqK8iHCpaDHtPebPQ02TpXq9mn07MXCd5207m8E2RJ7zo2wJXHbenfHf.0w9ckZCVHbeY_pKdeDvh0ZKZ6eBMDXtFalvlfmodZUA pragma: - no-cache request-id: - - 23a5c411-8b9c-4b78-be7a-7abe7ee728b7 + - cba7421b-d16f-4e89-bda1-6aa794de5968 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1370,7 +1370,7 @@ interactions: code: 200 message: OK - request: - body: '{"objectIds": ["1fd880c3-ff9a-48ee-9627-a030709572ac"], "includeDirectoryObjectReferences": + body: '{"objectIds": ["08e9a7a3-9698-4d84-8012-b7c57033f80a"], "includeDirectoryObjectReferences": true}' headers: Accept: @@ -1396,7 +1396,7 @@ interactions: uri: https://graph.windows.net/00000000-0000-0000-0000-000000000000/getObjectsByObjectIds?api-version=1.6 response: body: - string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"1fd880c3-ff9a-48ee-9627-a030709572ac","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005"],"appDisplayName":null,"appId":"f3dc88d5-6994-46a4-8be1-ef49e35dbad5","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des2-000005","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"12FEF7A3DCE04A587403A383E22C7D27B6A9163C","endDate":"2020-04-08T09:30:00Z","keyId":"10e01676-8076-4d6b-a84a-f4bc882946b0","startDate":"2020-01-09T09:30:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["f3dc88d5-6994-46a4-8be1-ef49e35dbad5","https://identity.azure.net/xDDZOMO6vjr4FeZWtQOT8JMJefvDi1wGXR3RYM3bp1Q="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' + string: '{"odata.metadata":"https://graph.windows.net/00000000-0000-0000-0000-000000000000/$metadata#directoryObjects","value":[{"odata.type":"Microsoft.DirectoryServices.ServicePrincipal","objectType":"ServicePrincipal","objectId":"08e9a7a3-9698-4d84-8012-b7c57033f80a","deletionTimestamp":null,"accountEnabled":true,"addIns":[],"alternativeNames":["isExplicit=False","/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005"],"appDisplayName":null,"appId":"cd8f40d1-f062-4c52-840a-a611753df92c","applicationTemplateId":null,"appOwnerTenantId":null,"appRoleAssignmentRequired":false,"appRoles":[],"displayName":"des2-000005","errorUrl":null,"homepage":null,"informationalUrls":null,"keyCredentials":[{"customKeyIdentifier":"FD22E26513E1C5F49975104FE405A306730D94B5","endDate":"2020-04-09T04:35:00Z","keyId":"5cda8f45-f5cc-4934-8c29-e82d75f7bfb2","startDate":"2020-01-10T04:35:00Z","type":"AsymmetricX509Cert","usage":"Verify","value":null}],"logoutUrl":null,"notificationEmailAddresses":[],"oauth2Permissions":[],"passwordCredentials":[],"preferredSingleSignOnMode":null,"preferredTokenSigningKeyEndDateTime":null,"preferredTokenSigningKeyThumbprint":null,"publisherName":null,"replyUrls":[],"samlMetadataUrl":null,"samlSingleSignOnSettings":null,"servicePrincipalNames":["cd8f40d1-f062-4c52-840a-a611753df92c","https://identity.azure.net/25vUGgreZOOVyYw0hNnTDTGsbRzrklixwwU7/X4/3iQ="],"servicePrincipalType":"ManagedIdentity","signInAudience":null,"tags":[],"tokenEncryptionKeyId":null}]}' headers: access-control-allow-origin: - '*' @@ -1409,19 +1409,19 @@ interactions: dataserviceversion: - 3.0; date: - - Thu, 09 Jan 2020 09:36:10 GMT + - Fri, 10 Jan 2020 04:41:19 GMT duration: - - '4386336' + - '4381280' expires: - '-1' ocp-aad-diagnostics-server-name: - - Es9KcG7A+7Q0mKkbmodvEkdl38k2NLSbbtmK5pz3W58= + - m44jz5vCS9u4O5sSSVss6CKrthWLHfOPU5++FHDbfV8= ocp-aad-session-key: - - BZ6e2croExhMbtTHTYmLsDYuixLBMqOxyHW_nS6aqZLn5pm7j6fTK4qXGheeNna3Y8SyufWz1zGBxFkQOzTZNl2lRuCHQF50JxSnZdd98cyTzpkdNZqG7xvxlcfV2IIF.ZSwsPSZwVCPjfwSXLTjy21AoKjg1i5j3shXk0fZKbG0 + - 6PU0cygTRuPXW3pBUxxB7feJxJtXGg3Kl_dZ1ZHdncCc4gsPKd5XRjcSBoQexnpQa3nDNBu_LN_QZq1g7GbW_6sAZYwSGZXin2RuoNwzsQTYHdEHGOVBudOSiBA8GZfn.Zn-d7Ej9hThqv7aWl02DgXBPaS7bOvD2llfMjM2ONCY pragma: - no-cache request-id: - - 1eb81204-4838-4499-9151-ec41c0a7d221 + - 66bc2864-a558-430a-9a45-cd1343faa88f strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: @@ -1435,7 +1435,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalId": "1fd880c3-ff9a-48ee-9627-a030709572ac"}}' + "principalId": "08e9a7a3-9698-4d84-8012-b7c57033f80a"}}' headers: Accept: - application/json @@ -1459,10 +1459,10 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2018-09-01-preview + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002?api-version=2018-09-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"1fd880c3-ff9a-48ee-9627-a030709572ac","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002","createdOn":"2020-01-09T09:36:11.3668021Z","updatedOn":"2020-01-09T09:36:11.3668021Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"08e9a7a3-9698-4d84-8012-b7c57033f80a","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002","createdOn":"2020-01-10T04:41:21.4386870Z","updatedOn":"2020-01-10T04:41:21.4386870Z","createdBy":null,"updatedBy":"0a592c45-613e-4f1b-9023-7c4414fd53bf"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.KeyVault/vaults/vault4-000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000002","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000002"}' headers: cache-control: - no-cache @@ -1471,7 +1471,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:18 GMT + - Fri, 10 Jan 2020 04:41:25 GMT expires: - '-1' pragma: @@ -1485,7 +1485,7 @@ interactions: x-ms-ratelimit-remaining-subscription-writes: - '1199' x-ms-request-charge: - - '5' + - '2' status: code: 201 message: Created @@ -1511,7 +1511,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:39:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1520,7 +1520,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:35 GMT + - Fri, 10 Jan 2020 04:41:40 GMT expires: - '-1' pragma: @@ -1572,7 +1572,7 @@ interactions: true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/64b0e4db-9b0d-4e26-8101-248118226b1f?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/5e9f89e2-be1f-4f51-8215-5c64d9c3d849?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1580,11 +1580,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:40 GMT + - Fri, 10 Jan 2020 04:41:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/64b0e4db-9b0d-4e26-8101-248118226b1f?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/5e9f89e2-be1f-4f51-8215-5c64d9c3d849?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -1595,9 +1595,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;239,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1914 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;239,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1919 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 202 message: Accepted @@ -1618,11 +1618,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/64b0e4db-9b0d-4e26-8101-248118226b1f?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/5e9f89e2-be1f-4f51-8215-5c64d9c3d849?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T09:36:40.7256937+00:00\",\r\n \"endTime\": - \"2020-01-09T09:36:43.3819395+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2020-01-10T04:41:46.0974313+00:00\",\r\n \"endTime\": + \"2020-01-10T04:41:49.2692628+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot1-000006\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot1-000006\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n @@ -1631,19 +1631,19 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:41.725699+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:47.3005333+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e4cc38c3-c96a-4ab8-89da-f57c9dcd4604\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"64b0e4db-9b0d-4e26-8101-248118226b1f\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"b7627003-fafa-4c25-94cc-6e079273aa8b\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"5e9f89e2-be1f-4f51-8215-5c64d9c3d849\"\r\n}" headers: cache-control: - no-cache content-length: - - '1345' + - '1346' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:44 GMT + - Fri, 10 Jan 2020 04:41:49 GMT expires: - '-1' pragma: @@ -1660,7 +1660,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399957 + - Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399991 status: code: 200 message: OK @@ -1691,19 +1691,19 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:41.725699+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:47.3005333+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e4cc38c3-c96a-4ab8-89da-f57c9dcd4604\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"b7627003-fafa-4c25-94cc-6e079273aa8b\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '1120' + - '1121' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:44 GMT + - Fri, 10 Jan 2020 04:41:50 GMT expires: - '-1' pragma: @@ -1720,7 +1720,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;39939 + - Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;39982 status: code: 200 message: OK @@ -1746,7 +1746,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_snapshot_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-09T09:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001","name":"cli_test_disk_encryption_set_snapshot_000001","type":"Microsoft.Resources/resourceGroups","location":"westcentralus","tags":{"product":"azurecli","cause":"automation","date":"2020-01-10T04:39:32Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1755,7 +1755,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:46 GMT + - Fri, 10 Jan 2020 04:41:51 GMT expires: - '-1' pragma: @@ -1804,7 +1804,7 @@ interactions: \ \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/3723226f-9f8c-45c9-9239-3bf0427fa5f9?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/838d5945-e8e5-4f1a-95de-90e8d8a3011f?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1812,11 +1812,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:50 GMT + - Fri, 10 Jan 2020 04:41:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/3723226f-9f8c-45c9-9239-3bf0427fa5f9?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/838d5945-e8e5-4f1a-95de-90e8d8a3011f?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -1827,9 +1827,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;238,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1913 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;238,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1918 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 202 message: Accepted @@ -1850,11 +1850,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/3723226f-9f8c-45c9-9239-3bf0427fa5f9?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/838d5945-e8e5-4f1a-95de-90e8d8a3011f?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n \"endTime\": - \"2020-01-09T09:36:51.5849546+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2020-01-10T04:41:57.6754482+00:00\",\r\n \"endTime\": + \"2020-01-10T04:41:58.5348493+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot2-000007\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n @@ -1862,10 +1862,10 @@ interactions: \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:57.6910976+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"3723226f-9f8c-45c9-9239-3bf0427fa5f9\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f42bf943-1283-4c6a-9a0e-a5e7b9d5687d\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"838d5945-e8e5-4f1a-95de-90e8d8a3011f\"\r\n}" headers: cache-control: - no-cache @@ -1874,7 +1874,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:53 GMT + - Fri, 10 Jan 2020 04:42:00 GMT expires: - '-1' pragma: @@ -1891,7 +1891,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399955 + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399989 status: code: 200 message: OK @@ -1921,9 +1921,9 @@ interactions: \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:57.6910976+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f42bf943-1283-4c6a-9a0e-a5e7b9d5687d\"\r\n \ }\r\n}" headers: cache-control: @@ -1933,7 +1933,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:53 GMT + - Fri, 10 Jan 2020 04:42:00 GMT expires: - '-1' pragma: @@ -1950,7 +1950,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;39937 + - Microsoft.Compute/LowCostGet3Min;4990,Microsoft.Compute/LowCostGet30Min;39980 status: code: 200 message: OK @@ -1982,9 +1982,9 @@ interactions: \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:57.6910976+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f42bf943-1283-4c6a-9a0e-a5e7b9d5687d\"\r\n \ }\r\n}" headers: cache-control: @@ -1994,7 +1994,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:56 GMT + - Fri, 10 Jan 2020 04:42:02 GMT expires: - '-1' pragma: @@ -2011,7 +2011,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;39936 + - Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;39979 status: code: 200 message: OK @@ -2054,7 +2054,7 @@ interactions: \ \"isArmResource\": true,\r\n \"faultDomain\": 0\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/22f21178-d735-4397-a75e-124126a4449a?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -2062,11 +2062,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:36:59 GMT + - Fri, 10 Jan 2020 04:42:05 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?monitor=true&api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/22f21178-d735-4397-a75e-124126a4449a?monitor=true&api-version=2019-07-01 pragma: - no-cache server: @@ -2077,9 +2077,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;237,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1912 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;237,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1917 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1199' status: code: 202 message: Accepted @@ -2100,73 +2100,32 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?api-version=2019-07-01 - response: - body: - string: "{\r\n \"startTime\": \"2020-01-09T09:36:58.5849181+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"a2a17ca3-49a0-4fdc-8419-0b016898b1e1\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 09 Jan 2020 09:37:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399953 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - snapshot update - Connection: - - keep-alive - ParameterSetName: - - -g -n --encryption-type --disk-encryption-set - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.79 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/a2a17ca3-49a0-4fdc-8419-0b016898b1e1?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westcentralus/DiskOperations/22f21178-d735-4397-a75e-124126a4449a?api-version=2019-07-01 response: body: - string: "{\r\n \"startTime\": \"2020-01-09T09:36:58.5849181+00:00\",\r\n \"endTime\": - \"2020-01-09T09:37:03.7099076+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\"name\":\"snapshot2-000007\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\"type\":\"Microsoft.Compute/snapshots\",\"location\":\"westcentralus\",\"tags\":{},\"sku\":{\"name\":\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"hyperVGeneration\":\"V1\",\"creationData\":{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"encryption\":{\"type\":\"EncryptionAtRestWithCustomerKey\",\"diskEncryptionSetId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"},\"incremental\":false,\"timeCreated\":\"2020-01-09T09:36:50.8818577+00:00\",\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\",\"diskSizeBytes\":10737418240,\"uniqueId\":\"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"}}\r\n - \ },\r\n \"name\": \"a2a17ca3-49a0-4fdc-8419-0b016898b1e1\"\r\n}" + string: "{\r\n \"startTime\": \"2020-01-10T04:42:05.362905+00:00\",\r\n \"endTime\": + \"2020-01-10T04:42:09.2066193+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot2-000007\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/snapshots/snapshot2-000007\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n + \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n + \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:57.6910976+00:00\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f42bf943-1283-4c6a-9a0e-a5e7b9d5687d\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"22f21178-d735-4397-a75e-124126a4449a\"\r\n}" headers: cache-control: - no-cache content-length: - - '1178' + - '1345' content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:37:12 GMT + - Fri, 10 Jan 2020 04:42:08 GMT expires: - '-1' pragma: @@ -2183,7 +2142,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399951 + - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399987 status: code: 200 message: OK @@ -2214,9 +2173,9 @@ interactions: \ \"creationData\": {\r\n \"createOption\": \"Empty\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithCustomerKey\",\r\n \ \"diskEncryptionSetId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_snapshot_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\"\r\n - \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-09T09:36:50.8818577+00:00\",\r\n + \ },\r\n \"incremental\": false,\r\n \"timeCreated\": \"2020-01-10T04:41:57.6910976+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"e8db6a56-c713-4eb2-a0a6-a508a5c2beae\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f42bf943-1283-4c6a-9a0e-a5e7b9d5687d\"\r\n \ }\r\n}" headers: cache-control: @@ -2226,7 +2185,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 09 Jan 2020 09:37:12 GMT + - Fri, 10 Jan 2020 04:42:09 GMT expires: - '-1' pragma: @@ -2243,7 +2202,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4981,Microsoft.Compute/LowCostGet30Min;39929 + - Microsoft.Compute/LowCostGet3Min;4986,Microsoft.Compute/LowCostGet30Min;39976 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index d5d7f29cbea..cf6d47e1a67 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -3893,7 +3893,7 @@ def test_disk_encryption_set_update(self, resource_group): @AllowLargeResponse(size_kb=99999) def test_disk_encryption_set_disk_update(self, resource_group): self.kwargs.update({ - 'vault': self.create_random_name(prefix='vault-', length=20), + 'vault': self.create_random_name(prefix='vault3-', length=20), 'key': self.create_random_name(prefix='key-', length=20), 'des1': self.create_random_name(prefix='des1-', length=20), 'disk': self.create_random_name(prefix='disk-', length=20), @@ -3934,7 +3934,7 @@ def test_disk_encryption_set_disk_update(self, resource_group): @AllowLargeResponse(size_kb=99999) def test_disk_encryption_set_snapshot(self, resource_group): self.kwargs.update({ - 'vault': self.create_random_name(prefix='vault-', length=20), + 'vault': self.create_random_name(prefix='vault4-', length=20), 'key': self.create_random_name(prefix='key-', length=20), 'des1': self.create_random_name(prefix='des1-', length=20), 'des2': self.create_random_name(prefix='des2-', length=20),