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 fc4fe7ba13..d13236b683 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -3940,6 +3940,8 @@ def scale_vmss(cmd, resource_group_name, vm_scale_set_name, new_capacity, no_wai vmss.sku.capacity = new_capacity vmss_new = VirtualMachineScaleSet(location=vmss.location, sku=vmss.sku) + if vmss.extended_location is not None: + vmss_new.extended_location = vmss.extended_location return sdk_no_wait(no_wait, client.virtual_machine_scale_sets.begin_create_or_update, resource_group_name, vm_scale_set_name, vmss_new) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_scale_extended_location.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_scale_extended_location.yaml new file mode 100644 index 0000000000..ec9f62bfc4 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_scale_extended_location.yaml @@ -0,0 +1,1436 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network nsg create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001","name":"cli_test_vmss_scale_extended_location000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_vmss_scale_extended_location","date":"2025-01-23T07:58:28Z","module":"vm","DateCreated":"2025-01-23T07:58:38Z","Creator":"v-jingszhang@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '497' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network nsg create + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002?api-version=2022-01-01 + response: + body: + string: '{"name":"nsg000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"aa764b02-64cb-4f1d-9db4-935cd9b39cbd","securityRules":[],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowVnetInBound","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Updating","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Updating","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/DenyAllInBound","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Updating","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Updating","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Updating","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/DenyAllOutBound","etag":"W/\"d5dbb1f8-4cff-454b-8f92-f15bc96d3614\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Updating","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}}' + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/acd8f781-6e5d-4817-b56e-b79c07f4e545?api-version=2022-01-01&t=638732159257385912&c=MIIHhzC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gBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFB6-4Y-Z7skVWaPi2vBOob5I-JLv_MqkE8tGWMMCFI9McOWBWfeJWV7aA4X4MEwnVfuFzE4mdak49KhEWgAbnGBMMumWJtlE1VDYwoYj3k6VDrhg4K8cRAO24Ezl3_L9yTqPLHhnKpjnjZONChdqvy6tXy9zLDyo9uThhHykSdIVQPaynG83JYpUlN1akyNJVLxae9NCRV251OTh00g9z6gt1b4nk-Nszy6YtF1AoskPTpeZVcsxGTlq3ITXveDCeZrYbQ6EtZf5O8ekTrNsG-8DMSDIgDta1Dud4RchYh74jtodoiwmneC_ZG5VDcpozae4Mh1w3_kD4-E11i1U1U&s=SfmbblEOEM3UgeGfGFQ5vqdzt6GaLD4EIN_fB-ov2AB-Uya9IJ5aO3T6dtD22m3SXp8JfxwhvvW6-QXUWuTM_l_WwVuCIUhsM2EU0gG6U-HRSNpP83vbEtteZKQotwh9JVMUtDcdzOTrser2tSIHgbjT2-9u1m87iNJOsjMk-u9G-aZR1ivnLpo0Tw7s897hjWYJPVOAT1OyZrkjKjUCTSO8ZPpkRyJ3kxzCSr-nRtWaGSUAJefo9pF14dcDy9XKalEcCKIZNlrAZZSP6urVQ8hGVPZexN0UvUXNr2pVWsw5xjN8dVypkkfF3MxKcTJCySUFu1pOPDmFICcNKv3rag&h=20-5OtbHR1Yu2wYcjZNS-qiTRznHe5kid2CSdiZoYVw + cache-control: + - no-cache + content-length: + - '5093' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:44 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-arm-service-request-id: + - 70d93303-e9f9-4e66-87be-c10c7ba79266 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network nsg create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/acd8f781-6e5d-4817-b56e-b79c07f4e545?api-version=2022-01-01&t=638732159257385912&c=MIIHhzCCBm-gAwIBAgITfAWQ0hCHZtQ3fJ4PSAAABZDSEDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTI3MDkwMTAzWhcNMjUwMzI2MDkwMTAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANt7qVbg97HivqUzi3BPPNiHD4wLqYw03AkBiXDpww3W8iIU6FZbbOXVgCL-rGpnbxPkLEVZ1WtRfvLgR3qDiVRjkSnE2knSE6qtvBRWdqqsD9YiSi5lYW67vgtBA_mHzHNDb0zhZ2iofVE5GjHIKYINZSTo8of54bY_fJe0xenYEq7lMpbffWaoano6LQH1L0hSdzAreTN7T_bTsK7TkXQtx45c1upRueZR1wq4PRd-9AYpkfKHhxnCe5LBeLB-Q88WZbmNxuycYiJZzbEGVcEbg5fYdfYb4QveB2WmK7bCWSEDu7WzRaYN9zfP9ZpVnTHTmRcN-f3uvUzxNBMe26UCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKw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xjN8dVypkkfF3MxKcTJCySUFu1pOPDmFICcNKv3rag&h=20-5OtbHR1Yu2wYcjZNS-qiTRznHe5kid2CSdiZoYVw + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58: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-arm-service-request-id: + - f800ee24-389d-4edf-ac76-42b9234c306b + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network nsg create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002?api-version=2022-01-01 + response: + body: + string: '{"name":"nsg000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"aa764b02-64cb-4f1d-9db4-935cd9b39cbd","securityRules":[],"defaultSecurityRules":[{"name":"AllowVnetInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowVnetInBound","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowAzureLoadBalancerInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowAzureLoadBalancerInBound","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + inbound traffic from azure load balancer","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"AzureLoadBalancer","destinationAddressPrefix":"*","access":"Allow","priority":65001,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllInBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/DenyAllInBound","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all inbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Inbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowVnetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowVnetOutBound","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to all VMs in VNET","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"VirtualNetwork","destinationAddressPrefix":"VirtualNetwork","access":"Allow","priority":65000,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"AllowInternetOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/AllowInternetOutBound","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Allow + outbound traffic from all VMs to Internet","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"Internet","access":"Allow","priority":65001,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}},{"name":"DenyAllOutBound","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002/defaultSecurityRules/DenyAllOutBound","etag":"W/\"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6\"","type":"Microsoft.Network/networkSecurityGroups/defaultSecurityRules","properties":{"provisioningState":"Succeeded","description":"Deny + all outbound traffic","protocol":"*","sourcePortRange":"*","destinationPortRange":"*","sourceAddressPrefix":"*","destinationAddressPrefix":"*","access":"Deny","priority":65500,"direction":"Outbound","sourcePortRanges":[],"destinationPortRanges":[],"sourceAddressPrefixes":[],"destinationAddressPrefixes":[]}}]}}' + headers: + cache-control: + - no-cache + content-length: + - '5100' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:45 GMT + etag: + - W/"69eaf8f9-7546-44a7-ad03-84ac8a0d88d6" + 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-arm-service-request-id: + - 3433e2f9-28b2-471d-815a-71655c359c8b + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-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.7/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.7.2021020400\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.7/Versions/7.7.2021020400\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '272' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:48 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/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-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.7/versions/7.7.2021020400?api-version=2024-07-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\": false\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": 32212255232\r\n + \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n + \ \"name\": \"7.7.2021020400\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.7/Versions/7.7.2021020400\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:49 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/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/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: + - Thu, 23 Jan 2025 07:58:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-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.7/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.7.2021020400\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.7/Versions/7.7.2021020400\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '272' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:52 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/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43998 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-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.7/versions/7.7.2021020400?api-version=2024-07-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\": false\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": 32212255232\r\n + \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n + \ \"name\": \"7.7.2021020400\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.7/Versions/7.7.2021020400\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:52 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/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73998 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-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.7/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"westus\",\r\n \"name\": \"7.7.2021020400\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.7/Versions/7.7.2021020400\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '272' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-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.7/versions/7.7.2021020400?api-version=2024-07-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\": false\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"osDiskImage\": {\r\n + \ \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": 32212255232\r\n + \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"westus\",\r\n + \ \"name\": \"7.7.2021020400\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/westus/Publishers/OpenLogic/ArtifactTypes/VMImage/Offers/CentOS/Skus/7.7/Versions/7.7.2021020400\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '717' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:58:54 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/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {"adminPassword": {"type": "securestring", + "metadata": {"description": "Secure adminPassword"}}}, "variables": {}, "resources": + [{"name": "vmss000003VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2021-02-01", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vmss000003Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}, "extendedLocation": + {"name": "losangeles", "type": "EdgeZone"}}, {"apiVersion": "2021-02-01", "type": + "Microsoft.Network/publicIPAddresses", "name": "vmss000003LBPublicIP", "location": + "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": + "Static"}, "sku": {"name": "Standard"}, "extendedLocation": {"name": "losangeles", + "type": "EdgeZone"}}, {"type": "Microsoft.Network/loadBalancers", "name": "vmss000003LB", + "location": "westus", "tags": {}, "apiVersion": "2021-02-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vmss000003VNET", + "Microsoft.Network/publicIpAddresses/vmss000003LBPublicIP"], "properties": {"backendAddressPools": + [{"name": "vmss000003LBBEPool"}], "frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", + "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/publicIPAddresses/vmss000003LBPublicIP"}}}], + "loadBalancingRules": [{"name": "LBRule", "properties": {"frontendIPConfiguration": + {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss000003LB''), + ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, "backendAddressPool": + {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss000003LB''), + ''/backendAddressPools/'', ''vmss000003LBBEPool'')]"}, "protocol": "tcp", "frontendPort": + 80, "backendPort": 80, "enableFloatingIP": false, "idleTimeoutInMinutes": 5}}]}, + "sku": {"name": "Standard"}, "extendedLocation": {"name": "losangeles", "type": + "EdgeZone"}}, {"type": "Microsoft.Network/loadBalancers/inboundNatRules", "apiVersion": + "2022-01-01", "name": "vmss000003LB/NatRule", "location": "westus", "properties": + {"frontendIPConfiguration": {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', + ''vmss000003LB''), ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, + "backendAddressPool": {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', + ''vmss000003LB''), ''/backendAddressPools/'', ''vmss000003LBBEPool'')]"}, "backendPort": + 22, "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "protocol": + "tcp", "idleTimeoutInMinutes": 5}, "dependsOn": ["[concat(''Microsoft.Network/loadBalancers/'', + ''vmss000003LB'')]"]}, {"type": "Microsoft.Compute/virtualMachineScaleSets", + "name": "vmss000003", "location": "westus", "tags": {}, "apiVersion": "2024-07-01", + "dependsOn": ["Microsoft.Network/virtualNetworks/vmss000003VNET", "Microsoft.Network/loadBalancers/vmss000003LB"], + "properties": {"overprovision": true, "upgradePolicy": {"mode": "manual"}, "singlePlacementGroup": + null, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": + "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, + "imageReference": {"publisher": "OpenLogic", "offer": "CentOS", "sku": "7.7", + "version": "latest"}}, "osProfile": {"computerNamePrefix": "vmsshec0d", "adminUsername": + "vmsstest", "adminPassword": "[parameters(''adminPassword'')]"}, "networkProfile": + {"networkInterfaceConfigurations": [{"name": "vmsshec0dNic", "properties": {"ipConfigurations": + [{"name": "vmsshec0dIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet"}, + "publicipaddressconfiguration": {"name": "instancepublicip", "properties": {"idleTimeoutInMinutes": + 10}}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool"}]}}], + "dnsSettings": {"dnsServers": ["10.0.0.6", "10.0.0.5"]}, "networkSecurityGroup": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002"}, + "primary": "true"}}]}}, "orchestrationMode": "Uniform"}, "sku": {"name": "Standard_DS1_v2", + "capacity": 2}, "extendedLocation": {"name": "losangeles", "type": "EdgeZone"}}], + "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', + ''vmss000003''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}}}, + "parameters": {"adminPassword": {"value": "Test123456789#"}}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + Content-Length: + - '5079' + Content-Type: + - application/json + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/vmss_deploy_J1edqRzXCoz04eYUpI60Cp0jBmQRJPC2","name":"vmss_deploy_J1edqRzXCoz04eYUpI60Cp0jBmQRJPC2","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1723918593026012317","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2025-01-23T07:59:03.6683683Z","duration":"PT0.0001843S","correlationId":"e49ff2dd-acd5-4b21-947a-4f40b31c21f8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"loadBalancers/inboundNatRules","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/publicIPAddresses/vmss000003LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000003LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000003LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000003LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/inboundNatRules/NatRule","resourceType":"Microsoft.Network/loadBalancers/inboundNatRules","resourceName":"vmss000003LB/NatRule"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000003LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000003"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/vmss_deploy_J1edqRzXCoz04eYUpI60Cp0jBmQRJPC2/operationStatuses/08584639877453303364?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '3209' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:59:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-deployment-engine-version: + - 1.173.0 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584639877453303364?api-version=2022-09-01 + response: + body: + string: '{"status":"Accepted"}' + headers: + cache-control: + - no-cache + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:59:07 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584639877453303364?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 07:59:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584639877453303364?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584639877453303364?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -n -g --image --admin-username --lb-sku --public-ip-per-vm --dns-servers --nsg + --admin-username --admin-password --orchestration-mode -l --edge-zone + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Resources/deployments/vmss_deploy_J1edqRzXCoz04eYUpI60Cp0jBmQRJPC2","name":"vmss_deploy_J1edqRzXCoz04eYUpI60Cp0jBmQRJPC2","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1723918593026012317","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2025-01-23T08:00:21.5194775Z","duration":"PT1M17.8512935S","correlationId":"e49ff2dd-acd5-4b21-947a-4f40b31c21f8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"loadBalancers/inboundNatRules","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/publicIPAddresses/vmss000003LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000003LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000003LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000003LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/inboundNatRules/NatRule","resourceType":"Microsoft.Network/loadBalancers/inboundNatRules","resourceName":"vmss000003LB/NatRule"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vmss000003VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000003LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000003"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"orchestrationMode":"Uniform","upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmsshec0d","adminUsername":"vmsstest","linuxConfiguration":{"disablePasswordAuthentication":false,"provisionVMAgent":true},"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.7","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmsshec0dNic","properties":{"primary":true,"disableTcpStateTracking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002"},"dnsSettings":{"dnsServers":["10.0.0.6","10.0.0.5"]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmsshec0dIPConfig","properties":{"publicIPAddressConfiguration":{"name":"instancepublicip","properties":{"idleTimeoutInMinutes":10,"ipTags":[],"publicIPAddressVersion":"IPv4"}},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool"}]}}]}}]},"timeCreated":"2025-01-23T07:59:23.4836331+00:00"},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"064763b1-2e8a-4063-ac7f-2bb8fa5c1f24","platformFaultDomainCount":1,"timeCreated":"2025-01-23T07:59:23.4836331+00:00"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/inboundNatRules/NatRule"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/publicIPAddresses/vmss000003LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '6221' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"etag\": + \"\\\"3\\\"\",\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n + \ \"orchestrationMode\": \"Uniform\",\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vmsshec0d\",\r\n \"adminUsername\": + \"vmsstest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"createOption\": \"FromImage\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"diskSizeGB\": + 30\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.7\",\r\n + \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\": + {\"networkInterfaceConfigurations\":[{\"name\":\"vmsshec0dNic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002\"},\"dnsSettings\":{\"dnsServers\":[\"10.0.0.6\",\"10.0.0.5\"]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmsshec0dIPConfig\",\"properties\":{\"publicIPAddressConfiguration\":{\"name\":\"instancepublicip\",\"properties\":{\"idleTimeoutInMinutes\":10,\"ipTags\":[],\"publicIPAddressVersion\":\"IPv4\"}},\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool\"}]}}]}}]},\r\n + \ \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n + \ \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"064763b1-2e8a-4063-ac7f-2bb8fa5c1f24\",\r\n \"platformFaultDomainCount\": + 1,\r\n \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": + \"losangeles\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:42 GMT + etag: + - '"3"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetSubscriptionMaximum;2396,Microsoft.Compute/GetVMScaleSetResource;32 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8B729CBA067A40489383413A17186C1C Ref B: TYO201151002060 Ref C: 2025-01-23T08:00:42Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss scale + Connection: + - keep-alive + ParameterSetName: + - -n -g --new-capacity + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"etag\": + \"\\\"3\\\"\",\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n + \ \"orchestrationMode\": \"Uniform\",\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vmsshec0d\",\r\n \"adminUsername\": + \"vmsstest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"createOption\": \"FromImage\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"diskSizeGB\": + 30\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.7\",\r\n + \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\": + {\"networkInterfaceConfigurations\":[{\"name\":\"vmsshec0dNic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002\"},\"dnsSettings\":{\"dnsServers\":[\"10.0.0.6\",\"10.0.0.5\"]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmsshec0dIPConfig\",\"properties\":{\"publicIPAddressConfiguration\":{\"name\":\"instancepublicip\",\"properties\":{\"idleTimeoutInMinutes\":10,\"ipTags\":[],\"publicIPAddressVersion\":\"IPv4\"}},\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool\"}]}}]}}]},\r\n + \ \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n + \ \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"064763b1-2e8a-4063-ac7f-2bb8fa5c1f24\",\r\n \"platformFaultDomainCount\": + 1,\r\n \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": + \"losangeles\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:42 GMT + etag: + - '"3"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetSubscriptionMaximum;2395,Microsoft.Compute/GetVMScaleSetResource;31 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9739CCA0631B420DBA9C13C7FEF37C83 Ref B: TYO201100114045 Ref C: 2025-01-23T08:00:43Z' + status: + code: 200 + message: '' +- request: + body: '{"location": "westus", "sku": {"name": "Standard_DS1_v2", "tier": "Standard", + "capacity": 5}, "extendedLocation": {"name": "losangeles", "type": "EdgeZone"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss scale + Connection: + - keep-alive + Content-Length: + - '157' + Content-Type: + - application/json + ParameterSetName: + - -n -g --new-capacity + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 5\r\n },\r\n \"etag\": + \"\\\"4\\\"\",\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n + \ \"orchestrationMode\": \"Uniform\",\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vmsshec0d\",\r\n \"adminUsername\": + \"vmsstest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"createOption\": \"FromImage\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"diskSizeGB\": + 30\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.7\",\r\n + \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\": + {\"networkInterfaceConfigurations\":[{\"name\":\"vmsshec0dNic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002\"},\"dnsSettings\":{\"dnsServers\":[\"10.0.0.6\",\"10.0.0.5\"]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmsshec0dIPConfig\",\"properties\":{\"publicIPAddressConfiguration\":{\"name\":\"instancepublicip\",\"properties\":{\"idleTimeoutInMinutes\":10,\"ipTags\":[],\"publicIPAddressVersion\":\"IPv4\"}},\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool\"}]}}]}}]},\r\n + \ \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"provisioningState\": \"Updating\",\r\n \"overprovision\": true,\r\n + \ \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"064763b1-2e8a-4063-ac7f-2bb8fa5c1f24\",\r\n \"platformFaultDomainCount\": + 1,\r\n \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": + \"losangeles\"\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/cf44f237-c8cf-4fba-9abf-de422a2317f9?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-07-01&t=638732160506664804&c=MIIHpTCCBo2gAwIBAgITOgSvQhYJhJv3upoQdAAEBK9CFjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjUwMTIyMDMwMTU5WhcNMjUwNzIxMDMwMTU5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcN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QMdfpnbGiVXsZZWKvdCtsflEnI9H052zGSlCHXFA79czpOAtnaM2y7VpcgWWcwfQoxrlRc9j2iOK6k-5eQ4vR-2ax5Dz8pS4SjHx6OUFXJPIVjXWQ3Gy15ex5ORHBva_2bbIfAjhFE6f1KdMHw8ippUrN2jpPlixMwyULn6sdQ&s=SDaNLfyGninJcafuPLtbRSdPSHmMsyV68P4rLqaLfrLzq11loQqLk6J4ys61JP9N_UPYvBN6lh71SvlYWlPdwk8fVJp4tbpVNfyoggLkd8tqSi7hhDNekCRjhvAUXS0ymr2ozl9ZVMov7KCUKj03MuSWJVNRx7rVNoRG0-K190k_TauGD4VSZ7tOnSUHMSzxrCLbnkCZCeIwzQmxx8NqmRtl7zgPEl5vPhD5XZgsD3ioYrmht8ayQN0RXzRcqo9f5K9MqpOsoGrn9t60kT1wNIP4Psy-JwGi8iRBG7dLx4f57fO_ucfxTkWXEJCxA1-BJYogVWNYvCDJEySt-wf-5A&h=bAZ2mCMiLxBaL9cN1ypP0tt6dnMniN8N3jOxJ7VLbSg + cache-control: + - no-cache + content-length: + - '2978' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:49 GMT + etag: + - '"4"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSetSubscriptionMaximum;374,Microsoft.Compute/CreateVMScaleSetResource;11,Microsoft.Compute/VMScaleSetBatchedVMRequestsSubscriptionMaximum;5996,Microsoft.Compute/VmssQueuedVMOperations;0 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-ms-request-charge: + - '4' + x-msedge-ref: + - 'Ref A: E250478705874A69B595659D353F1C4B Ref B: TYO201100114045 Ref C: 2025-01-23T08:00:43Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss scale + Connection: + - keep-alive + ParameterSetName: + - -n -g --new-capacity + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cf44f237-c8cf-4fba-9abf-de422a2317f9?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-07-01&t=638732160506664804&c=MIIHpTCCBo2gAwIBAgITOgSvQhYJhJv3upoQdAAEBK9CFjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjUwMTIyMDMwMTU5WhcNMjUwNzIxMDMwMTU5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO17fDEiEOGH85D6qKUDJHIVDhcCjC2pu4JSSnkzGvOfrDCdUzVb55WbvUJigZShRYx9KK2Tifd8u0x9mEr-BqCG740-56xJ0FwyN5eybwhvEZ37UsLxhboIFxyx8uV2cqjMOs-Wr3aVNi8bKw0dtj3MtKzSA4Jq4N4u6-4-Ve8zwiJ_jiBJD5vLZNVRVztWgP8QjyVPSwjglbSddVuTWXJSQakaWh1cPVGHgxxfUaOmZDxb9JexQGcMwciHiIFG5kA_MAl6kb1azqKp2PFoOeWH8ByQpEwrsmsQWO7ccFQjKlu5nqLgOblLusGnyq9Vj9AEge3hXfM-KgADwgsXhYkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIw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rn9t60kT1wNIP4Psy-JwGi8iRBG7dLx4f57fO_ucfxTkWXEJCxA1-BJYogVWNYvCDJEySt-wf-5A&h=bAZ2mCMiLxBaL9cN1ypP0tt6dnMniN8N3jOxJ7VLbSg + response: + body: + string: "{\r\n \"startTime\": \"2025-01-23T08:00:50.2661541+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"cf44f237-c8cf-4fba-9abf-de422a2317f9\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:00:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4EA66EE9FDEF4E7EB4E9A22511811006 Ref B: TYO201100114045 Ref C: 2025-01-23T08:00:50Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss scale + Connection: + - keep-alive + ParameterSetName: + - -n -g --new-capacity + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cf44f237-c8cf-4fba-9abf-de422a2317f9?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-07-01&t=638732160506664804&c=MIIHpTCCBo2gAwIBAgITOgSvQhYJhJv3upoQdAAEBK9CFjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDV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NAQELBQADggEBAFtR1erRcnsRy81VZmW7vRJcTBeMa0QB2qPhaTv9xWMZZOO66KX4BS-2T-NOp4JpCPxajSVb7F0sqEEzzC9vk-T0I_jwfthGmZIpEpGJ1TwIN6hgdxae4FN0YxjZilZ1-XJmRty4se4EkXWVaQcNOG5rxRK2CdhIkpt0W_PBONwCrQMdfpnbGiVXsZZWKvdCtsflEnI9H052zGSlCHXFA79czpOAtnaM2y7VpcgWWcwfQoxrlRc9j2iOK6k-5eQ4vR-2ax5Dz8pS4SjHx6OUFXJPIVjXWQ3Gy15ex5ORHBva_2bbIfAjhFE6f1KdMHw8ippUrN2jpPlixMwyULn6sdQ&s=SDaNLfyGninJcafuPLtbRSdPSHmMsyV68P4rLqaLfrLzq11loQqLk6J4ys61JP9N_UPYvBN6lh71SvlYWlPdwk8fVJp4tbpVNfyoggLkd8tqSi7hhDNekCRjhvAUXS0ymr2ozl9ZVMov7KCUKj03MuSWJVNRx7rVNoRG0-K190k_TauGD4VSZ7tOnSUHMSzxrCLbnkCZCeIwzQmxx8NqmRtl7zgPEl5vPhD5XZgsD3ioYrmht8ayQN0RXzRcqo9f5K9MqpOsoGrn9t60kT1wNIP4Psy-JwGi8iRBG7dLx4f57fO_ucfxTkWXEJCxA1-BJYogVWNYvCDJEySt-wf-5A&h=bAZ2mCMiLxBaL9cN1ypP0tt6dnMniN8N3jOxJ7VLbSg + response: + body: + string: "{\r\n \"startTime\": \"2025-01-23T08:00:50.2661541+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"cf44f237-c8cf-4fba-9abf-de422a2317f9\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:01:28 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;43,Microsoft.Compute/GetOperationSubscriptionMaximum;14999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8B3841F4867F46A5A2688412B27CF7BD Ref B: TYO201100114045 Ref C: 2025-01-23T08:01:29Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss scale + Connection: + - keep-alive + ParameterSetName: + - -n -g --new-capacity + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/cf44f237-c8cf-4fba-9abf-de422a2317f9?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2024-07-01&t=638732160506664804&c=MIIHpTCCBo2gAwIBAgITOgSvQhYJhJv3upoQdAAEBK9CFjANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjUwMTIyMDMwMTU5WhcNMjUwNzIxMDMwMTU5WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAO17fDEiEOGH85D6qKUDJHIVDhcCjC2pu4JSSnkzGvOfrDCdUzVb55WbvUJigZShRYx9KK2Tifd8u0x9mEr-BqCG740-56xJ0FwyN5eybwhvEZ37UsLxhboIFxyx8uV2cqjMOs-Wr3aVNi8bKw0dtj3MtKzSA4Jq4N4u6-4-Ve8zwiJ_jiBJD5vLZNVRVztWgP8QjyVPSwjglbSddVuTWXJSQakaWh1cPVGHgxxfUaOmZDxb9JexQGc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fyoggLkd8tqSi7hhDNekCRjhvAUXS0ymr2ozl9ZVMov7KCUKj03MuSWJVNRx7rVNoRG0-K190k_TauGD4VSZ7tOnSUHMSzxrCLbnkCZCeIwzQmxx8NqmRtl7zgPEl5vPhD5XZgsD3ioYrmht8ayQN0RXzRcqo9f5K9MqpOsoGrn9t60kT1wNIP4Psy-JwGi8iRBG7dLx4f57fO_ucfxTkWXEJCxA1-BJYogVWNYvCDJEySt-wf-5A&h=bAZ2mCMiLxBaL9cN1ypP0tt6dnMniN8N3jOxJ7VLbSg + response: + body: + string: "{\r\n \"startTime\": \"2025-01-23T08:00:50.2661541+00:00\",\r\n \"endTime\": + \"2025-01-23T08:01:47.4232532+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"cf44f237-c8cf-4fba-9abf-de422a2317f9\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:01:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B0C087E058D542E8A14D730DF42EAC6E Ref B: TYO201100114045 Ref C: 2025-01-23T08:01:59Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss scale + Connection: + - keep-alive + ParameterSetName: + - -n -g --new-capacity + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 5\r\n },\r\n \"etag\": + \"\\\"6\\\"\",\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n + \ \"orchestrationMode\": \"Uniform\",\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vmsshec0d\",\r\n \"adminUsername\": + \"vmsstest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"createOption\": \"FromImage\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"diskSizeGB\": + 30\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.7\",\r\n + \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\": + {\"networkInterfaceConfigurations\":[{\"name\":\"vmsshec0dNic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002\"},\"dnsSettings\":{\"dnsServers\":[\"10.0.0.6\",\"10.0.0.5\"]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmsshec0dIPConfig\",\"properties\":{\"publicIPAddressConfiguration\":{\"name\":\"instancepublicip\",\"properties\":{\"idleTimeoutInMinutes\":10,\"ipTags\":[],\"publicIPAddressVersion\":\"IPv4\"}},\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool\"}]}}]}}]},\r\n + \ \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n + \ \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"064763b1-2e8a-4063-ac7f-2bb8fa5c1f24\",\r\n \"platformFaultDomainCount\": + 1,\r\n \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": + \"losangeles\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:01:59 GMT + etag: + - '"6"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetSubscriptionMaximum;2397,Microsoft.Compute/GetVMScaleSetResource;33 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 450B7E23A4D04E4C8E4F3ADC3276D1AB Ref B: TYO201100114045 Ref C: 2025-01-23T08:02:00Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n \"location\": + \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n + \ \"tier\": \"Standard\",\r\n \"capacity\": 5\r\n },\r\n \"etag\": + \"\\\"6\\\"\",\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n + \ \"orchestrationMode\": \"Uniform\",\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vmsshec0d\",\r\n \"adminUsername\": + \"vmsstest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + false,\r\n \"provisionVMAgent\": true\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n + \ \"osType\": \"Linux\",\r\n \"createOption\": \"FromImage\",\r\n + \ \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n + \ \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"diskSizeGB\": + 30\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"OpenLogic\",\r\n \"offer\": \"CentOS\",\r\n \"sku\": \"7.7\",\r\n + \ \"version\": \"latest\"\r\n }\r\n },\r\n \"networkProfile\": + {\"networkInterfaceConfigurations\":[{\"name\":\"vmsshec0dNic\",\"properties\":{\"primary\":true,\"disableTcpStateTracking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/networkSecurityGroups/nsg000002\"},\"dnsSettings\":{\"dnsServers\":[\"10.0.0.6\",\"10.0.0.5\"]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmsshec0dIPConfig\",\"properties\":{\"publicIPAddressConfiguration\":{\"name\":\"instancepublicip\",\"properties\":{\"idleTimeoutInMinutes\":10,\"ipTags\":[],\"publicIPAddressVersion\":\"IPv4\"}},\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/virtualNetworks/vmss000003VNET/subnets/vmss000003Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_scale_extended_location000001/providers/Microsoft.Network/loadBalancers/vmss000003LB/backendAddressPools/vmss000003LBBEPool\"}]}}]}}]},\r\n + \ \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n + \ \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"064763b1-2e8a-4063-ac7f-2bb8fa5c1f24\",\r\n \"platformFaultDomainCount\": + 1,\r\n \"timeCreated\": \"2025-01-23T07:59:23.4836331+00:00\"\r\n },\r\n + \ \"extendedLocation\": {\r\n \"type\": \"EdgeZone\",\r\n \"name\": + \"losangeles\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2979' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 23 Jan 2025 08:02:03 GMT + etag: + - '"6"' + 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-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSetSubscriptionMaximum;2396,Microsoft.Compute/GetVMScaleSetResource;32 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + status: + code: 200 + message: '' +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 1d4e90459d..49ac8d7542 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 @@ -4170,6 +4170,29 @@ class VMSSCreateAndModify(ScenarioTest): self.check('scaleInPolicy.forceDeletion', True) ]) + @ResourceGroupPreparer(name_prefix='cli_test_vmss_scale_extended_location', location='westus') + def test_vmss_scale_extended_location(self, resource_group): + self.kwargs.update({ + 'nsg': self.create_random_name('nsg', 10), + 'ssh_key': TEST_SSH_KEY_PUB, + 'vmss': self.create_random_name('vmss', 15) + }) + self.cmd('network nsg create -g {rg} -n {nsg}') + self.cmd('vmss create -n {vmss} -g {rg} --image OpenLogic:CentOS:7.7:latest --admin-username clittester --lb-sku standard --public-ip-per-vm --dns-servers 10.0.0.6 10.0.0.5 --nsg {nsg} --admin-username vmsstest --admin-password Test123456789# --orchestration-mode Uniform -l westus --edge-zone losangeles') + self.cmd('vmss show -n {vmss} -g {rg}', checks=[ + self.check('extendedLocation.name', 'losangeles'), + self.check('sku.capacity', 2) + ]) + self.cmd('vmss scale -n {vmss} -g {rg} --new-capacity 5', checks=[ + self.check('extendedLocation.name', 'losangeles'), + self.check('extendedLocation.type', 'EdgeZone'), + ]) + self.cmd('vmss show -n {vmss} -g {rg}', checks=[ + self.check('extendedLocation.name', 'losangeles'), + self.check('extendedLocation.type', 'EdgeZone'), + self.check('sku.capacity', 5) + ]) + class VMSSCreateOptions(ScenarioTest):