diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 842034e8d0a..c73c52cda3b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -3396,14 +3396,16 @@ helps['vmss reimage'] = """ type: command short-summary: Reimage VMs within a VMSS. -parameters: - - name: --instance-id - short-summary: VM instance ID. If missing, reimage all instances. examples: - - name: Reimage VMs within a VMSS. (autogenerated) + - name: Reimage a VM instance within a VMSS. text: | - az vmss reimage --instance-id 1 --name MyScaleSet --resource-group MyResourceGroup --subscription MySubscription - crafted: true + az vmss reimage --instance-ids 1 --name MyScaleSet --resource-group MyResourceGroup --subscription MySubscription + - name: Reimage a batch of VM instances within a VMSS. + text: | + az vmss reimage --instance-ids 1 2 3 --name MyScaleSet --resource-group MyResourceGroup --subscription MySubscription + - name: Reimage all the VM instances within a VMSS. + text: | + az vmss reimage --name MyScaleSet --resource-group MyResourceGroup --subscription MySubscription """ helps['vmss restart'] = """ 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 aeb928ada8b..7804564b3c9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -677,7 +677,9 @@ def load_arguments(self, _): c.argument(dest, vmss_name_type, id_part=None) # due to instance-ids parameter with self.argument_context('vmss reimage') as c: - c.argument('instance_id', nargs='+', help='Space-separated list of VM instance ID. If missing, reimage all instances.') + c.argument('instance_ids', nargs='+', + help='Space-separated list of VM instance ID. If missing, reimage all instances.', + options_list=['--instance-ids', c.deprecate(target='--instance-id', redirect='--instance-ids', hide=True)]) with self.argument_context('vmss create', operation_group='virtual_machine_scale_sets') as c: VirtualMachineEvictionPolicyTypes = self.get_models('VirtualMachineEvictionPolicyTypes', resource_type=ResourceType.MGMT_COMPUTE) 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 61a0acd7dc5..90bf8367147 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -3703,12 +3703,14 @@ def list_vmss_instance_public_ips(cmd, resource_group_name, vm_scale_set_name): return [r for r in result if r.ip_address] -def reimage_vmss(cmd, resource_group_name, vm_scale_set_name, instance_id=None, no_wait=False): +def reimage_vmss(cmd, resource_group_name, vm_scale_set_name, instance_ids=None, no_wait=False): client = _compute_client_factory(cmd.cli_ctx) - if instance_id: - for instance in instance_id: - sdk_no_wait(no_wait, client.virtual_machine_scale_set_vms.begin_reimage, - resource_group_name, vm_scale_set_name, instance) + if instance_ids: + VirtualMachineScaleSetVMInstanceIDs = cmd.get_models('VirtualMachineScaleSetVMInstanceIDs') + instance_ids = VirtualMachineScaleSetVMInstanceIDs(instance_ids=instance_ids) + return sdk_no_wait(no_wait, client.virtual_machine_scale_sets.begin_reimage_all, resource_group_name, + vm_scale_set_name, instance_ids) + return sdk_no_wait(no_wait, client.virtual_machine_scale_sets.begin_reimage, resource_group_name, vm_scale_set_name) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage.yaml index 6845a1859ee..ff81a20f996 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage.yaml @@ -11,14 +11,15 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001","name":"cli_test_vmss_reimage_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-01-13T03:12:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001","name":"cli_test_vmss_reimage_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-02-16T08:34:25Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:12:58 GMT + - Thu, 16 Feb 2023 08:34:31 GMT expires: - '-1' pragma: @@ -56,58 +57,52 @@ interactions: uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json response: body: - string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ - ,\n \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\"\ - : {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"\ - type\": \"object\",\n \"value\": {\n \"Linux\": {\n \"\ - CentOS\": {\n \"publisher\": \"OpenLogic\",\n \"offer\"\ - : \"CentOS\",\n \"sku\": \"7.5\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\"\ - : \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n \"\ - offer\": \"flatcar-container-linux-free\",\n \"sku\": \"stable\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\"\ - : \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"\ - sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"RHEL\": {\n \"publisher\"\ - : \"RedHat\",\n \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"SLES\": {\n \"publisher\": \"\ - SUSE\",\n \"offer\": \"sles-15-sp3\",\n \"sku\": \"\ - gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\"\ - : \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"\ - sku\": \"18.04-LTS\",\n \"version\": \"latest\",\n \"\ - architecture\": \"x64\"\n }\n },\n \"Windows\": {\n\ - \ \"Win2022Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2022-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2022AzureEditionCore\": {\n \ - \ \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\"\ - ,\n \"sku\": \"2022-datacenter-azure-edition-core\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n \ - \ },\n \"Win2019Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n },\n \"Win2016Datacenter\"\ - : {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"\ - offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\ - \n },\n \"Win2012R2Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2012-R2-Datacenter\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2008-R2-SP1\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n }\n }\n }\n\ - \ }\n }\n}" + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Debian\": {\n \"publisher\": + \"Debian\",\n \"offer\": \"debian-10\",\n \"sku\": \"10\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"sku\": + \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"RHEL\": {\n \"publisher\": \"RedHat\",\n + \ \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"SLES\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"sles-15-sp3\",\n + \ \"sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n },\n \"Windows\": {\n \"Win2022Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"Win2022AzureEditionCore\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-datacenter-azure-edition-core\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2016Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2016-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2008-R2-SP1\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n }\n }\n }\n }\n}" headers: accept-ranges: - bytes @@ -124,13 +119,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 13 Jan 2023 03:12:59 GMT + - Thu, 16 Feb 2023 08:34:32 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 13 Jan 2023 03:17:59 GMT + - Thu, 16 Feb 2023 08:39:32 GMT source-age: - - '0' + - '115' strict-transport-security: - max-age=31536000 vary: @@ -140,19 +135,19 @@ interactions: x-cache: - HIT x-cache-hits: - - '1' + - '2' x-content-type-options: - nosniff x-fastly-request-id: - - 5ed577db1101c6e7869d512845f1444d95fa5ba6 + - 878ea607cc32711dafef9eb7e42d15f35106b495 x-frame-options: - deny x-github-request-id: - - 7DC0:258D:31DEF:58C00:63C0C7B4 + - 7A90:27FC:22C13:AADED:63EDDCF7 x-served-by: - - cache-qpg1248-QPG + - cache-hkg17929-HKG x-timer: - - S1673579579.399315,VS0,VE331 + - S1676536472.417640,VS0,VE0 x-xss-protection: - 1; mode=block status: @@ -170,16 +165,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions?$top=1&$orderby=name%20desc&api-version=2022-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\"\ - ,\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\ - \r\n }\r\n]" + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n + \ }\r\n]" headers: cache-control: - no-cache @@ -188,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:00 GMT + - Thu, 16 Feb 2023 08:34:33 GMT expires: - '-1' pragma: @@ -205,7 +201,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43937 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43991 status: code: 200 message: OK @@ -221,23 +217,22 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions/7.5.201808150?api-version=2022-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 \"osDiskImage\": {\r\n \"operatingSystem\"\ - : \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": 32212255232\r\ - \n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\"\ - ,\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\ - \r\n}" + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": + 32212255232\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n}" headers: cache-control: - no-cache @@ -246,7 +241,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:02 GMT + - Thu, 16 Feb 2023 08:34:34 GMT expires: - '-1' pragma: @@ -263,7 +258,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73952 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73994 status: code: 200 message: OK @@ -279,9 +274,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-network/21.0.1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 response: @@ -295,7 +291,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:02 GMT + - Thu, 16 Feb 2023 08:34:35 GMT expires: - '-1' pragma: @@ -324,58 +320,52 @@ interactions: uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json response: body: - string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ - ,\n \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\"\ - : {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"\ - type\": \"object\",\n \"value\": {\n \"Linux\": {\n \"\ - CentOS\": {\n \"publisher\": \"OpenLogic\",\n \"offer\"\ - : \"CentOS\",\n \"sku\": \"7.5\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\"\ - : \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n \"\ - offer\": \"flatcar-container-linux-free\",\n \"sku\": \"stable\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\"\ - : \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"\ - sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"RHEL\": {\n \"publisher\"\ - : \"RedHat\",\n \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"SLES\": {\n \"publisher\": \"\ - SUSE\",\n \"offer\": \"sles-15-sp3\",\n \"sku\": \"\ - gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\"\ - : \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"\ - sku\": \"18.04-LTS\",\n \"version\": \"latest\",\n \"\ - architecture\": \"x64\"\n }\n },\n \"Windows\": {\n\ - \ \"Win2022Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2022-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2022AzureEditionCore\": {\n \ - \ \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\"\ - ,\n \"sku\": \"2022-datacenter-azure-edition-core\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n \ - \ },\n \"Win2019Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n },\n \"Win2016Datacenter\"\ - : {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"\ - offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\ - \n },\n \"Win2012R2Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2012-R2-Datacenter\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2008-R2-SP1\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n }\n }\n }\n\ - \ }\n }\n}" + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Debian\": {\n \"publisher\": + \"Debian\",\n \"offer\": \"debian-10\",\n \"sku\": \"10\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n + \ \"offer\": \"flatcar-container-linux-free\",\n \"sku\": + \"stable\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"sku\": + \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"RHEL\": {\n \"publisher\": \"RedHat\",\n + \ \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"SLES\": + {\n \"publisher\": \"SUSE\",\n \"offer\": \"sles-15-sp3\",\n + \ \"sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\": + \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"sku\": + \"18.04-LTS\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n },\n \"Windows\": {\n \"Win2022Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-Datacenter\",\n \"version\": + \"latest\",\n \"architecture\": \"x64\"\n },\n \"Win2022AzureEditionCore\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2022-datacenter-azure-edition-core\",\n + \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n + \ },\n \"Win2019Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2019-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2016Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2016-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2012Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-Datacenter\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2008-R2-SP1\",\n \"version\": \"latest\",\n \"architecture\": + \"x64\"\n }\n }\n }\n }\n }\n}" headers: accept-ranges: - bytes @@ -392,13 +382,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:03 GMT + - Thu, 16 Feb 2023 08:34:35 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Fri, 13 Jan 2023 03:18:03 GMT + - Thu, 16 Feb 2023 08:39:35 GMT source-age: - - '4' + - '118' strict-transport-security: - max-age=31536000 vary: @@ -412,15 +402,15 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 559df9c68b2f778cff851c56f61da83d92e6e318 + - a63e753bee792fee07550956d0b2138e1900ec92 x-frame-options: - deny x-github-request-id: - - 7DC0:258D:31DEF:58C00:63C0C7B4 + - 7A90:27FC:22C13:AADED:63EDDCF7 x-served-by: - - cache-qpg1267-QPG + - cache-hkg17921-HKG x-timer: - - S1673579583.366169,VS0,VE1 + - S1676536476.787997,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -438,16 +428,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions?$top=1&$orderby=name%20desc&api-version=2022-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\"\ - ,\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\ - \r\n }\r\n]" + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n + \ }\r\n]" headers: cache-control: - no-cache @@ -456,7 +447,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:04 GMT + - Thu, 16 Feb 2023 08:34:36 GMT expires: - '-1' pragma: @@ -473,7 +464,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43936 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43990 status: code: 200 message: OK @@ -489,23 +480,22 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions/7.5.201808150?api-version=2022-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 \"osDiskImage\": {\r\n \"operatingSystem\"\ - : \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": 32212255232\r\ - \n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\"\ - ,\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\ - \r\n}" + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": + 32212255232\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n}" headers: cache-control: - no-cache @@ -514,7 +504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:07 GMT + - Thu, 16 Feb 2023 08:34:38 GMT expires: - '-1' pragma: @@ -531,7 +521,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73951 + - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73993 status: code: 200 message: OK @@ -547,16 +537,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions?$top=1&$orderby=name%20desc&api-version=2022-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\"\ - ,\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\ - \r\n }\r\n]" + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n + \ }\r\n]" headers: cache-control: - no-cache @@ -565,7 +556,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:08 GMT + - Thu, 16 Feb 2023 08:34:39 GMT expires: - '-1' pragma: @@ -582,7 +573,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43935 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43989 status: code: 200 message: OK @@ -598,23 +589,22 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/publishers/OpenLogic/artifacttypes/vmimage/offers/CentOS/skus/7.5/versions/7.5.201808150?api-version=2022-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 \"osDiskImage\": {\r\n \"operatingSystem\"\ - : \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": 32212255232\r\ - \n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\"\ - ,\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\ - \r\n}" + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 30,\r\n \"sizeInBytes\": + 32212255232\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"westus\",\r\n \"name\": \"7.5.201808150\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.5/Versions/7.5.201808150\"\r\n}" headers: cache-control: - no-cache @@ -623,7 +613,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:09 GMT + - Thu, 16 Feb 2023 08:34:40 GMT expires: - '-1' pragma: @@ -640,47 +630,47 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73950 + - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73992 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": "vmss1VNET", "type": "Microsoft.Network/virtualNetworks", "location": + [{"name": "vmss000002VNET", "type": "Microsoft.Network/virtualNetworks", "location": "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": - "vmss1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion": - "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vmss1LBPublicIP", + "vmss000002Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion": + "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vmss000002LBPublicIP", "location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": - "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", "name": "vmss1LB", - "location": "westus", "tags": {}, "apiVersion": "2022-01-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", - "Microsoft.Network/publicIpAddresses/vmss1LBPublicIP"], "properties": {"backendAddressPools": - [{"name": "vmss1LBBEPool"}], "frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", - "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}}}], - "inboundNatPools": [{"name": "vmss1LBNatPool", "properties": {"frontendIPConfiguration": - {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss1LB''), + "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", "name": "vmss000002LB", + "location": "westus", "tags": {}, "apiVersion": "2022-01-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss000002VNET", + "Microsoft.Network/publicIpAddresses/vmss000002LBPublicIP"], "properties": {"backendAddressPools": + [{"name": "vmss000002LBBEPool"}], "frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", + "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP"}}}], + "inboundNatPools": [{"name": "vmss000002LBNatPool", "properties": {"frontendIPConfiguration": + {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss000002LB''), ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, "protocol": "tcp", "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "backendPort": - 22}}]}}, {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss1", - "location": "westus", "tags": {}, "apiVersion": "2022-11-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss1VNET", - "Microsoft.Network/loadBalancers/vmss1LB"], "properties": {"overprovision": + 22}}]}}, {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss000002", + "location": "westus", "tags": {}, "apiVersion": "2022-11-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss000002VNET", + "Microsoft.Network/loadBalancers/vmss000002LB"], "properties": {"overprovision": true, "upgradePolicy": {"mode": "manual", "rollingUpgradePolicy": {}}, "singlePlacementGroup": null, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "OpenLogic", "offer": "CentOS", "sku": "7.5", - "version": "latest"}}, "osProfile": {"computerNamePrefix": "vmss117e4", "adminUsername": + "version": "latest"}}, "osProfile": {"computerNamePrefix": "vmssg80e2", "adminUsername": "vmtest", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/vmtest/.ssh/authorized_keys", "keyData": "ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDtrwjFOJ5BrjyXXI+zTohbjR8C/UT40MJ6M+D7PhvbUDyPYRjOz4B6DnO4xJ5huKhI2jUMIAKiRHcipHqk5ddySS/Z1e91zmHEuEUPeZlOCJJoLxjtAflx6c7aRhPMzOhsEa/7p527/RuMw/vtQZKQP7ltY37oRiAH6OrQJELbYWMGiX37QsGK1oZU0bRohBeiB+C7Ofc7rYjkdxT4AYXNHLOo5Xr7ByL0u7TMwz2fcE7gY5k5Xbw3gmn3oHnCzdJ6Y3m3BAK9uR7tbw97yxwus/aIAi7wm29ljudtQjmSggd21eG0EZfF1greqgaNdq5JGskcRGWbo/VvX9kThjsF"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmss117e4Nic", - "properties": {"ipConfigurations": [{"name": "vmss117e4IPConfig", "properties": - {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"}, - "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}], - "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}], + AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\n"}]}}}, "networkProfile": {"networkInterfaceConfigurations": + [{"name": "vmssg80e2Nic", "properties": {"ipConfigurations": [{"name": "vmssg80e2IPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET/subnets/vmss000002Subnet"}, + "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/backendAddressPools/vmss000002LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/inboundNatPools/vmss000002LBNatPool"}]}}], "primary": "true"}}]}}, "orchestrationMode": "Uniform"}, "sku": {"name": "Standard_DS1_v2", "capacity": 2}}], "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', - ''vmss1''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}}}, + ''vmss000002''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}}}, "parameters": {}, "mode": "incremental"}}' headers: Accept: @@ -692,29 +682,30 @@ interactions: Connection: - keep-alive Content-Length: - - '4016' + - '4314' Content-Type: - application/json ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/vmss_deploy_mgJQKQbxY43CU6GixZ8oblpwmBjdgV5K","name":"vmss_deploy_mgJQKQbxY43CU6GixZ8oblpwmBjdgV5K","type":"Microsoft.Resources/deployments","properties":{"templateHash":"11874683546818569311","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-01-13T03:13:20.8775027Z","duration":"PT0.0001875S","correlationId":"313bd9c3-ecc1-4826-aa75-20937607511a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/vmss_deploy_hg4aj3pKp1IxiKqRi8H4aXW9jhxHQcPE","name":"vmss_deploy_hg4aj3pKp1IxiKqRi8H4aXW9jhxHQcPE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17635181595393060132","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-02-16T08:34:50.7377053Z","duration":"PT0.000814S","correlationId":"ad1e7513-10d9-47b4-a1f6-eac470e718e3","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000002LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000002"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/vmss_deploy_mgJQKQbxY43CU6GixZ8oblpwmBjdgV5K/operationStatuses/08585280272879579723?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/vmss_deploy_hg4aj3pKp1IxiKqRi8H4aXW9jhxHQcPE/operationStatuses/08585250703979407311?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2364' + - '2423' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:13:23 GMT + - Thu, 16 Feb 2023 08:34:52 GMT expires: - '-1' pragma: @@ -740,53 +731,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585280272879579723?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: - - Fri, 13 Jan 2023 03:13:53 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: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585280272879579723?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585250703979407311?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -798,7 +748,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:14:24 GMT + - Thu, 16 Feb 2023 08:35:23 GMT expires: - '-1' pragma: @@ -824,11 +774,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585280272879579723?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585250703979407311?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -840,7 +791,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:14:55 GMT + - Thu, 16 Feb 2023 08:35:54 GMT expires: - '-1' pragma: @@ -866,11 +817,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585280272879579723?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585250703979407311?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -882,7 +834,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:15:25 GMT + - Thu, 16 Feb 2023 08:36:25 GMT expires: - '-1' pragma: @@ -908,11 +860,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585280272879579723?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585250703979407311?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -924,7 +877,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:15:56 GMT + - Thu, 16 Feb 2023 08:36:55 GMT expires: - '-1' pragma: @@ -950,24 +903,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username + - -g -n --image --admin-username --instance-count User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/vmss_deploy_mgJQKQbxY43CU6GixZ8oblpwmBjdgV5K","name":"vmss_deploy_mgJQKQbxY43CU6GixZ8oblpwmBjdgV5K","type":"Microsoft.Resources/deployments","properties":{"templateHash":"11874683546818569311","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-01-13T03:15:45.1595584Z","duration":"PT2M24.2822432S","correlationId":"313bd9c3-ecc1-4826-aa75-20937607511a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"orchestrationMode":"Uniform","upgradePolicy":{"mode":"Manual","rollingUpgradePolicy":{"maxBatchInstancePercent":20,"maxUnhealthyInstancePercent":20,"maxUnhealthyUpgradedInstancePercent":20,"pauseTimeBetweenBatches":"PT0S","maxSurge":false,"rollbackFailedInstancesOnPolicyBreach":false}},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss117e4","adminUsername":"vmtest","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/vmtest/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDtrwjFOJ5BrjyXXI+zTohbjR8C/UT40MJ6M+D7PhvbUDyPYRjOz4B6DnO4xJ5huKhI2jUMIAKiRHcipHqk5ddySS/Z1e91zmHEuEUPeZlOCJJoLxjtAflx6c7aRhPMzOhsEa/7p527/RuMw/vtQZKQP7ltY37oRiAH6OrQJELbYWMGiX37QsGK1oZU0bRohBeiB+C7Ofc7rYjkdxT4AYXNHLOo5Xr7ByL0u7TMwz2fcE7gY5k5Xbw3gmn3oHnCzdJ6Y3m3BAK9uR7tbw97yxwus/aIAi7wm29ljudtQjmSggd21eG0EZfF1greqgaNdq5JGskcRGWbo/VvX9kThjsF"}]},"provisionVMAgent":true,"enableVMAgentPlatformUpdates":false},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"osType":"Linux","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":30},"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.5","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss117e4Nic","properties":{"primary":true,"disableTcpStateTracking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss117e4IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET/subnets/vmss1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"2c751c93-a759-4b10-bf0e-7c0df9f7aabf","timeCreated":"2023-01-13T03:13:47.9370875+00:00"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Resources/deployments/vmss_deploy_hg4aj3pKp1IxiKqRi8H4aXW9jhxHQcPE","name":"vmss_deploy_hg4aj3pKp1IxiKqRi8H4aXW9jhxHQcPE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"17635181595393060132","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-02-16T08:36:36.8980725Z","duration":"PT1M46.1611812S","correlationId":"ad1e7513-10d9-47b4-a1f6-eac470e718e3","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000002LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000002"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"orchestrationMode":"Uniform","upgradePolicy":{"mode":"Manual","rollingUpgradePolicy":{"maxBatchInstancePercent":20,"maxUnhealthyInstancePercent":20,"maxUnhealthyUpgradedInstancePercent":20,"pauseTimeBetweenBatches":"PT0S","maxSurge":false,"rollbackFailedInstancesOnPolicyBreach":false}},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmssg80e2","adminUsername":"vmtest","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/vmtest/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\n"}]},"provisionVMAgent":true,"enableVMAgentPlatformUpdates":false},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"osType":"Linux","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":30},"imageReference":{"publisher":"OpenLogic","offer":"CentOS","sku":"7.5","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmssg80e2Nic","properties":{"primary":true,"disableTcpStateTracking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmssg80e2IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET/subnets/vmss000002Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/backendAddressPools/vmss000002LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/inboundNatPools/vmss000002LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"823c7ab7-dc99-4bcd-a0d0-ff9f83ae72f7","timeCreated":"2023-02-16T08:35:14.1235523+00:00"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET"}]}}' headers: cache-control: - no-cache content-length: - - '5537' + - '5845' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:15:56 GMT + - Thu, 16 Feb 2023 08:36:56 GMT expires: - '-1' pragma: @@ -989,37 +944,92 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmss reimage + - vmss list-instances Connection: - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json ParameterSetName: - - -g -n --instance-id + - -g -n User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/virtualMachines/1/reimage?api-version=2022-11-01 + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines?api-version=2022-11-01 response: body: - string: '' + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vmss000002_1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines/1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n + \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"instanceId\": + \"1\",\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"latestModelApplied\": + true,\r\n \"modelDefinitionApplied\": \"VirtualMachineScaleSet\",\r\n + \ \"networkProfileConfiguration\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmssg80e2Nic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmssg80e2IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET/subnets/vmss000002Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/backendAddressPools/vmss000002LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/inboundNatPools/vmss000002LBNatPool\"}]}}]}}]},\r\n + \ \"vmId\": \"8e3ed955-dc1c-40d2-93b4-14e11b65227e\",\r\n \"hardwareProfile\": + {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": + {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n + \ \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \"version\": + \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n },\r\n + \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vmss000002_vmss000002_1_OsDisk_1_52d6c5c91b774796ba0e9b1cf3dde95b\",\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_vmss_reimage_000001/providers/Microsoft.Compute/disks/vmss000002_vmss000002_1_OsDisk_1_52d6c5c91b774796ba0e9b1cf3dde95b\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"vmssg80e2000001\",\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 + AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true,\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines/1/networkInterfaces/vmssg80e2Nic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"timeCreated\": \"2023-02-16T08:35:14.1861156+00:00\"\r\n + \ }\r\n },\r\n {\r\n \"name\": \"vmss000002_2\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines/2\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets/virtualMachines\",\r\n + \ \"location\": \"westus\",\r\n \"tags\": {},\r\n \"instanceId\": + \"2\",\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"latestModelApplied\": + true,\r\n \"modelDefinitionApplied\": \"VirtualMachineScaleSet\",\r\n + \ \"networkProfileConfiguration\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmssg80e2Nic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmssg80e2IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET/subnets/vmss000002Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/backendAddressPools/vmss000002LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/inboundNatPools/vmss000002LBNatPool\"}]}}]}}]},\r\n + \ \"vmId\": \"ff9e4998-c18c-4ff3-95cd-7805be9f9b27\",\r\n \"hardwareProfile\": + {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \"storageProfile\": + {\r\n \"imageReference\": {\r\n \"publisher\": \"OpenLogic\",\r\n + \ \"offer\": \"CentOS\",\r\n \"sku\": \"7.5\",\r\n \"version\": + \"latest\",\r\n \"exactVersion\": \"7.5.201808150\"\r\n },\r\n + \ \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vmss000002_vmss000002_2_OsDisk_1_3b71bd3649704bd7963a00a68863112c\",\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_vmss_reimage_000001/providers/Microsoft.Compute/disks/vmss000002_vmss000002_2_OsDisk_1_3b71bd3649704bd7963a00a68863112c\"\r\n + \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": + []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": + \"vmssg80e2000002\",\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 + AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true,\r\n \"enableVMAgentPlatformUpdates\": + false\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines/2/networkInterfaces/vmssg80e2Nic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": + \"2023-02-16T08:35:14.1861156+00:00\"\r\n }\r\n }\r\n ]\r\n}" headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 cache-control: - no-cache content-length: - - '0' + - '8429' + content-type: + - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:15:59 GMT + - Thu, 16 Feb 2023 08:36:58 GMT expires: - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 pragma: - no-cache server: @@ -1027,19 +1037,21 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1180,Microsoft.Compute/VMScaleSetVMActions3Min;199,Microsoft.Compute/VMScaleSetVMActions30Min;995,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1181,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - Microsoft.Compute/HighCostGetVMScaleSet3Min;177,Microsoft.Compute/HighCostGetVMScaleSet30Min;877,Microsoft.Compute/VMScaleSetVMViews3Min;4996 x-ms-request-charge: - - '1' + - '4' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: - body: null + body: '{"instanceIds": ["1"]}' headers: Accept: - application/json @@ -1050,15 +1062,16 @@ interactions: Connection: - keep-alive Content-Length: - - '0' + - '22' Content-Type: - application/json ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/reimage?api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/reimageall?api-version=2022-11-01 response: body: string: '' @@ -1066,17 +1079,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 13 Jan 2023 03:16:00 GMT + - Thu, 16 Feb 2023 08:37:00 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 pragma: - no-cache server: @@ -1087,11 +1100,11 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1179,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1179,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1192,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1188,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-ms-request-charge: - - '2' + - '1' status: code: 202 message: Accepted @@ -1107,25 +1120,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:15:59.531993+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"b73ccb49-6d8f-404b-abb8-f7010b7fb585\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:37:00.2650998+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1cfd4297-3aae-4585-a529-4f67769d87d5\"\r\n}" headers: cache-control: - no-cache content-length: - - '133' + - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:16:29 GMT + - Thu, 16 Feb 2023 08:37:31 GMT expires: - '-1' pragma: @@ -1142,7 +1155,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29683 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29942 status: code: 200 message: OK @@ -1158,16 +1171,16 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:16:00.2038692+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"e2549585-5ad8-4545-8c5b-d4120b93f99a\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:37:00.2650998+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1cfd4297-3aae-4585-a529-4f67769d87d5\"\r\n}" headers: cache-control: - no-cache @@ -1176,7 +1189,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:16:30 GMT + - Thu, 16 Feb 2023 08:38:01 GMT expires: - '-1' pragma: @@ -1193,7 +1206,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29682 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29941 status: code: 200 message: OK @@ -1209,25 +1222,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:15:59.531993+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"b73ccb49-6d8f-404b-abb8-f7010b7fb585\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:37:00.2650998+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1cfd4297-3aae-4585-a529-4f67769d87d5\"\r\n}" headers: cache-control: - no-cache content-length: - - '133' + - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:17:00 GMT + - Thu, 16 Feb 2023 08:38:33 GMT expires: - '-1' pragma: @@ -1244,7 +1257,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14984,Microsoft.Compute/GetOperation30Min;29679 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29940 status: code: 200 message: OK @@ -1260,25 +1273,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:16:00.2038692+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"e2549585-5ad8-4545-8c5b-d4120b93f99a\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:37:00.2650998+00:00\",\r\n \"endTime\": + \"2023-02-16T08:38:42.7191632+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"1cfd4297-3aae-4585-a529-4f67769d87d5\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '184' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:17:01 GMT + - Thu, 16 Feb 2023 08:39:03 GMT expires: - '-1' pragma: @@ -1295,7 +1309,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29678 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29938 status: code: 200 message: OK @@ -1311,25 +1325,22 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1cfd4297-3aae-4585-a529-4f67769d87d5?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:15:59.531993+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"b73ccb49-6d8f-404b-abb8-f7010b7fb585\"\ - \r\n}" + string: '' headers: cache-control: - no-cache content-length: - - '133' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Fri, 13 Jan 2023 03:17:30 GMT + - Thu, 16 Feb 2023 08:39:03 GMT expires: - '-1' pragma: @@ -1339,50 +1350,53 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14982,Microsoft.Compute/GetOperation30Min;29675 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29937 status: code: 200 message: OK - request: - body: null + body: '{"instanceIds": ["1", "2"]}' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - vmss reimage Connection: - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/reimageall?api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:16:00.2038692+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"e2549585-5ad8-4545-8c5b-d4120b93f99a\"\ - \r\n}" + string: '' headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/22077804-e661-4056-b35d-1742682b94e0?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 cache-control: - no-cache content-length: - - '134' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Fri, 13 Jan 2023 03:17:30 GMT + - Thu, 16 Feb 2023 08:39:05 GMT expires: - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/22077804-e661-4056-b35d-1742682b94e0?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 pragma: - no-cache server: @@ -1390,17 +1404,17 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14981,Microsoft.Compute/GetOperation30Min;29674 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1191,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1193,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '2' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -1413,25 +1427,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/22077804-e661-4056-b35d-1742682b94e0?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:15:59.531993+00:00\",\r\n \"\ - endTime\": \"2023-01-13T03:17:55.1111103+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"b73ccb49-6d8f-404b-abb8-f7010b7fb585\"\r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:39:06.2818735+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"22077804-e661-4056-b35d-1742682b94e0\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:18:01 GMT + - Thu, 16 Feb 2023 08:39:37 GMT expires: - '-1' pragma: @@ -1441,14 +1455,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14979,Microsoft.Compute/GetOperation30Min;29669 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29935 status: code: 200 message: OK @@ -1464,21 +1474,25 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b73ccb49-6d8f-404b-abb8-f7010b7fb585?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/22077804-e661-4056-b35d-1742682b94e0?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: '' + string: "{\r\n \"startTime\": \"2023-02-16T08:39:06.2818735+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"22077804-e661-4056-b35d-1742682b94e0\"\r\n}" headers: cache-control: - no-cache content-length: - - '0' + - '134' + content-type: + - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:18:01 GMT + - Thu, 16 Feb 2023 08:40:07 GMT expires: - '-1' pragma: @@ -1491,7 +1505,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14977,Microsoft.Compute/GetOperation30Min;29667 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29943 status: code: 200 message: OK @@ -1507,16 +1521,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/22077804-e661-4056-b35d-1742682b94e0?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:16:00.2038692+00:00\",\r\n \"\ - endTime\": \"2023-01-13T03:17:55.1111103+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"e2549585-5ad8-4545-8c5b-d4120b93f99a\"\r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:39:06.2818735+00:00\",\r\n \"endTime\": + \"2023-02-16T08:40:14.3917933+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"22077804-e661-4056-b35d-1742682b94e0\"\r\n}" headers: cache-control: - no-cache @@ -1525,7 +1540,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:18:02 GMT + - Thu, 16 Feb 2023 08:40:37 GMT expires: - '-1' pragma: @@ -1535,14 +1550,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14976,Microsoft.Compute/GetOperation30Min;29666 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29941 status: code: 200 message: OK @@ -1558,11 +1569,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --instance-id + - -g -n --instance-ids User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e2549585-5ad8-4545-8c5b-d4120b93f99a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/22077804-e661-4056-b35d-1742682b94e0?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 response: body: string: '' @@ -1572,7 +1584,7 @@ interactions: content-length: - '0' date: - - Fri, 13 Jan 2023 03:18:02 GMT + - Thu, 16 Feb 2023 08:40:38 GMT expires: - '-1' pragma: @@ -1585,7 +1597,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14975,Microsoft.Compute/GetOperation30Min;29665 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29940 status: code: 200 message: OK @@ -1607,9 +1619,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/reimage?api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/reimage?api-version=2022-11-01 response: body: string: '' @@ -1617,17 +1630,17 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/75239be3-7daa-406f-84bc-be34cc2c49f4?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b915ba27-0b1e-485f-848c-00a31c5ecccd?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 cache-control: - no-cache content-length: - '0' date: - - Fri, 13 Jan 2023 03:18:03 GMT + - Thu, 16 Feb 2023 08:40:39 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/75239be3-7daa-406f-84bc-be34cc2c49f4?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b915ba27-0b1e-485f-848c-00a31c5ecccd?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 pragma: - no-cache server: @@ -1638,7 +1651,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;236,Microsoft.Compute/VMScaleSetActions30Min;1177,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1183,Microsoft.Compute/VmssQueuedVMOperations;0 + - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1192,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1195,Microsoft.Compute/VmssQueuedVMOperations;0 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-ms-request-charge: @@ -1660,14 +1673,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/75239be3-7daa-406f-84bc-be34cc2c49f4?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b915ba27-0b1e-485f-848c-00a31c5ecccd?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:18:04.2830843+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"75239be3-7daa-406f-84bc-be34cc2c49f4\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:40:40.1107654+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b915ba27-0b1e-485f-848c-00a31c5ecccd\"\r\n}" headers: cache-control: - no-cache @@ -1676,7 +1689,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:18:34 GMT + - Thu, 16 Feb 2023 08:41:10 GMT expires: - '-1' pragma: @@ -1693,7 +1706,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14973,Microsoft.Compute/GetOperation30Min;29660 + - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29938 status: code: 200 message: OK @@ -1711,14 +1724,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/75239be3-7daa-406f-84bc-be34cc2c49f4?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b915ba27-0b1e-485f-848c-00a31c5ecccd?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:18:04.2830843+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"75239be3-7daa-406f-84bc-be34cc2c49f4\"\ - \r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:40:40.1107654+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b915ba27-0b1e-485f-848c-00a31c5ecccd\"\r\n}" headers: cache-control: - no-cache @@ -1727,7 +1740,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:19:04 GMT + - Thu, 16 Feb 2023 08:41:40 GMT expires: - '-1' pragma: @@ -1744,7 +1757,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29658 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29937 status: code: 200 message: OK @@ -1762,14 +1775,15 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/75239be3-7daa-406f-84bc-be34cc2c49f4?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b915ba27-0b1e-485f-848c-00a31c5ecccd?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 response: body: - string: "{\r\n \"startTime\": \"2023-01-13T03:18:04.2830843+00:00\",\r\n \"\ - endTime\": \"2023-01-13T03:19:12.0335365+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"75239be3-7daa-406f-84bc-be34cc2c49f4\"\r\n}" + string: "{\r\n \"startTime\": \"2023-02-16T08:40:40.1107654+00:00\",\r\n \"endTime\": + \"2023-02-16T08:41:47.9552084+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b915ba27-0b1e-485f-848c-00a31c5ecccd\"\r\n}" headers: cache-control: - no-cache @@ -1778,7 +1792,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 13 Jan 2023 03:19:35 GMT + - Thu, 16 Feb 2023 08:42:11 GMT expires: - '-1' pragma: @@ -1795,7 +1809,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14969,Microsoft.Compute/GetOperation30Min;29649 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29935 status: code: 200 message: OK @@ -1813,9 +1827,10 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.45.0 (PIP) azsdk-python-azure-mgmt-compute/29.1.0 Python/3.8.1 + (Windows-10-10.0.22621-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/75239be3-7daa-406f-84bc-be34cc2c49f4?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b915ba27-0b1e-485f-848c-00a31c5ecccd?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 response: body: string: '' @@ -1825,7 +1840,7 @@ interactions: content-length: - '0' date: - - Fri, 13 Jan 2023 03:19:36 GMT + - Thu, 16 Feb 2023 08:42:11 GMT expires: - '-1' pragma: @@ -1838,7 +1853,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14968,Microsoft.Compute/GetOperation30Min;29648 + - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29934 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage_instance_id.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage_instance_id.yaml deleted file mode 100644 index 8964f03e7f0..00000000000 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_reimage_instance_id.yaml +++ /dev/null @@ -1,1479 +0,0 @@ -interactions: -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_instance_id000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001","name":"cli_test_vmss_reimage_instance_id000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2023-01-16T06:27:11Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '356' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:16 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://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json - response: - body: - string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ - ,\n \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\"\ - : {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"\ - type\": \"object\",\n \"value\": {\n \"Linux\": {\n \"\ - CentOS\": {\n \"publisher\": \"OpenLogic\",\n \"offer\"\ - : \"CentOS\",\n \"sku\": \"7.5\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\"\ - : \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n \"\ - offer\": \"flatcar-container-linux-free\",\n \"sku\": \"stable\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\"\ - : \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"\ - sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"RHEL\": {\n \"publisher\"\ - : \"RedHat\",\n \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"SLES\": {\n \"publisher\": \"\ - SUSE\",\n \"offer\": \"sles-15-sp3\",\n \"sku\": \"\ - gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\"\ - : \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"\ - sku\": \"18.04-LTS\",\n \"version\": \"latest\",\n \"\ - architecture\": \"x64\"\n }\n },\n \"Windows\": {\n\ - \ \"Win2022Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2022-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2022AzureEditionCore\": {\n \ - \ \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\"\ - ,\n \"sku\": \"2022-datacenter-azure-edition-core\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n \ - \ },\n \"Win2019Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n },\n \"Win2016Datacenter\"\ - : {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"\ - offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\ - \n },\n \"Win2012R2Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2012-R2-Datacenter\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2008-R2-SP1\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n }\n }\n }\n\ - \ }\n }\n}" - headers: - accept-ranges: - - bytes - access-control-allow-origin: - - '*' - cache-control: - - max-age=300 - connection: - - keep-alive - content-length: - - '3463' - content-security-policy: - - default-src 'none'; style-src 'unsafe-inline'; sandbox - content-type: - - text/plain; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:18 GMT - etag: - - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" - expires: - - Mon, 16 Jan 2023 06:32:18 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: - - 1bac02fbb8feedef7cc02d88832d4742eb63ba0b - x-frame-options: - - deny - x-github-request-id: - - 6158:5A02:1A98E0:2D998B:63C478CD - x-served-by: - - cache-qpg1260-QPG - x-timer: - - S1673850438.182528,VS0,VE318 - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-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=2022-11-01 - response: - body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202301100\"\ - ,\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.202301100\"\ - \r\n }\r\n]" - headers: - cache-control: - - no-cache - content-length: - - '286' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:19 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;43981 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-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.202301100?api-version=2022-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 \"name\": \"DiskControllerTypes\",\r\n \ - \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\":\ - \ \"IsHibernateSupported\",\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.202301100\",\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.202301100\"\ - \r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1048' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:20 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73982 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-network/21.0.1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 - response: - body: - string: '{"value":[]}' - headers: - cache-control: - - no-cache - content-length: - - '12' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:21 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.26.0 - method: GET - uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/arm-compute/quickstart-templates/aliases.json - response: - body: - string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\"\ - ,\n \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\"\ - : {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"\ - type\": \"object\",\n \"value\": {\n \"Linux\": {\n \"\ - CentOS\": {\n \"publisher\": \"OpenLogic\",\n \"offer\"\ - : \"CentOS\",\n \"sku\": \"7.5\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Debian\": {\n \"publisher\": \"Debian\",\n \"offer\"\ - : \"debian-10\",\n \"sku\": \"10\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Flatcar\": {\n \"publisher\": \"kinvolk\",\n \"\ - offer\": \"flatcar-container-linux-free\",\n \"sku\": \"stable\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"openSUSE-Leap\": {\n \"publisher\"\ - : \"SUSE\",\n \"offer\": \"opensuse-leap-15-3\",\n \"\ - sku\": \"gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"RHEL\": {\n \"publisher\"\ - : \"RedHat\",\n \"offer\": \"RHEL\",\n \"sku\": \"7-LVM\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"SLES\": {\n \"publisher\": \"\ - SUSE\",\n \"offer\": \"sles-15-sp3\",\n \"sku\": \"\ - gen2\",\n \"version\": \"latest\",\n \"architecture\"\ - : \"x64\"\n },\n \"UbuntuLTS\": {\n \"publisher\"\ - : \"Canonical\",\n \"offer\": \"UbuntuServer\",\n \"\ - sku\": \"18.04-LTS\",\n \"version\": \"latest\",\n \"\ - architecture\": \"x64\"\n }\n },\n \"Windows\": {\n\ - \ \"Win2022Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2022-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2022AzureEditionCore\": {\n \ - \ \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\"\ - ,\n \"sku\": \"2022-datacenter-azure-edition-core\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\n \ - \ },\n \"Win2019Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2019-Datacenter\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n },\n \"Win2016Datacenter\"\ - : {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"\ - offer\": \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \ - \ \"version\": \"latest\",\n \"architecture\": \"x64\"\ - \n },\n \"Win2012R2Datacenter\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2012-R2-Datacenter\",\n \"version\": \"\ - latest\",\n \"architecture\": \"x64\"\n },\n \ - \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\"\ - ,\n \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\"\ - ,\n \"version\": \"latest\",\n \"architecture\": \"\ - x64\"\n },\n \"Win2008R2SP1\": {\n \"publisher\"\ - : \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n\ - \ \"sku\": \"2008-R2-SP1\",\n \"version\": \"latest\"\ - ,\n \"architecture\": \"x64\"\n }\n }\n }\n\ - \ }\n }\n}" - headers: - accept-ranges: - - bytes - access-control-allow-origin: - - '*' - cache-control: - - max-age=300 - connection: - - keep-alive - content-length: - - '3463' - content-security-policy: - - default-src 'none'; style-src 'unsafe-inline'; sandbox - content-type: - - text/plain; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:22 GMT - etag: - - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" - expires: - - Mon, 16 Jan 2023 06:32:22 GMT - source-age: - - '4' - 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: - - 66a06f1b2a5d2ace6c21cc1043f2030fe0aaebb8 - x-frame-options: - - deny - x-github-request-id: - - 6158:5A02:1A98E0:2D998B:63C478CD - x-served-by: - - cache-qpg1231-QPG - x-timer: - - S1673850442.283183,VS0,VE1 - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-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=2022-11-01 - response: - body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202301100\"\ - ,\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.202301100\"\ - \r\n }\r\n]" - headers: - cache-control: - - no-cache - content-length: - - '286' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:23 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43980 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-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.202301100?api-version=2022-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 \"name\": \"DiskControllerTypes\",\r\n \ - \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\":\ - \ \"IsHibernateSupported\",\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.202301100\",\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.202301100\"\ - \r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1048' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73981 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-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=2022-11-01 - response: - body: - string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"18.04.202301100\"\ - ,\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.202301100\"\ - \r\n }\r\n]" - headers: - cache-control: - - no-cache - content-length: - - '286' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43979 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-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.202301100?api-version=2022-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 \"name\": \"DiskControllerTypes\",\r\n \ - \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\":\ - \ \"IsHibernateSupported\",\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.202301100\",\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.202301100\"\ - \r\n}" - headers: - cache-control: - - no-cache - content-length: - - '1048' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:26 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;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73980 - 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": "vmss000002VNET", "type": "Microsoft.Network/virtualNetworks", "location": - "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": - {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": - "vmss000002Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion": - "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vmss000002LBPublicIP", - "location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": - "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", "name": "vmss000002LB", - "location": "westus", "tags": {}, "apiVersion": "2022-01-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss000002VNET", - "Microsoft.Network/publicIpAddresses/vmss000002LBPublicIP"], "properties": {"backendAddressPools": - [{"name": "vmss000002LBBEPool"}], "frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", - "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP"}}}], - "inboundNatPools": [{"name": "vmss000002LBNatPool", "properties": {"frontendIPConfiguration": - {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss000002LB''), - ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, "protocol": "tcp", - "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "backendPort": - 22}}]}}, {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss000002", - "location": "westus", "tags": {}, "apiVersion": "2022-11-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss000002VNET", - "Microsoft.Network/loadBalancers/vmss000002LB"], "properties": {"overprovision": - true, "upgradePolicy": {"mode": "manual", "rollingUpgradePolicy": {}}, "singlePlacementGroup": - null, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": - "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, - "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": - "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vmssj6610", - "adminUsername": "v-jingszhang", "linuxConfiguration": {"disablePasswordAuthentication": - true, "ssh": {"publicKeys": [{"path": "/home/v-jingszhang/.ssh/authorized_keys", - "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDtrwjFOJ5BrjyXXI+zTohbjR8C/UT40MJ6M+D7PhvbUDyPYRjOz4B6DnO4xJ5huKhI2jUMIAKiRHcipHqk5ddySS/Z1e91zmHEuEUPeZlOCJJoLxjtAflx6c7aRhPMzOhsEa/7p527/RuMw/vtQZKQP7ltY37oRiAH6OrQJELbYWMGiX37QsGK1oZU0bRohBeiB+C7Ofc7rYjkdxT4AYXNHLOo5Xr7ByL0u7TMwz2fcE7gY5k5Xbw3gmn3oHnCzdJ6Y3m3BAK9uR7tbw97yxwus/aIAi7wm29ljudtQjmSggd21eG0EZfF1greqgaNdq5JGskcRGWbo/VvX9kThjsF"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmssj6610Nic", - "properties": {"ipConfigurations": [{"name": "vmssj6610IPConfig", "properties": - {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET/subnets/vmss000002Subnet"}, - "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/backendAddressPools/vmss000002LBBEPool"}], - "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/inboundNatPools/vmss000002LBNatPool"}]}}], - "primary": "true"}}]}}, "orchestrationMode": "Uniform"}, "sku": {"name": "Standard_DS1_v2", - "capacity": 2}}], "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', - ''vmss000002''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}}}, - "parameters": {}, "mode": "incremental"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - Content-Length: - - '4184' - Content-Type: - - application/json - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/vmss_deploy_oimCW0DjEhLRLuKp358FemZP65FCrgh2","name":"vmss_deploy_oimCW0DjEhLRLuKp358FemZP65FCrgh2","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16988534989362268760","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2023-01-16T06:27:35.2578267Z","duration":"PT0.0004289S","correlationId":"db3a2de4-97a6-479c-ab62-9258488f64cc","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000002LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000002"}]}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/vmss_deploy_oimCW0DjEhLRLuKp358FemZP65FCrgh2/operationStatuses/08585277564326569017?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '2501' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:27:37 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585277564326569017?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: - - Mon, 16 Jan 2023 06:28:08 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: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585277564326569017?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: - - Mon, 16 Jan 2023 06:28:38 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: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --instance-count - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Resources/deployments/vmss_deploy_oimCW0DjEhLRLuKp358FemZP65FCrgh2","name":"vmss_deploy_oimCW0DjEhLRLuKp358FemZP65FCrgh2","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16988534989362268760","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2023-01-16T06:28:33.1582498Z","duration":"PT57.900852S","correlationId":"db3a2de4-97a6-479c-ab62-9258488f64cc","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000002LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000002LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000002"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"orchestrationMode":"Uniform","upgradePolicy":{"mode":"Manual","rollingUpgradePolicy":{"maxBatchInstancePercent":20,"maxUnhealthyInstancePercent":20,"maxUnhealthyUpgradedInstancePercent":20,"pauseTimeBetweenBatches":"PT0S","maxSurge":false,"rollbackFailedInstancesOnPolicyBreach":false}},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmssj6610","adminUsername":"v-jingszhang","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/v-jingszhang/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDtrwjFOJ5BrjyXXI+zTohbjR8C/UT40MJ6M+D7PhvbUDyPYRjOz4B6DnO4xJ5huKhI2jUMIAKiRHcipHqk5ddySS/Z1e91zmHEuEUPeZlOCJJoLxjtAflx6c7aRhPMzOhsEa/7p527/RuMw/vtQZKQP7ltY37oRiAH6OrQJELbYWMGiX37QsGK1oZU0bRohBeiB+C7Ofc7rYjkdxT4AYXNHLOo5Xr7ByL0u7TMwz2fcE7gY5k5Xbw3gmn3oHnCzdJ6Y3m3BAK9uR7tbw97yxwus/aIAi7wm29ljudtQjmSggd21eG0EZfF1greqgaNdq5JGskcRGWbo/VvX9kThjsF"}]},"provisionVMAgent":true,"enableVMAgentPlatformUpdates":false},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"osType":"Linux","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":30},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmssj6610Nic","properties":{"primary":true,"disableTcpStateTracking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmssj6610IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET/subnets/vmss000002Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/backendAddressPools/vmss000002LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB/inboundNatPools/vmss000002LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"b1de59d6-5321-44ea-adab-cdbbb0b8c62e","timeCreated":"2023-01-16T06:27:55.0593701+00:00"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/loadBalancers/vmss000002LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/publicIPAddresses/vmss000002LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Network/virtualNetworks/vmss000002VNET"}]}}' - headers: - cache-control: - - no-cache - content-length: - - '5822' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:28:39 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: - - vmss reimage - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines/0/reimage?api-version=2022-11-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a94013be-2e6f-417c-8f98-213697e49026?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 16 Jan 2023 06:34:43 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a94013be-2e6f-417c-8f98-213697e49026?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1192,Microsoft.Compute/VMScaleSetVMActions3Min;199,Microsoft.Compute/VMScaleSetVMActions30Min;993,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1196,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-ms-request-charge: - - '1' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/virtualMachines/1/reimage?api-version=2022-11-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7d51b6-c76c-4208-b1ef-ee808b2d5002?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 16 Jan 2023 06:34:44 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7d51b6-c76c-4208-b1ef-ee808b2d5002?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;238,Microsoft.Compute/VMScaleSetActions30Min;1191,Microsoft.Compute/VMScaleSetVMActions3Min;198,Microsoft.Compute/VMScaleSetVMActions30Min;992,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1195,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-ms-request-charge: - - '1' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - Content-Length: - - '0' - Content-Type: - - application/json - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_reimage_instance_id000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000002/reimage?api-version=2022-11-01 - response: - body: - string: '' - headers: - azure-asyncnotification: - - Enabled - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/15abc6ab-4d27-4f04-9711-c9694c368949?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 16 Jan 2023 06:34:44 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/15abc6ab-4d27-4f04-9711-c9694c368949?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/VMScaleSetActions3Min;237,Microsoft.Compute/VMScaleSetActions30Min;1190,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1193,Microsoft.Compute/VmssQueuedVMOperations;0 - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-ms-request-charge: - - '2' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a94013be-2e6f-417c-8f98-213697e49026?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - response: - body: - string: "{\r\n \"startTime\": \"2023-01-16T06:34:43.734916+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"a94013be-2e6f-417c-8f98-213697e49026\"\ - \r\n}" - headers: - cache-control: - - no-cache - content-length: - - '133' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:35:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29959 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7d51b6-c76c-4208-b1ef-ee808b2d5002?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - response: - body: - string: "{\r\n \"startTime\": \"2023-01-16T06:34:44.5004987+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"2b7d51b6-c76c-4208-b1ef-ee808b2d5002\"\ - \r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:35:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29958 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/15abc6ab-4d27-4f04-9711-c9694c368949?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - response: - body: - string: "{\r\n \"startTime\": \"2023-01-16T06:34:45.1099259+00:00\",\r\n \"\ - status\": \"InProgress\",\r\n \"name\": \"15abc6ab-4d27-4f04-9711-c9694c368949\"\ - \r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:35:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29957 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a94013be-2e6f-417c-8f98-213697e49026?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - response: - body: - string: "{\r\n \"startTime\": \"2023-01-16T06:34:43.734916+00:00\",\r\n \"\ - endTime\": \"2023-01-16T06:35:18.8914808+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"a94013be-2e6f-417c-8f98-213697e49026\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '183' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:35:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29953 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a94013be-2e6f-417c-8f98-213697e49026?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 16 Jan 2023 06:35:43 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/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29952 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7d51b6-c76c-4208-b1ef-ee808b2d5002?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - response: - body: - string: "{\r\n \"startTime\": \"2023-01-16T06:34:44.5004987+00:00\",\r\n \"\ - endTime\": \"2023-01-16T06:35:18.8914808+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"2b7d51b6-c76c-4208-b1ef-ee808b2d5002\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:35:45 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29951 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/2b7d51b6-c76c-4208-b1ef-ee808b2d5002?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 16 Jan 2023 06:35:45 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/GetOperation3Min;14987,Microsoft.Compute/GetOperation30Min;29950 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/15abc6ab-4d27-4f04-9711-c9694c368949?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-11-01 - response: - body: - string: "{\r\n \"startTime\": \"2023-01-16T06:34:45.1099259+00:00\",\r\n \"\ - endTime\": \"2023-01-16T06:35:18.8914808+00:00\",\r\n \"status\": \"Succeeded\"\ - ,\r\n \"name\": \"15abc6ab-4d27-4f04-9711-c9694c368949\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '184' - content-type: - - application/json; charset=utf-8 - date: - - Mon, 16 Jan 2023 06:35:46 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29949 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss reimage - Connection: - - keep-alive - ParameterSetName: - - -g -n --instance-id - User-Agent: - - AZURECLI/2.44.0 azsdk-python-azure-mgmt-compute/29.0.0 Python/3.10.9 (Windows-10-10.0.22621-SP0) - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/15abc6ab-4d27-4f04-9711-c9694c368949?p=571046f6-b640-41c1-86f7-f9f044b5adf9&monitor=true&api-version=2022-11-01 - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Mon, 16 Jan 2023 06:35: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/GetOperation3Min;14985,Microsoft.Compute/GetOperation30Min;29948 - status: - code: 200 - message: OK -version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index bfe8613cccd..cd6f0b929eb 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 @@ -8721,17 +8721,17 @@ class VMSSReimageScenarioTest(ScenarioTest): @ResourceGroupPreparer(name_prefix='cli_test_vmss_reimage_') def test_vmss_reimage(self, resource_group): - self.cmd('vmss create -g {rg} -n vmss1 --image centos --admin-username vmtest') - self.cmd('vmss reimage -g {rg} -n vmss1 --instance-id 1') - self.cmd('vmss reimage -g {rg} -n vmss1') - - @ResourceGroupPreparer(name_prefix='cli_test_vmss_reimage_instance_id') - def test_vmss_reimage_instance_id(self, resource_group): self.kwargs.update({ 'vmss': self.create_random_name('vmss', 10) }) - self.cmd('vmss create -g {rg} -n {vmss} --image ubuntults --instance-count 2') - self.cmd('vmss reimage -g {rg} -n {vmss} --instance-id 0 1') + + self.cmd('vmss create -g {rg} -n {vmss} --image CentOS --admin-username vmtest --instance-count 2') + instances = self.cmd('vmss list-instances -g {rg} -n {vmss}').get_output_in_json() + self.kwargs['instance_id1'] = instances[0]['instanceId'] + self.kwargs['instance_id2'] = instances[1]['instanceId'] + self.cmd('vmss reimage -g {rg} -n {vmss} --instance-ids {instance_id1}') + self.cmd('vmss reimage -g {rg} -n {vmss} --instance-ids {instance_id1} {instance_id2}') + self.cmd('vmss reimage -g {rg} -n {vmss}') class VMSSHKeyScenarioTest(ScenarioTest):