From 1eb822c253eac0b6d14de81c6ced68a1954767fc Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 27 Jul 2022 17:12:55 +0800 Subject: [PATCH 1/4] draft --- .../azure/cli/command_modules/vm/_help.py | 3 + .../azure/cli/command_modules/vm/_params.py | 1 + .../azure/cli/command_modules/vm/commands.py | 4 +- .../azure/cli/command_modules/vm/custom.py | 30 +- .../recordings/test_vm_disk_force_detach.yaml | 3541 +++++++++++++++++ .../tests/latest/test_custom_vm_commands.py | 4 +- .../vm/tests/latest/test_vm_commands.py | 63 + 7 files changed, 3640 insertions(+), 6 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 9757f67128e..c1cb2fdf1be 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -1821,6 +1821,9 @@ - name: Detach a data disk from a VM. text: > az vm disk detach -g MyResourceGroup --vm-name MyVm --name disk_name + - name: Force detach a data disk from a VM. + text: > + az vm disk detach -g MyResourceGroup --vm-name MyVm --name disk_name --force-detach """ helps['vm encryption'] = """ diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 672c12a537f..e276620a4b8 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -504,6 +504,7 @@ def load_arguments(self, _): with self.argument_context('vm disk detach') as c: c.argument('disk_name', arg_type=name_arg_type, help='The data disk name.') + c.argument('force_detach', action='store_true', min_api='2020-12-01', help='Force-detach managed data disks from a VM.') with self.argument_context('vm encryption enable') as c: c.argument('encrypt_format_all', action='store_true', help='Encrypts-formats data disks instead of encrypting them. Encrypt-formatting is a lot faster than in-place encryption but wipes out the partition getting encrypt-formatted. (Only supported for Linux virtual machines.)') diff --git a/src/azure-cli/azure/cli/command_modules/vm/commands.py b/src/azure-cli/azure/cli/command_modules/vm/commands.py index f4d66a5ca35..450f9c26fbb 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -388,7 +388,7 @@ def load_command_table(self, _): with self.command_group('vm disk', compute_vm_sdk, min_api='2017-03-30') as g: g.custom_command('attach', 'attach_managed_data_disk', validator=process_vm_disk_attach_namespace) - g.custom_command('detach', 'detach_data_disk') + g.custom_command('detach', 'detach_managed_data_disk') with self.command_group('vm encryption', custom_command_type=compute_disk_encryption_custom) as g: g.custom_command('enable', 'encrypt_vm', validator=process_disk_encryption_namespace) @@ -446,7 +446,7 @@ def load_command_table(self, _): with self.command_group('vm unmanaged-disk', compute_vm_sdk) as g: g.custom_command('attach', 'attach_unmanaged_data_disk') - g.custom_command('detach', 'detach_data_disk') + g.custom_command('detach', 'detach_unmanaged_data_disk') g.custom_command('list', 'list_unmanaged_disks') with self.command_group('vm user', compute_vm_sdk, supports_no_wait=True) as g: diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index e09b58ae596..d8da1b2ed17 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -1916,8 +1916,8 @@ def attach_managed_data_disk(cmd, resource_group_name, vm_name, disk=None, ids=N set_vm(cmd, vm) -def detach_data_disk(cmd, resource_group_name, vm_name, disk_name): - # here we handle both unmanaged or managed disk +def detach_unmanaged_data_disk(cmd, resource_group_name, vm_name, disk_name): + # here we handle unmanaged disk vm = get_vm_to_update(cmd, resource_group_name, vm_name) # pylint: disable=no-member leftovers = [d for d in vm.storage_profile.data_disks if d.name.lower() != disk_name.lower()] @@ -1928,6 +1928,32 @@ def detach_data_disk(cmd, resource_group_name, vm_name, disk_name): # endregion +def detach_managed_data_disk(cmd, resource_group_name, vm_name, disk_name, force_detach=None): + # here we handle managed disk + vm = get_vm_to_update(cmd, resource_group_name, vm_name) + if not force_detach: + # pylint: disable=no-member + leftovers = [d for d in vm.storage_profile.data_disks if d.name.lower() != disk_name.lower()] + if len(vm.storage_profile.data_disks) == len(leftovers): + raise ResourceNotFoundError("No disk with the name '{}' was found".format(disk_name)) + else: + DiskDetachOptionTypes = cmd.get_models('DiskDetachOptionTypes', resource_type=ResourceType.MGMT_COMPUTE, + operation_group='virtual_machines') + leftovers = vm.storage_profile.data_disks + is_contains = False + for d in leftovers: + if d.name.lower() == disk_name.lower(): + d.to_be_detached = True + d.detach_option = DiskDetachOptionTypes.FORCE_DETACH + is_contains = True + break + if not is_contains: + raise ResourceNotFoundError("No disk with the name '{}' was found".format(disk_name)) + vm.storage_profile.data_disks = leftovers + set_vm(cmd, vm) +# endregion + + # region VirtualMachines Extensions def list_extensions(cmd, resource_group_name, vm_name): vm = get_vm(cmd, resource_group_name, vm_name) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml new file mode 100644 index 00000000000..09ce40bbe64 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml @@ -0,0 +1,3541 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Debian\": {\n \"publisher\": + \"Debian\",\n \"offer\": \"debian-10\",\n \"sku\": \"10\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"sku\": + \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"RHEL\": {\n \"publisher\": \"RedHat\",\n + \ \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"SLES\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"sles-15-sp3\",\n + \ \"sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n },\n \"Windows\": {\n \"Win2022Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"Win2022AzureEditionCore\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-datacenter-azure-edition-core\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2016Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2016-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2008-R2-SP1\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n }\n }\n }\n }\n}" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '3463' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:38:02 GMT + etag: + - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" + expires: + - Wed, 27 Jul 2022 08:43:02 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding,Origin + via: + - 1.1 varnish + x-cache: + - MISS + x-cache-hits: + - '0' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 779aa14f38a5a3cc52ace0cbad4bc793c9f942cf + x-frame-options: + - deny + x-github-request-id: + - E788:69F0:E918E:128B3C:62E0F96A + x-served-by: + - cache-nrt-rjtf7700076-NRT + x-timer: + - S1658911083.596389,VS0,VE178 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions?$top=1&$orderby=name%20desc&api-version=2022-03-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '270' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:38:03 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/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43993 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions/7.5.201808150?api-version=2022-03-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": + 32212255232\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '737' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:38:05 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/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73993 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:38:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {"adminPassword": {"type": "securestring", + "metadata": {"description": "Secure adminPassword"}}}, "variables": {}, "resources": + [{"name": "vm-diskforcedetach-testVNET", "type": "Microsoft.Network/virtualNetworks", + "location": "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, + "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": + [{"name": "vm-diskforcedetach-testSubnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, + {"type": "Microsoft.Network/networkSecurityGroups", "name": "vm-diskforcedetach-testNSG", + "apiVersion": "2015-06-15", "location": "westus", "tags": {}, "dependsOn": []}, + {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "vm-diskforcedetach-testPublicIP", "location": "westus", "tags": {}, + "dependsOn": [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": + "2015-06-15", "type": "Microsoft.Network/networkInterfaces", "name": "vm-diskforcedetach-testVMNic", + "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET", + "Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG", "Microsoft.Network/publicIpAddresses/vm-diskforcedetach-testPublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm-diskforcedetach-test", + "properties": {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET/subnets/vm-diskforcedetach-testSubnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG"}}}, + {"apiVersion": "2022-03-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm-diskforcedetach-test", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic", + "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": + "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}}, "imageReference": {"publisher": "OpenLogic", "offer": "CentOS", "sku": + "7.5", "version": "latest"}}, "osProfile": {"computerName": "vm-diskforcedetach-test", + "adminUsername": "admin123", "adminPassword": "[parameters(''adminPassword'')]"}}}], + "outputs": {}}, "parameters": {"adminPassword": {"value": "testPassword0"}}, + "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3229' + Content-Type: + - application/json + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","name":"vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17693581246182815890","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-07-27T08:38:11.6020445Z","duration":"PT0.0008184S","correlationId":"b0407769-312a-4b12-a6c5-c2adc01e3680","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-diskforcedetach-testVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-diskforcedetach-testPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-diskforcedetach-test"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb/operationStatuses/08585426957961224148?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '2721' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:38: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: + - '1196' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426957961224148?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:38:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426957961224148?api-version=2021-04-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426957961224148?api-version=2021-04-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","name":"vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17693581246182815890","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-07-27T08:39:39.2078179Z","duration":"PT1M27.6065918S","correlationId":"b0407769-312a-4b12-a6c5-c2adc01e3680","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-diskforcedetach-testVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-diskforcedetach-testPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-diskforcedetach-test"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3673' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?$expand=instanceView&api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": + \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": + \"vm-diskforcedetach-test\",\r\n \"osName\": \"centos\",\r\n \"osVersion\": + \"7.5.1804\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.8.0.9\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n + \ \"message\": \"Guest Agent is running\",\r\n \"time\": + \"2022-07-27T08:39:38+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2022-07-27T08:38:30.7953461+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2022-07-27T08:39:36.7017649+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3465' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:46 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;3993,Microsoft.Compute/LowCostGet30Min;31856 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-testVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\",\r\n + \ \"etag\": \"W/\\\"58f5a047-0ef7-408c-8b77-bd4d7afcef62\\\"\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"c0c25b17-fe10-499e-b22a-3a141536be04\",\r\n \"ipConfigurations\": + [\r\n {\r\n \"name\": \"ipconfigvm-diskforcedetach-test\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic/ipConfigurations/ipconfigvm-diskforcedetach-test\",\r\n + \ \"etag\": \"W/\\\"58f5a047-0ef7-408c-8b77-bd4d7afcef62\\\"\",\r\n + \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": + \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET/subnets/vm-diskforcedetach-testSubnet\"\r\n + \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": + \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": + [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": + \"bkhwibbqo4ee3hcz0hirssnuyc.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-04-92-29\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\",\r\n + \ \"location\": \"westus\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2467' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:46 GMT + etag: + - W/"58f5a047-0ef7-408c-8b77-bd4d7afcef62" + 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-arm-service-request-id: + - 726b45f5-4720-49b6-bdc9-b558f94b38d1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g --location -n --admin-username --image --admin-password --authentication-type + --nsg-rule + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-testPublicIP\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP\",\r\n + \ \"etag\": \"W/\\\"48de23b1-1321-4654-81e1-657496591fe5\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"0568ecf5-8bed-4766-8807-1a2f13a31fd8\",\r\n + \ \"ipAddress\": \"168.62.21.241\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic/ipConfigurations/ipconfigvm-diskforcedetach-test\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n + \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '991' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:47 GMT + etag: + - W/"48de23b1-1321-4654-81e1-657496591fe5" + 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-arm-service-request-id: + - 6c3ec8f0-d6ef-47aa-8ded-66045d6024f1 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --new --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": + \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2129' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39:47 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;3992,Microsoft.Compute/LowCostGet30Min;31855 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 0, "name": "d1", "caching": "ReadOnly", "createOption": "Empty", "diskSizeGB": + 1, "managedDisk": {}}]}, "osProfile": {"computerName": "vm-diskforcedetach-test", + "adminUsername": "admin123", "linuxConfiguration": {"disablePasswordAuthentication": + false, "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", + "assessmentMode": "ImageDefault"}}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + Content-Length: + - '1287' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name --name --new --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\"\r\n },\r\n \"deleteOption\": \"Detach\",\r\n + \ \"diskSizeGB\": 1,\r\n \"toBeDetached\": false\r\n }\r\n + \ ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/13b7d7ad-df50-41a7-94fa-13e4d09a2ab7?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '2463' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:39: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/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1175 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --new --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/13b7d7ad-df50-41a7-94fa-13e4d09a2ab7?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:39:51.467416+00:00\",\r\n \"endTime\": + \"2022-07-27T08:40:01.2173919+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"13b7d7ad-df50-41a7-94fa-13e4d09a2ab7\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:40:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29945 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --new --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2623' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:40:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3989,Microsoft.Compute/LowCostGet30Min;31873 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --new --size-gb --lun --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2623' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:40:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3988,Microsoft.Compute/LowCostGet30Min;31872 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 0, "name": "d1", "caching": "ReadOnly", "createOption": "Empty", "diskSizeGB": + 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", + "storageAccountType": "Premium_LRS"}, "toBeDetached": false, "deleteOption": + "Detach"}, {"lun": 2, "name": "d2", "createOption": "Empty", "diskSizeGB": 2, + "managedDisk": {"storageAccountType": "Standard_LRS"}}]}, "osProfile": {"computerName": + "vm-diskforcedetach-test", "adminUsername": "admin123", "linuxConfiguration": + {"disablePasswordAuthentication": false, "provisionVMAgent": true, "patchSettings": + {"patchMode": "ImageDefault", "assessmentMode": "ImageDefault"}}, "secrets": + [], "allowExtensionOperations": true, "requireGuestProvisionSignal": true}, + "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + Content-Length: + - '1640' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name --name --new --size-gb --lun --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\"\r\n },\r\n \"deleteOption\": \"Detach\",\r\n + \ \"diskSizeGB\": 2,\r\n \"toBeDetached\": false\r\n }\r\n + \ ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/ba040f25-3b6a-4d55-a7df-988bf794e7b8?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '2947' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:40:27 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/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1179 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --new --size-gb --lun --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/ba040f25-3b6a-4d55-a7df-988bf794e7b8?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:40:27.2643333+00:00\",\r\n \"endTime\": + \"2022-07-27T08:40:37.8737406+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"ba040f25-3b6a-4d55-a7df-988bf794e7b8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:40:58 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;29943 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --new --size-gb --lun --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3107' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:40:58 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;3986,Microsoft.Compute/LowCostGet30Min;31869 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3107' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:01 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;3986,Microsoft.Compute/LowCostGet30Min;31868 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3107' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3984,Microsoft.Compute/LowCostGet30Min;31866 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 2, "name": "d2", "caching": "None", "createOption": "Empty", "diskSizeGB": + 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2", + "storageAccountType": "Standard_LRS"}, "toBeDetached": false, "deleteOption": + "Detach"}]}, "osProfile": {"computerName": "vm-diskforcedetach-test", "adminUsername": + "admin123", "linuxConfiguration": {"disablePasswordAuthentication": false, "provisionVMAgent": + true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": "ImageDefault"}}, + "secrets": [], "allowExtensionOperations": true, "requireGuestProvisionSignal": + true}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + Content-Length: + - '1514' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": true\r\n },\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a2af625d-ba81-4d37-a0c5-de3ba7dc6b54?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '3105' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:07 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/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1178 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a2af625d-ba81-4d37-a0c5-de3ba7dc6b54?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:41:05.1238105+00:00\",\r\n \"endTime\": + \"2022-07-27T08:41:21.5300823+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a2af625d-ba81-4d37-a0c5-de3ba7dc6b54\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:37 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;14995,Microsoft.Compute/GetOperation30Min;29942 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2620' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:37 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;3981,Microsoft.Compute/LowCostGet30Min;31862 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2620' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:39 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;3980,Microsoft.Compute/LowCostGet30Min;31861 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2620' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:39 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;3979,Microsoft.Compute/LowCostGet30Min;31860 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 2, "name": "d2", "caching": "None", "createOption": "Empty", "diskSizeGB": + 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2", + "storageAccountType": "Standard_LRS"}, "toBeDetached": true, "detachOption": + "ForceDetach", "deleteOption": "Detach"}]}, "osProfile": {"computerName": "vm-diskforcedetach-test", + "adminUsername": "admin123", "linuxConfiguration": {"disablePasswordAuthentication": + false, "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", + "assessmentMode": "ImageDefault"}}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + Content-Length: + - '1544' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n + \ \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": true,\r\n \"detachOption\": \"ForceDetach\"\r\n + \ }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"vm-diskforcedetach-test\",\r\n \"adminUsername\": \"admin123\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/7c7c019f-f64d-400f-ac4e-8ef41366818c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '2660' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:41:42 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/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1177 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/7c7c019f-f64d-400f-ac4e-8ef41366818c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:41:41.8894736+00:00\",\r\n \"endTime\": + \"2022-07-27T08:41:42.2644701+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"7c7c019f-f64d-400f-ac4e-8ef41366818c\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29940 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": + \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2129' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:14 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;3976,Microsoft.Compute/LowCostGet30Min;31857 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": + \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2129' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42: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/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31856 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --caching --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": + \"admin123\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2129' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31855 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 0, "caching": "ReadWrite", "createOption": "Attach", "managedDisk": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", + "storageAccountType": "Standard_LRS"}}]}, "osProfile": {"computerName": "vm-diskforcedetach-test", + "adminUsername": "admin123", "linuxConfiguration": {"disablePasswordAuthentication": + false, "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", + "assessmentMode": "ImageDefault"}}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + Content-Length: + - '1440' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name --name --caching --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8cecde6b-390d-4724-83e0-e3098f69de15?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '2625' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:27 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/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1176 + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --caching --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8cecde6b-390d-4724-83e0-e3098f69de15?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:42:25.405202+00:00\",\r\n \"endTime\": + \"2022-07-27T08:42:32.3583062+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"8cecde6b-390d-4724-83e0-e3098f69de15\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:57 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;14992,Microsoft.Compute/GetOperation30Min;29938 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --caching --sku + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:57 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;3975,Microsoft.Compute/LowCostGet30Min;31852 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:58 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;3974,Microsoft.Compute/LowCostGet30Min;31851 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:42:59 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;3978,Microsoft.Compute/LowCostGet30Min;31850 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:01 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;3977,Microsoft.Compute/LowCostGet30Min;31849 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:03 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;3976,Microsoft.Compute/LowCostGet30Min;31848 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 0, "name": "d1", "caching": "ReadWrite", "createOption": "Attach", + "diskSizeGB": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", + "storageAccountType": "Standard_LRS"}, "toBeDetached": false, "deleteOption": + "Detach"}, {"lun": 1, "caching": "ReadOnly", "createOption": "Attach", "managedDisk": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2"}}]}, + "osProfile": {"computerName": "vm-diskforcedetach-test", "adminUsername": "admin123", + "linuxConfiguration": {"disablePasswordAuthentication": false, "provisionVMAgent": + true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": "ImageDefault"}}, + "secrets": [], "allowExtensionOperations": true, "requireGuestProvisionSignal": + true}, "networkProfile": {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + Content-Length: + - '1744' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name --name --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a6d0a76d-06db-4614-abf1-7cfb7a06e56a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '3114' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:06 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/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1175 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a6d0a76d-06db-4614-abf1-7cfb7a06e56a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:43:04.8706748+00:00\",\r\n \"endTime\": + \"2022-07-27T08:43:12.9948426+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a6d0a76d-06db-4614-abf1-7cfb7a06e56a\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29936 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk attach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name --name --size-gb --caching + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3115' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31844 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3115' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:37 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;3974,Microsoft.Compute/LowCostGet30Min;31843 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3115' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:37 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;3973,Microsoft.Compute/LowCostGet30Min;31842 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": + "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + [{"lun": 0, "name": "d1", "caching": "ReadWrite", "createOption": "Attach", + "diskSizeGB": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", + "storageAccountType": "Standard_LRS"}, "toBeDetached": false, "deleteOption": + "Detach"}, {"lun": 1, "name": "d2", "caching": "ReadOnly", "createOption": "Attach", + "diskSizeGB": 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2", + "storageAccountType": "Standard_LRS"}, "toBeDetached": true, "detachOption": + "ForceDetach", "deleteOption": "Detach"}]}, "osProfile": {"computerName": "vm-diskforcedetach-test", + "adminUsername": "admin123", "linuxConfiguration": {"disablePasswordAuthentication": + false, "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", + "assessmentMode": "ImageDefault"}}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + Content-Length: + - '1892' + Content-Type: + - application/json + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n },\r\n {\r\n \"lun\": + 1,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadOnly\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": + \"Standard_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 2,\r\n \"toBeDetached\": true,\r\n \"detachOption\": \"ForceDetach\"\r\n + \ }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"vm-diskforcedetach-test\",\r\n \"adminUsername\": \"admin123\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true,\r\n \"patchSettings\": + {\r\n \"patchMode\": \"ImageDefault\",\r\n \"assessmentMode\": + \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/90573d3f-7550-46d8-8a87-5bba6812ba44?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + cache-control: + - no-cache + content-length: + - '3155' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:43:41 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/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1174 + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/90573d3f-7550-46d8-8a87-5bba6812ba44?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-07-27T08:43:39.9828042+00:00\",\r\n \"endTime\": + \"2022-07-27T08:43:40.3109678+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"90573d3f-7550-46d8-8a87-5bba6812ba44\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:44:11 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;14991,Microsoft.Compute/GetOperation30Min;29934 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm disk detach + Connection: + - keep-alive + ParameterSetName: + - -g --vm-name -n --force-detach + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:44:11 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;3974,Microsoft.Compute/LowCostGet30Min;31838 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test?api-version=2022-03-01 + response: + body: + string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": + 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Standard_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 1,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n + \ \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n + \ \"adminUsername\": \"admin123\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": false,\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2626' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 27 Jul 2022 08:44:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3973,Microsoft.Compute/LowCostGet30Min;31837 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py index f2b2005af40..031ab99d46d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_custom_vm_commands.py @@ -16,7 +16,7 @@ _get_extension_instance_name, get_boot_log) from azure.cli.command_modules.vm.custom import \ - (attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view) + (attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view) from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import AzCliCommand @@ -206,7 +206,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update): mock_vm_get_to_update.return_value = vm # execute - detach_data_disk(cmd, 'rg1', 'vm1', 'd1') + detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1') # assert self.assertTrue(mock_vm_get_to_update.called) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 3f050469463..f0d957029e0 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -2747,6 +2747,69 @@ def test_vm_disk_attach_detach(self, resource_group): self.check('storageProfile.dataDisks[0].lun', 0) ]) + @ResourceGroupPreparer(name_prefix='cli-test-disk-force-detach') + def test_vm_disk_force_detach(self, resource_group): + self.kwargs.update({ + 'loc': 'westus', + 'vm': 'vm-diskforcedetach-test', + 'disk1': 'd1', + 'disk2': 'd2' + }) + + self.cmd('vm create -g {rg} --location {loc} -n {vm} --admin-username admin123 --image centos ' + '--admin-password testPassword0 --authentication-type password --nsg-rule NONE') + + self.cmd('vm disk attach -g {rg} --vm-name {vm} --name {disk1} --new --size-gb 1 --caching ReadOnly') + self.cmd('vm disk attach -g {rg} --vm-name {vm} --name {disk2} --new --size-gb 2 --lun 2 --sku standard_lrs') + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('length(storageProfile.dataDisks)', 2), + self.check('storageProfile.dataDisks[0].name', '{disk1}'), + self.check('storageProfile.dataDisks[0].caching', 'ReadOnly'), + self.check('storageProfile.dataDisks[0].managedDisk.storageAccountType', 'Premium_LRS'), + self.check('storageProfile.dataDisks[1].name', '{disk2}'), + self.check('storageProfile.dataDisks[1].lun', 2), + self.check('storageProfile.dataDisks[1].managedDisk.storageAccountType', 'Standard_LRS'), + self.check('storageProfile.dataDisks[1].caching', 'None') + ]) + self.cmd('vm disk detach -g {rg} --vm-name {vm} -n {disk1}') + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('length(storageProfile.dataDisks)', 1), + self.check('storageProfile.dataDisks[0].name', '{disk2}'), + self.check('storageProfile.dataDisks[0].lun', 2) + ]) + + # force detach a disk + self.cmd('vm disk detach -g {rg} --vm-name {vm} -n {disk2} --force-detach') + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('length(storageProfile.dataDisks)', 0) + ]) + + self.cmd('vm disk attach -g {rg} --vm-name {vm} --name {disk1} --caching ReadWrite --sku standard_lrs') + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('storageProfile.dataDisks[0].caching', 'ReadWrite'), + self.check('storageProfile.dataDisks[0].managedDisk.storageAccountType', 'Standard_LRS'), + self.check('storageProfile.dataDisks[0].lun', 0) + ]) + + # detach a not existing disk + from azure.cli.core.azclierror import ResourceNotFoundError + with self.assertRaises(ResourceNotFoundError): + self.cmd('vm disk detach -g {rg} --vm-name {vm} -n {disk2} --force-detach') + with self.assertRaises(ResourceNotFoundError): + self.cmd('vm disk detach -g {rg} --vm-name {vm} -n {disk2}') + + self.cmd('vm disk attach -g {rg} --vm-name {vm} --name {disk2} --size-gb 1 --caching ReadOnly') + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('length(storageProfile.dataDisks)', 2) + ]) + + # force detach a disk + self.cmd('vm disk detach -g {rg} --vm-name {vm} -n {disk2} --force-detach') + self.cmd('vm show -g {rg} -n {vm}', checks=[ + self.check('length(storageProfile.dataDisks)', 1), + self.check('storageProfile.dataDisks[0].name', '{disk1}') + ]) + @ResourceGroupPreparer(name_prefix='cli-test-disk-attach-multiple-disks') def test_vm_disk_attach_multiple_disks(self, resource_group): From 47487fc9660c4140d9329672acda6b1d157fe786 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 27 Jul 2022 17:42:03 +0800 Subject: [PATCH 2/4] parameter help --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index e276620a4b8..8d0e8793c02 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -504,7 +504,7 @@ def load_arguments(self, _): with self.argument_context('vm disk detach') as c: c.argument('disk_name', arg_type=name_arg_type, help='The data disk name.') - c.argument('force_detach', action='store_true', min_api='2020-12-01', help='Force-detach managed data disks from a VM.') + c.argument('force_detach', action='store_true', min_api='2020-12-01', help='Force detach managed data disks from a VM.') with self.argument_context('vm encryption enable') as c: c.argument('encrypt_format_all', action='store_true', help='Encrypts-formats data disks instead of encrypting them. Encrypt-formatting is a lot faster than in-place encryption but wipes out the partition getting encrypt-formatted. (Only supported for Linux virtual machines.)') From cfdd348a06d576621433679651b1700eec35f1e7 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 27 Jul 2022 18:26:25 +0800 Subject: [PATCH 3/4] test --- .../recordings/test_vm_disk_force_detach.yaml | 694 ++++++++---------- 1 file changed, 294 insertions(+), 400 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml index 09ce40bbe64..0704713399b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_force_detach.yaml @@ -76,11 +76,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Wed, 27 Jul 2022 08:38:02 GMT + - Wed, 27 Jul 2022 10:14:43 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Wed, 27 Jul 2022 08:43:02 GMT + - Wed, 27 Jul 2022 10:19:43 GMT source-age: - '0' strict-transport-security: @@ -90,21 +90,21 @@ interactions: via: - 1.1 varnish x-cache: - - MISS + - HIT x-cache-hits: - - '0' + - '1' x-content-type-options: - nosniff x-fastly-request-id: - - 779aa14f38a5a3cc52ace0cbad4bc793c9f942cf + - c75ced5096b66b9371517fa5d6ccb8a9fb96d33a x-frame-options: - deny x-github-request-id: - - E788:69F0:E918E:128B3C:62E0F96A + - DA58:11FF:66E8C:870C1:62E10A36 x-served-by: - - cache-nrt-rjtf7700076-NRT + - cache-tyo11932-TYO x-timer: - - S1658911083.596389,VS0,VE178 + - S1658916883.327592,VS0,VE171 x-xss-protection: - 1; mode=block status: @@ -141,7 +141,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:38:03 GMT + - Wed, 27 Jul 2022 10:14:44 GMT expires: - '-1' pragma: @@ -158,7 +158,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43993 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 status: code: 200 message: OK @@ -198,7 +198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:38:05 GMT + - Wed, 27 Jul 2022 10:14:46 GMT expires: - '-1' pragma: @@ -215,7 +215,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73993 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 status: code: 200 message: OK @@ -248,7 +248,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:38:06 GMT + - Wed, 27 Jul 2022 10:14:48 GMT expires: - '-1' pragma: @@ -315,18 +315,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","name":"vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17693581246182815890","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-07-27T08:38:11.6020445Z","duration":"PT0.0008184S","correlationId":"b0407769-312a-4b12-a6c5-c2adc01e3680","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-diskforcedetach-testVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-diskforcedetach-testPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-diskforcedetach-test"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_577qO4hMmSIEXJ24UabT9QzugDbJbTmC","name":"vm_deploy_577qO4hMmSIEXJ24UabT9QzugDbJbTmC","type":"Microsoft.Resources/deployments","properties":{"templateHash":"15891242011793876138","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-07-27T10:14:56.4924013Z","duration":"PT0.000123S","correlationId":"6ddd79d9-ab16-4d17-b798-27698399ffe3","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-diskforcedetach-testVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-diskforcedetach-testPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-diskforcedetach-test"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb/operationStatuses/08585426957961224148?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_577qO4hMmSIEXJ24UabT9QzugDbJbTmC/operationStatuses/08585426899915929145?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2721' + - '2720' content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:38:12 GMT + - Wed, 27 Jul 2022 10:14:57 GMT expires: - '-1' pragma: @@ -336,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 201 message: Created @@ -357,93 +357,7 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426957961224148?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 27 Jul 2022 08:38:42 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g --location -n --admin-username --image --admin-password --authentication-type - --nsg-rule - User-Agent: - - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426957961224148?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Wed, 27 Jul 2022 08:39:13 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g --location -n --admin-username --image --admin-password --authentication-type - --nsg-rule - User-Agent: - - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426957961224148?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585426899915929145?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -455,7 +369,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:43 GMT + - Wed, 27 Jul 2022 10:20:36 GMT expires: - '-1' pragma: @@ -489,7 +403,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","name":"vm_deploy_0lRWnz4mdlcGcJMwUQmyAntzOawaSOWb","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17693581246182815890","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-07-27T08:39:39.2078179Z","duration":"PT1M27.6065918S","correlationId":"b0407769-312a-4b12-a6c5-c2adc01e3680","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-diskforcedetach-testVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-diskforcedetach-testPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-diskforcedetach-test"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Resources/deployments/vm_deploy_577qO4hMmSIEXJ24UabT9QzugDbJbTmC","name":"vm_deploy_577qO4hMmSIEXJ24UabT9QzugDbJbTmC","type":"Microsoft.Resources/deployments","properties":{"templateHash":"15891242011793876138","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-07-27T10:16:50.5116578Z","duration":"PT1M54.0193795S","correlationId":"6ddd79d9-ab16-4d17-b798-27698399ffe3","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm-diskforcedetach-testVNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm-diskforcedetach-testPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm-diskforcedetach-testVMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm-diskforcedetach-test"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/virtualNetworks/vm-diskforcedetach-testVNET"}]}}' headers: cache-control: - no-cache @@ -498,7 +412,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:43 GMT + - Wed, 27 Jul 2022 10:20:36 GMT expires: - '-1' pragma: @@ -534,16 +448,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": @@ -560,18 +474,18 @@ interactions: \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-07-27T08:39:38+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"2022-07-27T10:19:50+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-07-27T08:38:30.7953461+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-07-27T10:15:18.7200722+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-07-27T08:39:36.7017649+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-07-27T10:16:48.1421129+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -581,7 +495,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:46 GMT + - Wed, 27 Jul 2022 10:20:38 GMT expires: - '-1' pragma: @@ -591,14 +505,10 @@ interactions: - 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;3993,Microsoft.Compute/LowCostGet30Min;31856 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31945 status: code: 200 message: OK @@ -623,12 +533,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm-diskforcedetach-testVMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\",\r\n - \ \"etag\": \"W/\\\"58f5a047-0ef7-408c-8b77-bd4d7afcef62\\\"\",\r\n \"tags\": + \ \"etag\": \"W/\\\"6b75cb7a-80de-426c-ab27-fd29428cc9a9\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"c0c25b17-fe10-499e-b22a-3a141536be04\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"536c48d5-bf07-4dc1-ac94-a10c6cd53363\",\r\n \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm-diskforcedetach-test\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic/ipConfigurations/ipconfigvm-diskforcedetach-test\",\r\n - \ \"etag\": \"W/\\\"58f5a047-0ef7-408c-8b77-bd4d7afcef62\\\"\",\r\n + \ \"etag\": \"W/\\\"6b75cb7a-80de-426c-ab27-fd29428cc9a9\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -637,8 +547,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"bkhwibbqo4ee3hcz0hirssnuyc.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-22-48-04-92-29\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": + \"dnxrexvlirfe3bdvqtydpsjxnh.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-58-D3-CB\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkSecurityGroups/vm-diskforcedetach-testNSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\"\r\n @@ -652,9 +562,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:46 GMT + - Wed, 27 Jul 2022 10:20:40 GMT etag: - - W/"58f5a047-0ef7-408c-8b77-bd4d7afcef62" + - W/"6b75cb7a-80de-426c-ab27-fd29428cc9a9" expires: - '-1' pragma: @@ -671,7 +581,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 726b45f5-4720-49b6-bdc9-b558f94b38d1 + - 4620c128-2129-4460-91a4-b8fb56d21c69 status: code: 200 message: OK @@ -697,10 +607,10 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-testPublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/publicIPAddresses/vm-diskforcedetach-testPublicIP\",\r\n - \ \"etag\": \"W/\\\"48de23b1-1321-4654-81e1-657496591fe5\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"d3c1174a-459d-4e7c-a883-a08591e8ae23\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"0568ecf5-8bed-4766-8807-1a2f13a31fd8\",\r\n - \ \"ipAddress\": \"168.62.21.241\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"86b030dd-751c-429f-a4f3-68f4efdf927a\",\r\n + \ \"ipAddress\": \"20.245.164.31\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic/ipConfigurations/ipconfigvm-diskforcedetach-test\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -713,9 +623,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:47 GMT + - Wed, 27 Jul 2022 10:20:41 GMT etag: - - W/"48de23b1-1321-4654-81e1-657496591fe5" + - W/"d3c1174a-459d-4e7c-a883-a08591e8ae23" expires: - '-1' pragma: @@ -732,7 +642,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 6c3ec8f0-d6ef-47aa-8ded-66045d6024f1 + - 98f9d0c8-7c74-4147-a34b-5e2cc3d0d190 status: code: 200 message: OK @@ -757,16 +667,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": @@ -777,7 +687,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -787,7 +697,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:47 GMT + - Wed, 27 Jul 2022 10:20:42 GMT expires: - '-1' pragma: @@ -797,23 +707,19 @@ interactions: - 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;3992,Microsoft.Compute/LowCostGet30Min;31855 + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31944 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 0, "name": "d1", "caching": "ReadOnly", "createOption": "Empty", "diskSizeGB": 1, "managedDisk": {}}]}, "osProfile": {"computerName": "vm-diskforcedetach-test", @@ -845,16 +751,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -869,13 +775,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/13b7d7ad-df50-41a7-94fa-13e4d09a2ab7?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a8b7976a-6fda-44ba-8174-cc7f6827d6fb?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -883,7 +789,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:39:53 GMT + - Wed, 27 Jul 2022 10:20:47 GMT expires: - '-1' pragma: @@ -900,9 +806,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1175 + - Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1198 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -922,21 +828,21 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/13b7d7ad-df50-41a7-94fa-13e4d09a2ab7?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a8b7976a-6fda-44ba-8174-cc7f6827d6fb?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:39:51.467416+00:00\",\r\n \"endTime\": - \"2022-07-27T08:40:01.2173919+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"13b7d7ad-df50-41a7-94fa-13e4d09a2ab7\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:20:45.5174622+00:00\",\r\n \"endTime\": + \"2022-07-27T10:20:52.5956294+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a8b7976a-6fda-44ba-8174-cc7f6827d6fb\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:40:24 GMT + - Wed, 27 Jul 2022 10:21:17 GMT expires: - '-1' pragma: @@ -953,7 +859,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29945 + - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29997 status: code: 200 message: OK @@ -978,16 +884,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1003,7 +909,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1013,7 +919,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:40:24 GMT + - Wed, 27 Jul 2022 10:21:17 GMT expires: - '-1' pragma: @@ -1030,7 +936,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3989,Microsoft.Compute/LowCostGet30Min;31873 + - Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31939 status: code: 200 message: OK @@ -1055,16 +961,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1080,7 +986,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1090,7 +996,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:40:25 GMT + - Wed, 27 Jul 2022 10:21:21 GMT expires: - '-1' pragma: @@ -1107,16 +1013,16 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3988,Microsoft.Compute/LowCostGet30Min;31872 + - Microsoft.Compute/LowCostGet3Min;3989,Microsoft.Compute/LowCostGet30Min;31938 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 0, "name": "d1", "caching": "ReadOnly", "createOption": "Empty", "diskSizeGB": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", @@ -1151,16 +1057,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1180,13 +1086,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/ba040f25-3b6a-4d55-a7df-988bf794e7b8?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e7379e01-c0cc-4458-a8dd-7ae7c0aefd13?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -1194,7 +1100,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:40:27 GMT + - Wed, 27 Jul 2022 10:21:26 GMT expires: - '-1' pragma: @@ -1211,9 +1117,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1179 + - Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1197 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -1233,12 +1139,12 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/ba040f25-3b6a-4d55-a7df-988bf794e7b8?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e7379e01-c0cc-4458-a8dd-7ae7c0aefd13?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:40:27.2643333+00:00\",\r\n \"endTime\": - \"2022-07-27T08:40:37.8737406+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"ba040f25-3b6a-4d55-a7df-988bf794e7b8\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:21:24.2053586+00:00\",\r\n \"endTime\": + \"2022-07-27T10:21:31.0491581+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e7379e01-c0cc-4458-a8dd-7ae7c0aefd13\"\r\n}" headers: cache-control: - no-cache @@ -1247,7 +1153,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:40:58 GMT + - Wed, 27 Jul 2022 10:21:56 GMT expires: - '-1' pragma: @@ -1264,7 +1170,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29943 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29996 status: code: 200 message: OK @@ -1289,16 +1195,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1319,7 +1225,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1329,7 +1235,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:40:58 GMT + - Wed, 27 Jul 2022 10:21:56 GMT expires: - '-1' pragma: @@ -1346,7 +1252,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3986,Microsoft.Compute/LowCostGet30Min;31869 + - Microsoft.Compute/LowCostGet3Min;3987,Microsoft.Compute/LowCostGet30Min;31936 status: code: 200 message: OK @@ -1371,16 +1277,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1401,7 +1307,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1411,7 +1317,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:01 GMT + - Wed, 27 Jul 2022 10:21:57 GMT expires: - '-1' pragma: @@ -1428,7 +1334,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3986,Microsoft.Compute/LowCostGet30Min;31868 + - Microsoft.Compute/LowCostGet3Min;3986,Microsoft.Compute/LowCostGet30Min;31935 status: code: 200 message: OK @@ -1453,16 +1359,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1483,7 +1389,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1493,7 +1399,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:02 GMT + - Wed, 27 Jul 2022 10:21:58 GMT expires: - '-1' pragma: @@ -1510,16 +1416,16 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3984,Microsoft.Compute/LowCostGet30Min;31866 + - Microsoft.Compute/LowCostGet3Min;3985,Microsoft.Compute/LowCostGet30Min;31934 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 2, "name": "d2", "caching": "None", "createOption": "Empty", "diskSizeGB": 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2", @@ -1552,16 +1458,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Empty\",\r\n @@ -1582,13 +1488,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a2af625d-ba81-4d37-a0c5-de3ba7dc6b54?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3050d480-00c4-4e50-a28c-17a3ad43af69?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -1596,7 +1502,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:07 GMT + - Wed, 27 Jul 2022 10:22:04 GMT expires: - '-1' pragma: @@ -1613,9 +1519,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1178 + - Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1196 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 200 message: OK @@ -1635,21 +1541,21 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a2af625d-ba81-4d37-a0c5-de3ba7dc6b54?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3050d480-00c4-4e50-a28c-17a3ad43af69?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:41:05.1238105+00:00\",\r\n \"endTime\": - \"2022-07-27T08:41:21.5300823+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"a2af625d-ba81-4d37-a0c5-de3ba7dc6b54\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:22:02.799274+00:00\",\r\n \"endTime\": + \"2022-07-27T10:22:17.9555347+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"3050d480-00c4-4e50-a28c-17a3ad43af69\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:37 GMT + - Wed, 27 Jul 2022 10:22:34 GMT expires: - '-1' pragma: @@ -1666,7 +1572,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29942 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29995 status: code: 200 message: OK @@ -1691,16 +1597,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n @@ -1716,7 +1622,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1726,7 +1632,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:37 GMT + - Wed, 27 Jul 2022 10:22:35 GMT expires: - '-1' pragma: @@ -1743,7 +1649,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3981,Microsoft.Compute/LowCostGet30Min;31862 + - Microsoft.Compute/LowCostGet3Min;3983,Microsoft.Compute/LowCostGet30Min;31929 status: code: 200 message: OK @@ -1768,16 +1674,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n @@ -1793,7 +1699,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1803,7 +1709,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:39 GMT + - Wed, 27 Jul 2022 10:22:36 GMT expires: - '-1' pragma: @@ -1820,7 +1726,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3980,Microsoft.Compute/LowCostGet30Min;31861 + - Microsoft.Compute/LowCostGet3Min;3982,Microsoft.Compute/LowCostGet30Min;31928 status: code: 200 message: OK @@ -1845,16 +1751,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n @@ -1870,7 +1776,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1880,7 +1786,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:39 GMT + - Wed, 27 Jul 2022 10:22:39 GMT expires: - '-1' pragma: @@ -1897,16 +1803,16 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3979,Microsoft.Compute/LowCostGet30Min;31860 + - Microsoft.Compute/LowCostGet3Min;3981,Microsoft.Compute/LowCostGet30Min;31927 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 2, "name": "d2", "caching": "None", "createOption": "Empty", "diskSizeGB": 2, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d2", @@ -1940,16 +1846,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 2,\r\n \"name\": \"d2\",\r\n \"createOption\": \"Empty\",\r\n @@ -1966,13 +1872,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/7c7c019f-f64d-400f-ac4e-8ef41366818c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/96f9a03d-006d-486a-a460-dbba67e76e43?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -1980,7 +1886,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:41:42 GMT + - Wed, 27 Jul 2022 10:22:43 GMT expires: - '-1' pragma: @@ -1997,9 +1903,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1177 + - Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1195 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 200 message: OK @@ -2019,12 +1925,12 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/7c7c019f-f64d-400f-ac4e-8ef41366818c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/96f9a03d-006d-486a-a460-dbba67e76e43?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:41:41.8894736+00:00\",\r\n \"endTime\": - \"2022-07-27T08:41:42.2644701+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"7c7c019f-f64d-400f-ac4e-8ef41366818c\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:22:42.1587207+00:00\",\r\n \"endTime\": + \"2022-07-27T10:22:42.5024839+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"96f9a03d-006d-486a-a460-dbba67e76e43\"\r\n}" headers: cache-control: - no-cache @@ -2033,7 +1939,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:12 GMT + - Wed, 27 Jul 2022 10:23:13 GMT expires: - '-1' pragma: @@ -2050,7 +1956,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29940 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29993 status: code: 200 message: OK @@ -2075,16 +1981,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": @@ -2095,7 +2001,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2105,7 +2011,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:14 GMT + - Wed, 27 Jul 2022 10:23:14 GMT expires: - '-1' pragma: @@ -2122,7 +2028,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31857 + - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31924 status: code: 200 message: OK @@ -2147,16 +2053,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": @@ -2167,7 +2073,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2177,7 +2083,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:17 GMT + - Wed, 27 Jul 2022 10:23:16 GMT expires: - '-1' pragma: @@ -2187,14 +2093,10 @@ interactions: - 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;3975,Microsoft.Compute/LowCostGet30Min;31856 + - Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31923 status: code: 200 message: OK @@ -2219,16 +2121,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm-diskforcedetach-test\",\r\n \"adminUsername\": @@ -2239,7 +2141,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2249,7 +2151,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:23 GMT + - Wed, 27 Jul 2022 10:23:16 GMT expires: - '-1' pragma: @@ -2259,23 +2161,19 @@ interactions: - 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;3974,Microsoft.Compute/LowCostGet30Min;31855 + - Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31922 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 0, "caching": "ReadWrite", "createOption": "Attach", "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", @@ -2308,16 +2206,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2334,13 +2232,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8cecde6b-390d-4724-83e0-e3098f69de15?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e845e0c7-0b2f-4168-8f6d-fbe1b1149706?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -2348,7 +2246,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:27 GMT + - Wed, 27 Jul 2022 10:23:22 GMT expires: - '-1' pragma: @@ -2365,9 +2263,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1176 + - Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1194 x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 200 message: OK @@ -2387,21 +2285,21 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/8cecde6b-390d-4724-83e0-e3098f69de15?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e845e0c7-0b2f-4168-8f6d-fbe1b1149706?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:42:25.405202+00:00\",\r\n \"endTime\": - \"2022-07-27T08:42:32.3583062+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"8cecde6b-390d-4724-83e0-e3098f69de15\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:23:20.6900919+00:00\",\r\n \"endTime\": + \"2022-07-27T10:23:29.7525808+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e845e0c7-0b2f-4168-8f6d-fbe1b1149706\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:57 GMT + - Wed, 27 Jul 2022 10:23:53 GMT expires: - '-1' pragma: @@ -2418,7 +2316,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29938 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29991 status: code: 200 message: OK @@ -2443,16 +2341,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2469,7 +2367,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2479,7 +2377,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:57 GMT + - Wed, 27 Jul 2022 10:23:53 GMT expires: - '-1' pragma: @@ -2496,7 +2394,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31852 + - Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31918 status: code: 200 message: OK @@ -2521,16 +2419,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2547,7 +2445,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2557,7 +2455,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:58 GMT + - Wed, 27 Jul 2022 10:23:54 GMT expires: - '-1' pragma: @@ -2574,7 +2472,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31851 + - Microsoft.Compute/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31917 status: code: 200 message: OK @@ -2599,16 +2497,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2625,7 +2523,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2635,7 +2533,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:42:59 GMT + - Wed, 27 Jul 2022 10:23:55 GMT expires: - '-1' pragma: @@ -2652,7 +2550,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31850 + - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31916 status: code: 200 message: OK @@ -2677,16 +2575,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2703,7 +2601,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2713,7 +2611,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:01 GMT + - Wed, 27 Jul 2022 10:23:56 GMT expires: - '-1' pragma: @@ -2730,7 +2628,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31849 + - Microsoft.Compute/LowCostGet3Min;3973,Microsoft.Compute/LowCostGet30Min;31915 status: code: 200 message: OK @@ -2755,16 +2653,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2781,7 +2679,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2791,7 +2689,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:03 GMT + - Wed, 27 Jul 2022 10:23:57 GMT expires: - '-1' pragma: @@ -2808,16 +2706,16 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3976,Microsoft.Compute/LowCostGet30Min;31848 + - Microsoft.Compute/LowCostGet3Min;3972,Microsoft.Compute/LowCostGet30Min;31914 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 0, "name": "d1", "caching": "ReadWrite", "createOption": "Attach", "diskSizeGB": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", @@ -2852,16 +2750,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -2883,13 +2781,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a6d0a76d-06db-4614-abf1-7cfb7a06e56a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/458fdaa5-404b-483b-acbc-ff1d9061247f?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -2897,7 +2795,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:06 GMT + - Wed, 27 Jul 2022 10:24:03 GMT expires: - '-1' pragma: @@ -2914,9 +2812,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1175 + - Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1193 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 200 message: OK @@ -2936,21 +2834,21 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a6d0a76d-06db-4614-abf1-7cfb7a06e56a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/458fdaa5-404b-483b-acbc-ff1d9061247f?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:43:04.8706748+00:00\",\r\n \"endTime\": - \"2022-07-27T08:43:12.9948426+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"a6d0a76d-06db-4614-abf1-7cfb7a06e56a\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:24:01.4245789+00:00\",\r\n \"endTime\": + \"2022-07-27T10:24:12.330783+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"458fdaa5-404b-483b-acbc-ff1d9061247f\"\r\n}" headers: cache-control: - no-cache content-length: - - '184' + - '183' content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:36 GMT + - Wed, 27 Jul 2022 10:24:33 GMT expires: - '-1' pragma: @@ -2967,7 +2865,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29936 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29989 status: code: 200 message: OK @@ -2992,16 +2890,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -3023,7 +2921,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3033,7 +2931,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:36 GMT + - Wed, 27 Jul 2022 10:24:33 GMT expires: - '-1' pragma: @@ -3050,7 +2948,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31844 + - Microsoft.Compute/LowCostGet3Min;3975,Microsoft.Compute/LowCostGet30Min;31909 status: code: 200 message: OK @@ -3075,16 +2973,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -3106,7 +3004,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3116,7 +3014,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:37 GMT + - Wed, 27 Jul 2022 10:24:34 GMT expires: - '-1' pragma: @@ -3133,7 +3031,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31843 + - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31908 status: code: 200 message: OK @@ -3158,16 +3056,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -3189,7 +3087,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3199,7 +3097,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:37 GMT + - Wed, 27 Jul 2022 10:24:36 GMT expires: - '-1' pragma: @@ -3209,23 +3107,19 @@ interactions: - 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;3973,Microsoft.Compute/LowCostGet30Min;31842 + - Microsoft.Compute/LowCostGet3Min;3973,Microsoft.Compute/LowCostGet30Min;31907 status: code: 200 message: OK - request: body: '{"location": "westus", "tags": {}, "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"osDisk": {"osType": "Linux", "name": - "vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", "caching": + "vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "caching": "ReadWrite", "createOption": "FromImage", "diskSizeGB": 30, "managedDisk": {"id": - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa", "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": [{"lun": 0, "name": "d1", "caching": "ReadWrite", "createOption": "Attach", "diskSizeGB": 1, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/d1", @@ -3262,16 +3156,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -3294,13 +3188,13 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/90573d3f-7550-46d8-8a87-5bba6812ba44?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b25880ff-cf36-4a1f-bfd0-7b7599212eaf?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -3308,7 +3202,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:43:41 GMT + - Wed, 27 Jul 2022 10:24:42 GMT expires: - '-1' pragma: @@ -3325,9 +3219,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1174 + - Microsoft.Compute/PutVM3Min;235,Microsoft.Compute/PutVM30Min;1192 x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1199' status: code: 200 message: OK @@ -3347,12 +3241,12 @@ interactions: User-Agent: - AZURECLI/2.38.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/90573d3f-7550-46d8-8a87-5bba6812ba44?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b25880ff-cf36-4a1f-bfd0-7b7599212eaf?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-07-27T08:43:39.9828042+00:00\",\r\n \"endTime\": - \"2022-07-27T08:43:40.3109678+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"90573d3f-7550-46d8-8a87-5bba6812ba44\"\r\n}" + string: "{\r\n \"startTime\": \"2022-07-27T10:24:41.1436201+00:00\",\r\n \"endTime\": + \"2022-07-27T10:24:41.4714732+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b25880ff-cf36-4a1f-bfd0-7b7599212eaf\"\r\n}" headers: cache-control: - no-cache @@ -3361,7 +3255,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:44:11 GMT + - Wed, 27 Jul 2022 10:25:14 GMT expires: - '-1' pragma: @@ -3378,7 +3272,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29934 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29987 status: code: 200 message: OK @@ -3403,16 +3297,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -3429,7 +3323,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3439,7 +3333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:44:11 GMT + - Wed, 27 Jul 2022 10:25:14 GMT expires: - '-1' pragma: @@ -3456,7 +3350,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3974,Microsoft.Compute/LowCostGet30Min;31838 + - Microsoft.Compute/LowCostGet3Min;3972,Microsoft.Compute/LowCostGet30Min;31914 status: code: 200 message: OK @@ -3481,16 +3375,16 @@ interactions: body: string: "{\r\n \"name\": \"vm-diskforcedetach-test\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/virtualMachines/vm-diskforcedetach-test\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8c5ce8ba-d9e4-4ca4-84a7-954278b211d3\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"57848086-d73c-45d5-a164-16d25e135b7e\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \ \"version\": \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\",\r\n + \"vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_7b400cd98f944e5fb399255817f86b4b\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Compute/disks/vm-diskforcedetach-test_OsDisk_1_a1b5d76579fb45918f6b7a3e982d5ffa\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"d1\",\r\n \"createOption\": \"Attach\",\r\n @@ -3507,7 +3401,7 @@ interactions: false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli-test-disk-force-detach000001/providers/Microsoft.Network/networkInterfaces/vm-diskforcedetach-testVMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T08:38:28.0453446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-07-27T10:15:16.8606664+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3517,7 +3411,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 27 Jul 2022 08:44:12 GMT + - Wed, 27 Jul 2022 10:25:16 GMT expires: - '-1' pragma: @@ -3534,7 +3428,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3973,Microsoft.Compute/LowCostGet30Min;31837 + - Microsoft.Compute/LowCostGet3Min;3971,Microsoft.Compute/LowCostGet30Min;31913 status: code: 200 message: OK From 36d73c4fa03cfa89504fdffc3933e6c0d8f5f18f Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Wed, 27 Jul 2022 20:09:29 +0800 Subject: [PATCH 4/4] test --- .../vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py | 4 ++-- .../vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py | 4 ++-- .../vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py index f2b2005af40..031ab99d46d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2018_03_01/test_custom_vm_commands.py @@ -16,7 +16,7 @@ _get_extension_instance_name, get_boot_log) from azure.cli.command_modules.vm.custom import \ - (attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view) + (attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view) from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import AzCliCommand @@ -206,7 +206,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update): mock_vm_get_to_update.return_value = vm # execute - detach_data_disk(cmd, 'rg1', 'vm1', 'd1') + detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1') # assert self.assertTrue(mock_vm_get_to_update.called) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py index f2b2005af40..031ab99d46d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2019_03_01/test_custom_vm_commands.py @@ -16,7 +16,7 @@ _get_extension_instance_name, get_boot_log) from azure.cli.command_modules.vm.custom import \ - (attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view) + (attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view) from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import AzCliCommand @@ -206,7 +206,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update): mock_vm_get_to_update.return_value = vm # execute - detach_data_disk(cmd, 'rg1', 'vm1', 'd1') + detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1') # assert self.assertTrue(mock_vm_get_to_update.called) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py index c6da87fd631..16c8d7026d7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/hybrid_2020_09_01/test_custom_vm_commands.py @@ -16,7 +16,7 @@ _get_extension_instance_name, get_boot_log) from azure.cli.command_modules.vm.custom import \ - (attach_unmanaged_data_disk, detach_data_disk, get_vmss_instance_view) + (attach_unmanaged_data_disk, detach_unmanaged_data_disk, get_vmss_instance_view) from azure.cli.core import AzCommandsLoader from azure.cli.core.commands import AzCliCommand @@ -218,7 +218,7 @@ def test_deattach_disk_on_vm(self, mock_vm_set, mock_vm_get_to_update): mock_vm_get_to_update.return_value = vm # execute - detach_data_disk(cmd, 'rg1', 'vm1', 'd1') + detach_unmanaged_data_disk(cmd, 'rg1', 'vm1', 'd1') # assert self.assertTrue(mock_vm_get_to_update.called)