diff --git a/src/command_modules/azure-cli-vm/HISTORY.rst b/src/command_modules/azure-cli-vm/HISTORY.rst index bbbb846e0e6..a7071df18ee 100644 --- a/src/command_modules/azure-cli-vm/HISTORY.rst +++ b/src/command_modules/azure-cli-vm/HISTORY.rst @@ -5,6 +5,7 @@ Release History 2.2.7 ++++++ +* `image create`: expose storage-sku argument for setting the image's default storage account type * `vm resize`: fix bug where `--no-wait` option causes command to crash 2.2.6 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py index 7a4ae64a522..9b2a42dff9c 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_help.py @@ -1395,8 +1395,7 @@ - name: Create an image from an existing disk. text: | az image create -g MyResourceGroup -n image1 --os-type Linux \\ - --source /subscriptions/db5eb68e-73e2-4fa8-b18a-0123456789999/resourceGroups/rg1/providers/Microsoft.Compute/snapshots/s1 \\ - --data-snapshot /subscriptions/db5eb68e-73e2-4fa8-b18a-0123456789999/resourceGroups/rg/providers/Microsoft.Compute/snapshots/s2 + --source /subscriptions/db5eb68e-73e2-4fa8-b18a-0123456789999/resourceGroups/rg1/providers/Microsoft.Compute/snapshots/s1 - name: Create an image by capturing an existing generalized virtual machine in the same resource group. text: az image create -g MyResourceGroup -n image1 --source MyVm1 """ diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py index dd7c1ce0b8f..f77ee466dd8 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/_params.py @@ -24,7 +24,7 @@ # pylint: disable=too-many-statements, too-many-branches def load_arguments(self, _): - from azure.mgmt.compute.models import CachingTypes, UpgradeMode + StorageAccountTypes, UpgradeMode, CachingTypes = self.get_models('StorageAccountTypes', 'UpgradeMode', 'CachingTypes') # REUSABLE ARGUMENT DEFINITIONS name_arg_type = CLIArgumentType(options_list=['--name', '-n'], metavar='NAME') @@ -40,11 +40,12 @@ def load_arguments(self, _): completer=get_resource_name_completion_list('Microsoft.Compute/virtualMachineScaleSets'), help="Scale set name. You can configure the default using `az configure --defaults vmss=`", id_part='name') - if self.supported_api_version(min_api='2018-06-01', operation_group='disks') or self.supported_api_version(min_api='2018-06-01', operation_group='virtual_machines'): - disk_sku = CLIArgumentType(arg_type=get_enum_type(['Premium_LRS', 'Standard_LRS', 'StandardSSD_LRS', 'UltraSSD_LRS'])) - elif self.supported_api_version(min_api='2018-04-01', operation_group='disks') or self.supported_api_version(min_api='2018-06-01', operation_group='virtual_machines'): - disk_sku = CLIArgumentType(arg_type=get_enum_type(['Premium_LRS', 'Standard_LRS', 'StandardSSD_LRS'])) + + if StorageAccountTypes: + disk_sku = CLIArgumentType(arg_type=get_enum_type(StorageAccountTypes)) else: + # StorageAccountTypes introduced in api version 2016_04_30_preview of Resource.MGMT.Compute package.. + # However, 2017-03-09-profile targets version 2016-03-30 of compute package. disk_sku = CLIArgumentType(arg_type=get_enum_type(['Premium_LRS', 'Standard_LRS'])) # special case for `network nic scale-set list` command alias @@ -110,6 +111,7 @@ def load_arguments(self, _): c.argument('data_disk_sources', nargs='+', help='Space-separated list of data disk sources, including unmanaged blob URI, managed disk ID or name, or snapshot ID or name') c.argument('zone_resilient', min_api='2017-12-01', arg_type=get_three_state_flag(), help='Specifies whether an image is zone resilient or not. ' 'Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage') + c.argument('storage_sku', arg_type=disk_sku, help='The SKU of the storage account with which to create the VM image. Unused if source VM is specified.') c.ignore('source_virtual_machine', 'os_blob_uri', 'os_disk', 'os_snapshot', 'data_blob_uris', 'data_disks', 'data_snapshots') # endregion diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py index 23e93bc22c2..f60591d3728 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py @@ -313,7 +313,7 @@ def update_managed_disk(cmd, instance, size_gb=None, sku=None, disk_iops_read_wr # region Images (Managed) def create_image(cmd, resource_group_name, name, source, os_type=None, data_disk_sources=None, location=None, # pylint: disable=too-many-locals,unused-argument # below are generated internally from 'source' and 'data_disk_sources' - source_virtual_machine=None, + source_virtual_machine=None, storage_sku=None, os_blob_uri=None, data_blob_uris=None, os_snapshot=None, data_snapshots=None, os_disk=None, data_disks=None, tags=None, zone_resilient=None): @@ -330,7 +330,8 @@ def create_image(cmd, resource_group_name, name, source, os_type=None, data_disk os_state=OperatingSystemStateTypes.generalized, snapshot=SubResource(id=os_snapshot) if os_snapshot else None, managed_disk=SubResource(id=os_disk) if os_disk else None, - blob_uri=os_blob_uri) + blob_uri=os_blob_uri, + storage_account_type=storage_sku) all_data_disks = [] lun = 0 if data_blob_uris: diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml index 2c873dd0cbc..8bd89932310 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "westus", "tags": {"product": "azurecli", "cause": "automation", - "date": "2018-09-28T22:28:18Z"}}' + "date": "2018-10-23T19:19:08Z"}}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] @@ -9,24 +9,23 @@ interactions: Connection: [keep-alive] Content-Length: ['110'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-28T22:28:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:28:21 GMT'] + date: ['Tue, 23 Oct 2018 19:19:12 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: null @@ -36,19 +35,18 @@ interactions: CommandName: [disk create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-28T22:28:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:28:22 GMT'] + date: ['Tue, 23 Oct 2018 19:19:14 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -65,9 +63,8 @@ interactions: Connection: [keep-alive] Content-Length: ['154'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 @@ -79,19 +76,19 @@ interactions: \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"name\"\ : \"d1\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/a9221031-8114-4195-a0d1-662acafbe5cc?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fd023cf2-63e4-457a-ad4f-66ea2436c4d0?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['301'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:28:23 GMT'] + date: ['Tue, 23 Oct 2018 19:19:15 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/a9221031-8114-4195-a0d1-662acafbe5cc?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fd023cf2-63e4-457a-ad4f-66ea2436c4d0?monitor=true&api-version=2018-06-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;3979'] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;3996'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -100,27 +97,26 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/a9221031-8114-4195-a0d1-662acafbe5cc?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fd023cf2-63e4-457a-ad4f-66ea2436c4d0?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:28:24.2478925+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:28:24.388465+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:19:15.4795231+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:19:15.620145+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\ :\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\ - createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2018-09-28T22:28:24.2478925+00:00\"\ + createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2018-10-23T19:19:15.4795231+00:00\"\ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\ :\"Microsoft.Compute/disks\",\"location\":\"westus\",\"tags\":{\"tag1\":\"\ d1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ - ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"a9221031-8114-4195-a0d1-662acafbe5cc\"\ + ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"fd023cf2-63e4-457a-ad4f-66ea2436c4d0\"\ \r\n}"} headers: cache-control: [no-cache] content-length: ['721'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:29:46 GMT'] + date: ['Tue, 23 Oct 2018 19:19:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -128,7 +124,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;249954'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;249969'] status: {code: 200, message: OK} - request: body: null @@ -137,16 +133,15 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 response: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\ tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 1,\r\n \"timeCreated\": \"2018-09-28T22:28:24.2478925+00:00\",\r\n \ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ @@ -156,7 +151,7 @@ interactions: cache-control: [no-cache] content-length: ['617'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:29:49 GMT'] + date: ['Tue, 23 Oct 2018 19:19:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -164,7 +159,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4993,Microsoft.Compute/LowCostGet30Min;19940'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;19962'] status: {code: 200, message: OK} - request: body: null @@ -173,9 +168,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk update] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 @@ -183,7 +177,7 @@ interactions: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\ tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 1,\r\n \"timeCreated\": \"2018-09-28T22:28:24.2478925+00:00\",\r\n \ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ @@ -193,7 +187,7 @@ interactions: cache-control: [no-cache] content-length: ['617'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:29:52 GMT'] + date: ['Tue, 23 Oct 2018 19:19:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -201,7 +195,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;19939'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4996,Microsoft.Compute/LowCostGet30Min;19960'] status: {code: 200, message: OK} - request: body: '{"location": "westus", "tags": {"tag1": "d1"}, "sku": {"name": "Standard_LRS"}, @@ -213,9 +207,8 @@ interactions: Connection: [keep-alive] Content-Length: ['156'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 @@ -227,19 +220,19 @@ interactions: \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"name\"\ : \"d1\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fd319fc2-7bb6-4df3-84c3-e7f96306fa06?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/406b4b39-8095-41b7-9bf6-385d51c810bf?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['303'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:29:53 GMT'] + date: ['Tue, 23 Oct 2018 19:19:48 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fd319fc2-7bb6-4df3-84c3-e7f96306fa06?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/406b4b39-8095-41b7-9bf6-385d51c810bf?monitor=true&api-version=2018-06-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;3978'] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;3995'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -248,27 +241,26 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk update] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fd319fc2-7bb6-4df3-84c3-e7f96306fa06?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/406b4b39-8095-41b7-9bf6-385d51c810bf?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:29:54.6402576+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:29:54.7964851+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:19:48.1556513+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:19:48.3275421+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\ :\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"creationData\"\ - :{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"timeCreated\":\"2018-09-28T22:28:24.2478925+00:00\"\ + :{\"createOption\":\"Empty\"},\"diskSizeGB\":10,\"timeCreated\":\"2018-10-23T19:19:15.4795231+00:00\"\ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\ :\"Microsoft.Compute/disks\",\"location\":\"westus\",\"tags\":{\"tag1\":\"\ d1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ - ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"fd319fc2-7bb6-4df3-84c3-e7f96306fa06\"\ + ,\"name\":\"d1\"}\r\n },\r\n \"name\": \"406b4b39-8095-41b7-9bf6-385d51c810bf\"\ \r\n}"} headers: cache-control: [no-cache] content-length: ['725'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:30:24 GMT'] + date: ['Tue, 23 Oct 2018 19:20:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -276,7 +268,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;249958'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;249967'] status: {code: 200, message: OK} - request: body: null @@ -285,16 +277,15 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk update] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 response: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 10,\r\n \"timeCreated\": \"2018-09-28T22:28:24.2478925+00:00\",\r\n \ + \ 10,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ @@ -304,7 +295,7 @@ interactions: cache-control: [no-cache] content-length: ['620'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:30:24 GMT'] + date: ['Tue, 23 Oct 2018 19:20:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -312,7 +303,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4989,Microsoft.Compute/LowCostGet30Min;19943'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4993,Microsoft.Compute/LowCostGet30Min;19958'] status: {code: 200, message: OK} - request: body: '{"access": "Read", "durationInSeconds": 10}' @@ -323,27 +314,26 @@ interactions: Connection: [keep-alive] Content-Length: ['43'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1/beginGetAccess?api-version=2018-06-01 response: body: {string: ''} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/0a861a33-566a-43c5-ba75-000e321dd353?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83af0a4-4214-4f53-94e4-ed6110ba5143?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['0'] - date: ['Fri, 28 Sep 2018 22:30:26 GMT'] + date: ['Tue, 23 Oct 2018 19:20:20 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/0a861a33-566a-43c5-ba75-000e321dd353?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83af0a4-4214-4f53-94e4-ed6110ba5143?monitor=true&api-version=2018-06-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/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;4999'] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;4998'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -352,22 +342,21 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk grant-access] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/0a861a33-566a-43c5-ba75-000e321dd353?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83af0a4-4214-4f53-94e4-ed6110ba5143?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:30:27.0037165+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:30:27.2693413+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:20:20.2315035+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:20:20.5752661+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\r\n \"accessSAS\"\ - : \"https://md-cth2dbz1nstz.blob.core.windows.net/phkpsxgrzfkk/abcd?sv=2017-04-17&sr=b&si=5344f199-db16-4b41-bc2f-895c69de4078&sig=uUiYvtiDiNkecKoL%2BSbB9TqfzX5%2B%2FD6NMzhRHy0nX5o%3D\"\ - \r\n}\r\n },\r\n \"name\": \"0a861a33-566a-43c5-ba75-000e321dd353\"\r\n}"} + : \"https://md-gm4v5p1x5v3l.blob.core.windows.net/lgx4p25l5hnf/abcd?sv=2017-04-17&sr=b&si=85259428-773a-44d9-b400-f1349e63680a&sig=cX67cFJRAXyehULVQ1speTANDIuLIfOQIweBo5KwLsk%3D\"\ + \r\n}\r\n },\r\n \"name\": \"c83af0a4-4214-4f53-94e4-ed6110ba5143\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['427'] + content-length: ['421'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:30:56 GMT'] + date: ['Tue, 23 Oct 2018 19:20:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -375,7 +364,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49982,Microsoft.Compute/GetOperation30Min;249948'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;249965'] status: {code: 200, message: OK} - request: body: null @@ -384,19 +373,18 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk grant-access] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/0a861a33-566a-43c5-ba75-000e321dd353?monitor=true&api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c83af0a4-4214-4f53-94e4-ed6110ba5143?monitor=true&api-version=2018-06-01 response: - body: {string: "{\r\n \"accessSAS\": \"https://md-cth2dbz1nstz.blob.core.windows.net/phkpsxgrzfkk/abcd?sv=2017-04-17&sr=b&si=5344f199-db16-4b41-bc2f-895c69de4078&sig=uUiYvtiDiNkecKoL%2BSbB9TqfzX5%2B%2FD6NMzhRHy0nX5o%3D\"\ + body: {string: "{\r\n \"accessSAS\": \"https://md-gm4v5p1x5v3l.blob.core.windows.net/lgx4p25l5hnf/abcd?sv=2017-04-17&sr=b&si=85259428-773a-44d9-b400-f1349e63680a&sig=cX67cFJRAXyehULVQ1speTANDIuLIfOQIweBo5KwLsk%3D\"\ \r\n}"} headers: cache-control: [no-cache] - content-length: ['202'] + content-length: ['196'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:30:57 GMT'] + date: ['Tue, 23 Oct 2018 19:20:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -404,7 +392,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49981,Microsoft.Compute/GetOperation30Min;249947'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;249964'] status: {code: 200, message: OK} - request: body: null @@ -414,19 +402,18 @@ interactions: CommandName: [disk create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-28T22:28:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:30:58 GMT'] + date: ['Tue, 23 Oct 2018 19:20:53 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -443,9 +430,8 @@ interactions: Connection: [keep-alive] Content-Length: ['327'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2018-06-01 @@ -457,19 +443,19 @@ interactions: : true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"name\"\ : \"d2\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7bd2cf99-70ba-472f-8325-d7d8ac5e579a?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/078efc03-08da-4ff7-b0eb-14381b3ba79a?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['466'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:30:59 GMT'] + date: ['Tue, 23 Oct 2018 19:20:54 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7bd2cf99-70ba-472f-8325-d7d8ac5e579a?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/078efc03-08da-4ff7-b0eb-14381b3ba79a?monitor=true&api-version=2018-06-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;996,Microsoft.Compute/CreateUpdateDisks30Min;3978'] - x-ms-ratelimit-remaining-subscription-writes: ['1194'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;3994'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -478,28 +464,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7bd2cf99-70ba-472f-8325-d7d8ac5e579a?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/078efc03-08da-4ff7-b0eb-14381b3ba79a?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:30:59.7656317+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:31:00.3281695+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:20:54.9183705+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:20:55.6995937+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\ :\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\ createOption\":\"Copy\",\"sourceResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ - },\"diskSizeGB\":10,\"timeCreated\":\"2018-09-28T22:30:59.7656317+00:00\"\ + },\"diskSizeGB\":10,\"timeCreated\":\"2018-10-23T19:20:54.9183705+00:00\"\ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\ :\"Microsoft.Compute/disks\",\"location\":\"westus\",\"tags\":{},\"id\":\"\ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\ - ,\"name\":\"d2\"}\r\n },\r\n \"name\": \"7bd2cf99-70ba-472f-8325-d7d8ac5e579a\"\ + ,\"name\":\"d2\"}\r\n },\r\n \"name\": \"078efc03-08da-4ff7-b0eb-14381b3ba79a\"\ \r\n}"} headers: cache-control: [no-cache] content-length: ['912'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:31:30 GMT'] + date: ['Tue, 23 Oct 2018 19:21:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -507,7 +492,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49979,Microsoft.Compute/GetOperation30Min;249944'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;249962'] status: {code: 200, message: OK} - request: body: null @@ -516,9 +501,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [disk create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2018-06-01 response: @@ -526,7 +510,7 @@ interactions: tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"\ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ - \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2018-09-28T22:30:59.7656317+00:00\"\ + \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2018-10-23T19:20:54.9183705+00:00\"\ ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\ @@ -535,7 +519,7 @@ interactions: cache-control: [no-cache] content-length: ['805'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:31:30 GMT'] + date: ['Tue, 23 Oct 2018 19:21:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -543,7 +527,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;19939'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4990,Microsoft.Compute/LowCostGet30Min;19955'] status: {code: 200, message: OK} - request: body: null @@ -553,19 +537,18 @@ interactions: CommandName: [snapshot create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-28T22:28:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:31:32 GMT'] + date: ['Tue, 23 Oct 2018 19:21:27 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -582,9 +565,8 @@ interactions: Connection: [keep-alive] Content-Length: ['154'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 @@ -595,19 +577,19 @@ interactions: : \"Updating\",\r\n \"isArmResource\": true\r\n },\r\n \"location\":\ \ \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/db0c0c57-922a-41a6-b0bc-e77c6d3c11d4?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/56b5646e-dc03-4dc5-9a8f-8a06759e8ec0?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['284'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:31:33 GMT'] + date: ['Tue, 23 Oct 2018 19:21:28 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/db0c0c57-922a-41a6-b0bc-e77c6d3c11d4?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/56b5646e-dc03-4dc5-9a8f-8a06759e8ec0?monitor=true&api-version=2018-06-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;1199'] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;239,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -616,27 +598,26 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/db0c0c57-922a-41a6-b0bc-e77c6d3c11d4?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/56b5646e-dc03-4dc5-9a8f-8a06759e8ec0?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:31:33.9149839+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:31:34.1805688+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:21:28.7631142+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:21:28.9349589+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\ :\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\ - createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2018-09-28T22:31:33.930573+00:00\"\ + createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2018-10-23T19:21:28.7631142+00:00\"\ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\ :\"Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{\"tag1\"\ :\"s1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ - ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"db0c0c57-922a-41a6-b0bc-e77c6d3c11d4\"\ + ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"56b5646e-dc03-4dc5-9a8f-8a06759e8ec0\"\ \r\n}"} headers: cache-control: [no-cache] - content-length: ['729'] + content-length: ['730'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:04 GMT'] + date: ['Tue, 23 Oct 2018 19:21:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -644,7 +625,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49978,Microsoft.Compute/GetOperation30Min;249942'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;249960'] status: {code: 200, message: OK} - request: body: null @@ -653,26 +634,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 response: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\ tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 1,\r\n \"timeCreated\": \"2018-09-28T22:31:33.930573+00:00\",\r\n \ - \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:21:28.7631142+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ ,\r\n \"name\": \"s1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['624'] + content-length: ['625'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:04 GMT'] + date: ['Tue, 23 Oct 2018 19:22:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -680,7 +660,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4986,Microsoft.Compute/LowCostGet30Min;19934'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;19952'] status: {code: 200, message: OK} - request: body: null @@ -689,9 +669,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot update] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 @@ -699,17 +678,17 @@ interactions: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"\ tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 1,\r\n \"timeCreated\": \"2018-09-28T22:31:33.930573+00:00\",\r\n \ - \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:21:28.7631142+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ ,\r\n \"name\": \"s1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['624'] + content-length: ['625'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:05 GMT'] + date: ['Tue, 23 Oct 2018 19:22:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -717,7 +696,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4985,Microsoft.Compute/LowCostGet30Min;19933'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4986,Microsoft.Compute/LowCostGet30Min;19951'] status: {code: 200, message: OK} - request: body: '{"location": "westus", "tags": {"tag1": "s1"}, "sku": {"name": "Standard_LRS"}, @@ -729,9 +708,8 @@ interactions: Connection: [keep-alive] Content-Length: ['155'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 @@ -743,19 +721,19 @@ interactions: \n },\r\n \"location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"\ s1\"\r\n }\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dfe5b0d8-2b37-41fa-b93b-e07227f51501?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/bac3fd16-9478-4812-9a53-2291cf15f865?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['308'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:06 GMT'] + date: ['Tue, 23 Oct 2018 19:22:02 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dfe5b0d8-2b37-41fa-b93b-e07227f51501?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/bac3fd16-9478-4812-9a53-2291cf15f865?monitor=true&api-version=2018-06-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;1198'] - x-ms-ratelimit-remaining-subscription-writes: ['1193'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;238,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -764,27 +742,26 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot update] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dfe5b0d8-2b37-41fa-b93b-e07227f51501?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/bac3fd16-9478-4812-9a53-2291cf15f865?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:32:06.8283768+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:32:07.3752676+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:22:02.7064874+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:22:03.378325+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\ :\"Standard_LRS\",\"tier\":\"Standard\"},\"properties\":{\"creationData\"\ - :{\"createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2018-09-28T22:31:33.930573+00:00\"\ + :{\"createOption\":\"Empty\"},\"diskSizeGB\":1,\"timeCreated\":\"2018-10-23T19:21:28.7631142+00:00\"\ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\ :\"Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{\"tag1\"\ :\"s1\"},\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ - ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"dfe5b0d8-2b37-41fa-b93b-e07227f51501\"\ + ,\"name\":\"s1\"}\r\n },\r\n \"name\": \"bac3fd16-9478-4812-9a53-2291cf15f865\"\ \r\n}"} headers: cache-control: [no-cache] content-length: ['731'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:37 GMT'] + date: ['Tue, 23 Oct 2018 19:22:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -792,7 +769,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49973,Microsoft.Compute/GetOperation30Min;249935'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;249958'] status: {code: 200, message: OK} - request: body: null @@ -801,26 +778,25 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot update] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 response: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 1,\r\n \"timeCreated\": \"2018-09-28T22:31:33.930573+00:00\",\r\n \ - \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:21:28.7631142+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ ,\r\n \"name\": \"s1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['626'] + content-length: ['627'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:37 GMT'] + date: ['Tue, 23 Oct 2018 19:22:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -828,7 +804,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;19929'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;19948'] status: {code: 200, message: OK} - request: body: null @@ -837,9 +813,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2018-06-01 @@ -850,7 +825,7 @@ interactions: cache-control: [no-cache] content-length: ['209'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:38 GMT'] + date: ['Tue, 23 Oct 2018 19:22:34 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -864,9 +839,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 @@ -874,7 +848,7 @@ interactions: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 10,\r\n \"timeCreated\": \"2018-09-28T22:28:24.2478925+00:00\",\r\n \ + \ 10,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"ActiveSAS\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ @@ -884,7 +858,7 @@ interactions: cache-control: [no-cache] content-length: ['619'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:38 GMT'] + date: ['Tue, 23 Oct 2018 19:22:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -892,7 +866,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4982,Microsoft.Compute/LowCostGet30Min;19928'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4986,Microsoft.Compute/LowCostGet30Min;19947'] status: {code: 200, message: OK} - request: body: null @@ -902,19 +876,18 @@ interactions: CommandName: [snapshot create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-28T22:28:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:39 GMT'] + date: ['Tue, 23 Oct 2018 19:22:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -931,9 +904,8 @@ interactions: Connection: [keep-alive] Content-Length: ['327'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2018-06-01 @@ -944,19 +916,19 @@ interactions: \r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\"\ : true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {}\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f856f9ea-8306-496b-9d03-56ed4bf9bfd9?api-version=2018-06-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fae80acb-509b-4cc2-829e-0564b36fde99?api-version=2018-06-01'] cache-control: [no-cache] content-length: ['449'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:32:39 GMT'] + date: ['Tue, 23 Oct 2018 19:22:37 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f856f9ea-8306-496b-9d03-56ed4bf9bfd9?monitor=true&api-version=2018-06-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fae80acb-509b-4cc2-829e-0564b36fde99?monitor=true&api-version=2018-06-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;1197'] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;237,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;1194'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null @@ -965,28 +937,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/f856f9ea-8306-496b-9d03-56ed4bf9bfd9?api-version=2018-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/fae80acb-509b-4cc2-829e-0564b36fde99?api-version=2018-06-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:32:40.8490144+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:32:41.3958847+00:00\",\r\n \"status\": \"\ + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:22:37.3474103+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:22:37.8008434+00:00\",\r\n \"status\": \"\ Succeeded\",\r\n \"properties\": {\r\n \"output\": {\"sku\":{\"name\"\ :\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"creationData\":{\"\ createOption\":\"Copy\",\"sourceResourceId\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ - },\"diskSizeGB\":10,\"timeCreated\":\"2018-09-28T22:32:40.8490144+00:00\"\ + },\"diskSizeGB\":10,\"timeCreated\":\"2018-10-23T19:22:37.3474103+00:00\"\ ,\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\"},\"type\"\ :\"Microsoft.Compute/snapshots\",\"location\":\"westus\",\"tags\":{},\"id\"\ :\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\ - ,\"name\":\"s2\"}\r\n },\r\n \"name\": \"f856f9ea-8306-496b-9d03-56ed4bf9bfd9\"\ + ,\"name\":\"s2\"}\r\n },\r\n \"name\": \"fae80acb-509b-4cc2-829e-0564b36fde99\"\ \r\n}"} headers: cache-control: [no-cache] content-length: ['920'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:11 GMT'] + date: ['Tue, 23 Oct 2018 19:23:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -994,7 +965,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49972,Microsoft.Compute/GetOperation30Min;249930'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;249956'] status: {code: 200, message: OK} - request: body: null @@ -1003,9 +974,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [snapshot create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2018-06-01 response: @@ -1013,7 +983,7 @@ interactions: tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"\ /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ - \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2018-09-28T22:32:40.8490144+00:00\"\ + \r\n },\r\n \"diskSizeGB\": 10,\r\n \"timeCreated\": \"2018-10-23T19:22:37.3474103+00:00\"\ ,\r\n \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {},\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\ @@ -1022,7 +992,7 @@ interactions: cache-control: [no-cache] content-length: ['813'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:11 GMT'] + date: ['Tue, 23 Oct 2018 19:23:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -1030,7 +1000,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;19925'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4984,Microsoft.Compute/LowCostGet30Min;19942'] status: {code: 200, message: OK} - request: body: null @@ -1039,9 +1009,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [image create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2018-10-01 @@ -1052,7 +1021,7 @@ interactions: cache-control: [no-cache] content-length: ['215'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:13 GMT'] + date: ['Tue, 23 Oct 2018 19:23:09 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1066,9 +1035,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [image create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 @@ -1076,17 +1044,17 @@ interactions: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 1,\r\n \"timeCreated\": \"2018-09-28T22:31:33.930573+00:00\",\r\n \ - \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:21:28.7631142+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\ : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ ,\r\n \"name\": \"s1\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['626'] + content-length: ['627'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:13 GMT'] + date: ['Tue, 23 Oct 2018 19:23:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -1094,7 +1062,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4982,Microsoft.Compute/LowCostGet30Min;19924'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;19941'] status: {code: 200, message: OK} - request: body: null @@ -1103,9 +1071,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [image create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2018-06-01 @@ -1116,7 +1083,7 @@ interactions: cache-control: [no-cache] content-length: ['209'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:14 GMT'] + date: ['Tue, 23 Oct 2018 19:23:10 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1130,9 +1097,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [image create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 @@ -1140,7 +1106,7 @@ interactions: body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ - \ 10,\r\n \"timeCreated\": \"2018-09-28T22:28:24.2478925+00:00\",\r\n \ + \ 10,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"ActiveSAS\"\ \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ @@ -1150,7 +1116,7 @@ interactions: cache-control: [no-cache] content-length: ['619'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:15 GMT'] + date: ['Tue, 23 Oct 2018 19:23:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -1158,7 +1124,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4981,Microsoft.Compute/LowCostGet30Min;19923'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/LowCostGet3Min;4982,Microsoft.Compute/LowCostGet30Min;19940'] status: {code: 200, message: OK} - request: body: null @@ -1168,19 +1134,18 @@ interactions: CommandName: [image create] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-09-28T22:28:18Z"},"properties":{"provisioningState":"Succeeded"}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} headers: cache-control: [no-cache] content-length: ['384'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:15 GMT'] + date: ['Tue, 23 Oct 2018 19:23:11 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -1201,9 +1166,8 @@ interactions: Connection: [keep-alive] Content-Length: ['1016'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1?api-version=2018-10-01 @@ -1228,18 +1192,18 @@ interactions: \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1\"\ ,\r\n \"name\": \"i1\"\r\n}"} headers: - azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b2897084-be69-4deb-977f-6024352809a5?api-version=2018-10-01'] + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/751d9d40-0403-459b-99eb-83adb0660a0f?api-version=2018-10-01'] cache-control: [no-cache] content-length: ['1939'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:15 GMT'] + date: ['Tue, 23 Oct 2018 19:23:11 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/CreateImages3Min;38,Microsoft.Compute/CreateImages30Min;196'] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: null @@ -1248,20 +1212,19 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [image create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b2897084-be69-4deb-977f-6024352809a5?api-version=2018-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/751d9d40-0403-459b-99eb-83adb0660a0f?api-version=2018-10-01 response: - body: {string: "{\r\n \"startTime\": \"2018-09-28T22:33:16.5531567+00:00\",\r\ - \n \"endTime\": \"2018-09-28T22:33:21.740598+00:00\",\r\n \"status\": \"\ - Succeeded\",\r\n \"name\": \"b2897084-be69-4deb-977f-6024352809a5\"\r\n}"} + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:23:12.4555224+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:23:17.6636296+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"751d9d40-0403-459b-99eb-83adb0660a0f\"\r\n}"} headers: cache-control: [no-cache] - content-length: ['183'] + content-length: ['184'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:46 GMT'] + date: ['Tue, 23 Oct 2018 19:23:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -1269,7 +1232,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14966,Microsoft.Compute/GetOperation30Min;29596'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29990'] status: {code: 200, message: OK} - request: body: null @@ -1278,9 +1241,8 @@ interactions: Accept-Encoding: ['gzip, deflate'] CommandName: [image create] Connection: [keep-alive] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 computemanagementclient/4.3.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1?api-version=2018-10-01 response: @@ -1310,7 +1272,569 @@ interactions: cache-control: [no-cache] content-length: ['2053'] content-type: [application/json; charset=utf-8] - date: ['Fri, 28 Sep 2018 22:33:47 GMT'] + date: ['Tue, 23 Oct 2018 19:23:43 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/GetImages3Min;357,Microsoft.Compute/GetImages30Min;1789'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2018-10-01 + response: + body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachines/s1'' + under resource group ''cli_test_managed_disk000001'' was not found."}}'} + headers: + cache-control: [no-cache] + content-length: ['215'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:23:44 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [gateway] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ + tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ + : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:21:28.7631142+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ + \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ + : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ + ,\r\n \"name\": \"s1\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['627'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:23:45 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;4976,Microsoft.Compute/LowCostGet30Min;19934'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2018-06-01 + response: + body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/snapshots/d1'' + under resource group ''cli_test_managed_disk000001'' was not found."}}'} + headers: + cache-control: [no-cache] + content-length: ['209'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:23:45 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [gateway] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ + tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ + : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ + \ 10,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"ActiveSAS\"\ + \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ + westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ + ,\r\n \"name\": \"d1\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['619'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:23:45 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;4975,Microsoft.Compute/LowCostGet30Min;19933'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:23: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: 'b''{"location": "westus", "tags": {"tag1": "i1"}, "properties": {"storageProfile": + {"osDisk": {"osType": "Linux", "osState": "Generalized", "snapshot": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1"}, + "storageAccountType": "Premium_LRS"}, "dataDisks": [{"lun": 0, "snapshot": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2"}}, + {"lun": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1"}}, + {"lun": 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2"}}]}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + Content-Length: ['1053'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2?api-version=2018-10-01 + response: + body: {string: "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \ + \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\"\ + : \"Generalized\",\r\n \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Premium_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n \ + \ \"lun\": 0,\r\n \"snapshot\": {\r\n \"id\":\ + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 1,\r\n\ + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 2,\r\n\ + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\ + : \"Creating\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"\ + location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"i1\"\r\n },\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2\"\ + ,\r\n \"name\": \"i2\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/d993c90f-6cbb-4ca1-975e-3c826c4c2261?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1938'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:23:46 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/CreateImages3Min;38,Microsoft.Compute/CreateImages30Min;196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/d993c90f-6cbb-4ca1-975e-3c826c4c2261?api-version=2018-10-01 + response: + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:23:47.2498329+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:23:52.4380917+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"d993c90f-6cbb-4ca1-975e-3c826c4c2261\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['184'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:17 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;14996,Microsoft.Compute/GetOperation30Min;29988'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2?api-version=2018-10-01 + response: + body: {string: "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \ + \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\"\ + : \"Generalized\",\r\n \"diskSizeGB\": 1,\r\n \"snapshot\":\ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Premium_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n \ + \ \"lun\": 0,\r\n \"diskSizeGB\": 10,\r\n \"snapshot\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 1,\r\n\ + \ \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 2,\r\n\ + \ \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\ + : \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"i1\"\r\n \ + \ },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2\"\ + ,\r\n \"name\": \"i2\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2052'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24: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/GetImages3Min;352,Microsoft.Compute/GetImages30Min;1784'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2018-10-01 + response: + body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/virtualMachines/s1'' + under resource group ''cli_test_managed_disk000001'' was not found."}}'} + headers: + cache-control: [no-cache] + content-length: ['215'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:20 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [gateway] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2018-06-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ + tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ + : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ + \ 1,\r\n \"timeCreated\": \"2018-10-23T19:21:28.7631142+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\"\ + \r\n },\r\n \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\"\ + : \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"s1\"\r\n },\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ + ,\r\n \"name\": \"s1\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['627'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:20 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;4972,Microsoft.Compute/LowCostGet30Min;19927'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2018-06-01 + response: + body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/snapshots/d1'' + under resource group ''cli_test_managed_disk000001'' was not found."}}'} + headers: + cache-control: [no-cache] + content-length: ['209'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:21 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] + x-ms-failure-cause: [gateway] + status: {code: 404, message: Not Found} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2018-06-01 + response: + body: {string: "{\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"\ + tier\": \"Standard\"\r\n },\r\n \"properties\": {\r\n \"creationData\"\ + : {\r\n \"createOption\": \"Empty\"\r\n },\r\n \"diskSizeGB\":\ + \ 10,\r\n \"timeCreated\": \"2018-10-23T19:19:15.4795231+00:00\",\r\n \ + \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"ActiveSAS\"\ + \r\n },\r\n \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"\ + westus\",\r\n \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"id\": \"\ + /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ + ,\r\n \"name\": \"d1\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['619'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:21 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;4971,Microsoft.Compute/LowCostGet30Min;19926'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 + response: + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2018-10-23T19:19:08Z"},"properties":{"provisioningState":"Succeeded"}}'} + headers: + cache-control: [no-cache] + content-length: ['384'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:21 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": "westus", "tags": {"tag1": "i1"}, "properties": {"storageProfile": + {"osDisk": {"osType": "Linux", "osState": "Generalized", "snapshot": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1"}, + "storageAccountType": "Standard_LRS"}, "dataDisks": [{"lun": 0, "snapshot": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2"}}, + {"lun": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1"}}, + {"lun": 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2"}}]}}}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + Content-Length: ['1054'] + Content-Type: [application/json; charset=utf-8] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + accept-language: [en-US] + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3?api-version=2018-10-01 + response: + body: {string: "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \ + \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\"\ + : \"Generalized\",\r\n \"snapshot\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n\ + \ \"lun\": 0,\r\n \"snapshot\": {\r\n \"id\"\ + : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 1,\r\n\ + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 2,\r\n\ + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\ + : \"Creating\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \"\ + location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"i1\"\r\n },\r\ + \n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3\"\ + ,\r\n \"name\": \"i3\"\r\n}"} + headers: + azure-asyncoperation: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5b7477dc-5af5-41c8-aecd-652a4e736c89?api-version=2018-10-01'] + cache-control: [no-cache] + content-length: ['1939'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:22 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/CreateImages3Min;37,Microsoft.Compute/CreateImages30Min;195'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 201, message: Created} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5b7477dc-5af5-41c8-aecd-652a4e736c89?api-version=2018-10-01 + response: + body: {string: "{\r\n \"startTime\": \"2018-10-23T19:24:22.8685484+00:00\",\r\ + \n \"endTime\": \"2018-10-23T19:24:28.0404548+00:00\",\r\n \"status\": \"\ + Succeeded\",\r\n \"name\": \"5b7477dc-5af5-41c8-aecd-652a4e736c89\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['184'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24: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;14994,Microsoft.Compute/GetOperation30Min;29986'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [image create] + Connection: [keep-alive] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + computemanagementclient/4.3.1 Azure-SDK-For-Python AZURECLI/2.0.50] + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3?api-version=2018-10-01 + response: + body: {string: "{\r\n \"properties\": {\r\n \"storageProfile\": {\r\n \ + \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\"\ + : \"Generalized\",\r\n \"diskSizeGB\": 1,\r\n \"snapshot\":\ + \ {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n\ + \ \"lun\": 0,\r\n \"diskSizeGB\": 10,\r\n \"snapshot\"\ + : {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 1,\r\n\ + \ \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n },\r\n {\r\n \"lun\": 2,\r\n\ + \ \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \ + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\"\ + \r\n },\r\n \"caching\": \"None\",\r\n \"storageAccountType\"\ + : \"Standard_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\"\ + : \"Succeeded\"\r\n },\r\n \"type\": \"Microsoft.Compute/images\",\r\n \ + \ \"location\": \"westus\",\r\n \"tags\": {\r\n \"tag1\": \"i1\"\r\n \ + \ },\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3\"\ + ,\r\n \"name\": \"i3\"\r\n}"} + headers: + cache-control: [no-cache] + content-length: ['2053'] + content-type: [application/json; charset=utf-8] + date: ['Tue, 23 Oct 2018 19:24:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0] @@ -1318,7 +1842,7 @@ interactions: transfer-encoding: [chunked] vary: [Accept-Encoding] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;352,Microsoft.Compute/GetImages30Min;1778'] + x-ms-ratelimit-remaining-resource: ['Microsoft.Compute/GetImages3Min;348,Microsoft.Compute/GetImages30Min;1780'] status: {code: 200, message: OK} - request: body: null @@ -1329,9 +1853,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.7.0 (Darwin-17.5.0-x86_64-i386-64bit) requests/2.19.1 - msrest/0.5.4 msrest_azure/0.4.34 resourcemanagementclient/2.0.0 Azure-SDK-For-Python - AZURECLI/2.0.47] + User-Agent: [python/3.6.5 (Darwin-17.7.0-x86_64-i386-64bit) msrest/0.6.0 msrest_azure/0.4.34 + resourcemanagementclient/2.0.0 Azure-SDK-For-Python AZURECLI/2.0.50] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2018-05-01 @@ -1340,12 +1863,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Fri, 28 Sep 2018 22:33:48 GMT'] + date: ['Tue, 23 Oct 2018 19:24:55 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTUFOQUdFRDo1RkRJU0szNkFHM1NQWDM1U0pCNFYzRlFXVnw1RjFFQTY3OTY3ODU0OTI2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGTUFOQUdFRDo1RkRJU0tVNUY2VFRQRTNWTktXRE9IRzVRUHw4NEI3N0FGOTk1QkYxN0UwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2018-05-01'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-content-type-options: [nosniff] - x-ms-ratelimit-remaining-subscription-deletes: ['14997'] + x-ms-ratelimit-remaining-subscription-deletes: ['14999'] status: {code: 202, message: Accepted} version: 1 diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 8296893cc7b..02da7b8dcb6 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -549,7 +549,9 @@ def test_vm_managed_disk(self, resource_group): 'disk2': 'd2', 'snapshot1': 's1', 'snapshot2': 's2', - 'image': 'i1' + 'image': 'i1', + 'image_2': 'i2', + 'image_3': 'i3' }) # create a disk and update @@ -601,6 +603,23 @@ def test_vm_managed_disk(self, resource_group): self.check('tags.tag1', 'i1') ]) + # test that images can be created with different storage skus + self.cmd('image create -g {rg} -n {image_2} --source {snapshot1} --data-disk-sources {disk1} {snapshot2_id} {disk2_id}' + ' --os-type Linux --tags tag1=i1 --storage-sku Premium_LRS', + checks=[ + self.check('storageProfile.osDisk.storageAccountType', 'Premium_LRS'), + self.check('storageProfile.osDisk.osType', 'Linux'), + self.check('storageProfile.osDisk.snapshot.id', '{snapshot1_id}'), + self.check('length(storageProfile.dataDisks)', 3), + self.check('storageProfile.dataDisks[0].lun', 0), + self.check('storageProfile.dataDisks[1].lun', 1), + self.check('tags.tag1', 'i1') + ]) + + self.cmd('image create -g {rg} -n {image_3} --source {snapshot1} --data-disk-sources {disk1} {snapshot2_id} {disk2_id}' + ' --os-type Linux --tags tag1=i1 --storage-sku Standard_LRS', + checks=self.check('storageProfile.osDisk.storageAccountType', 'Standard_LRS')) + class VMWriteAcceleratorScenarioTest(ScenarioTest):