From 75aded52943ed10c19943a3fcf6e63ab39e3c4ab Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Tue, 19 Nov 2019 11:16:36 +0800 Subject: [PATCH 1/4] [Compute] Upgrade Python Compute SDK to 10.0.0; vm/vmss create: Add 'Spot' to 'Priority' enum property; [Breaking change] Rename '--max-billing' parameter to '--max-price', for both VM and VMSS, to be consistent with Swagger and Powershell cmdlets --- src/azure-cli/HISTORY.rst | 3 + .../azure/cli/command_modules/vm/_params.py | 4 +- .../command_modules/vm/_template_builder.py | 12 +- .../cli/command_modules/vm/_validators.py | 2 +- .../azure/cli/command_modules/vm/custom.py | 8 +- .../test_vm_priority_eviction_billing.yaml | 729 ++++++++++-------- .../vm/tests/latest/test_vm_commands.py | 4 +- src/azure-cli/requirements.py2.Darwin.txt | 2 +- src/azure-cli/requirements.py2.Linux.txt | 2 +- src/azure-cli/requirements.py2.windows.txt | 2 +- src/azure-cli/requirements.py3.Darwin.txt | 2 +- src/azure-cli/requirements.py3.Linux.txt | 2 +- src/azure-cli/requirements.py3.windows.txt | 2 +- src/azure-cli/setup.py | 2 +- 14 files changed, 411 insertions(+), 365 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index b691175d1c9..13b49e627cc 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -23,6 +23,9 @@ Release History * vmss create: Improvement for --orchestration-mode * sig image-definition create: add --os-state to allow specifying whether the virtual machines created under this image are 'Generalized' or 'Specialized' * sig image-definition create: add --hyper-v-generation to allow specifying the hypervisor generation +* Upgrade Python Compute SDK to 10.0.0 +* vm/vmss create: Add 'Spot' to 'Priority' enum property +* [Breaking change] Rename '--max-billing' parameter to '--max-price', for both VM and VMSS, to be consistent with Swagger and Powershell cmdlets **IOT** 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 8e61bb02b37..2b2f269be34 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -623,8 +623,8 @@ def load_arguments(self, _): c.argument('secrets', multi_ids_type, help='One or many Key Vault secrets as JSON strings or files via `@{path}` containing `[{ "sourceVault": { "id": "value" }, "vaultCertificates": [{ "certificateUrl": "value", "certificateStore": "cert store name (only on windows)"}] }]`', type=file_type, completer=FilesCompleter()) c.argument('assign_identity', nargs='*', arg_group='Managed Service Identity', help="accept system or user assigned identities separated by spaces. Use '[system]' to refer system assigned identity, or a resource id to refer user assigned identity. Check out help for more examples") c.ignore('aux_subscriptions') - max_billing_help = 'The maximum price (in US Dollars) you are willing to pay for a low priority VM/VMSS. -1 indicates that the low priority VM/VMSS should not be evicted for price reasons' - c.argument('max_billing', help=max_billing_help, min_api='2019-03-01', type=float) + max_price_help = 'The maximum price (in US Dollars) you are willing to pay for a low priority VM/VMSS. -1 indicates that the low priority VM/VMSS should not be evicted for price reasons' + c.argument('max_price', help=max_price_help, min_api='2019-03-01', type=float, is_preview=True) with self.argument_context(scope, arg_group='Authentication') as c: c.argument('generate_ssh_keys', action='store_true', help='Generate SSH public and private key files if missing. The keys will be stored in the ~/.ssh directory') diff --git a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py index 8429c7a2cd6..2302b12a34b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py @@ -248,7 +248,7 @@ def build_vm_resource( # pylint: disable=too-many-locals, too-many-statements os_publisher=None, os_offer=None, os_sku=None, os_version=None, os_vhd_uri=None, attach_os_disk=None, os_disk_size_gb=None, custom_data=None, secrets=None, license_type=None, zone=None, disk_info=None, boot_diagnostics_storage_uri=None, ultra_ssd_enabled=None, proximity_placement_group=None, - computer_name=None, dedicated_host=None, priority=None, max_billing=None, eviction_policy=None, + computer_name=None, dedicated_host=None, priority=None, max_price=None, eviction_policy=None, enable_agent=None, vmss=None): os_caching = disk_info['os'].get('caching') @@ -420,8 +420,8 @@ def _build_storage_profile(): if eviction_policy is not None: vm_properties['evictionPolicy'] = eviction_policy - if max_billing is not None: - vm_properties['billingProfile'] = {'maxPrice': max_billing} + if max_price is not None: + vm_properties['billingProfile'] = {'maxPrice': max_price} vm = { 'apiVersion': cmd.get_api_version(ResourceType.MGMT_COMPUTE, operation_group='virtual_machines'), @@ -651,7 +651,7 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, single_placement_group=None, platform_fault_domain_count=None, custom_data=None, secrets=None, license_type=None, zones=None, priority=None, eviction_policy=None, application_security_groups=None, ultra_ssd_enabled=None, proximity_placement_group=None, - terminate_notification_time=None, max_billing=None): + terminate_notification_time=None, max_price=None): # Build IP configuration ip_configuration = { @@ -810,9 +810,9 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, operation_group='virtual_machine_scale_sets'): vmss_properties['virtualMachineProfile']['evictionPolicy'] = eviction_policy - if max_billing is not None and cmd.supported_api_version( + if max_price is not None and cmd.supported_api_version( min_api='2019-03-01', operation_group='virtual_machine_scale_sets'): - vmss_properties['virtualMachineProfile']['billingProfile'] = {'maxPrice': max_billing} + vmss_properties['virtualMachineProfile']['billingProfile'] = {'maxPrice': max_price} if platform_fault_domain_count is not None and cmd.supported_api_version( min_api='2017-12-01', operation_group='virtual_machine_scale_sets'): diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index 396f17630ce..cb9364b579d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1339,7 +1339,7 @@ def process_vmss_create_namespace(cmd, namespace): namespace.nat_pool_name, namespace.load_balancer_sku, namespace.license_type, - namespace.max_billing, + namespace.max_price, namespace.nsg, namespace.os_caching, namespace.os_disk_name, 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 5f0b229177f..a8815d9397f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -531,7 +531,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ identity_role='Contributor', identity_role_id=None, application_security_groups=None, zone=None, boot_diagnostics_storage=None, ultra_ssd_enabled=None, ephemeral_os_disk=None, proximity_placement_group=None, dedicated_host=None, dedicated_host_group=None, aux_subscriptions=None, - priority=None, max_billing=None, eviction_policy=None, enable_agent=None, workspace=None, vmss=None): + priority=None, max_price=None, eviction_policy=None, enable_agent=None, workspace=None, vmss=None): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string from azure.cli.core.commands.arm import ArmTemplateBuilder @@ -658,7 +658,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ license_type=license_type, zone=zone, disk_info=disk_info, boot_diagnostics_storage_uri=boot_diagnostics_storage, ultra_ssd_enabled=ultra_ssd_enabled, proximity_placement_group=proximity_placement_group, computer_name=computer_name, - dedicated_host=dedicated_host, priority=priority, max_billing=max_billing, eviction_policy=eviction_policy, + dedicated_host=dedicated_host, priority=priority, max_price=max_price, eviction_policy=eviction_policy, enable_agent=enable_agent, vmss=vmss) vm_resource['dependsOn'] = vm_dependencies @@ -1995,7 +1995,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image=None, identity_role_id=None, zones=None, priority=None, eviction_policy=None, application_security_groups=None, ultra_ssd_enabled=None, ephemeral_os_disk=None, proximity_placement_group=None, aux_subscriptions=None, terminate_notification_time=None, - max_billing=None, computer_name_prefix=None, orchestration_mode='ScaleSetVM'): + max_price=None, computer_name_prefix=None, orchestration_mode='ScaleSetVM'): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string from azure.cli.core.commands.arm import ArmTemplateBuilder @@ -2207,7 +2207,7 @@ def _get_public_ip_address_allocation(value, sku): custom_data=custom_data, secrets=secrets, license_type=license_type, zones=zones, priority=priority, eviction_policy=eviction_policy, application_security_groups=application_security_groups, ultra_ssd_enabled=ultra_ssd_enabled, proximity_placement_group=proximity_placement_group, - terminate_notification_time=terminate_notification_time, max_billing=max_billing) + terminate_notification_time=terminate_notification_time, max_price=max_price) vmss_resource['dependsOn'] = vmss_dependencies diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml index 582ed73af18..a189ea50122 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml @@ -11,17 +11,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-11-01T08:57:06Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-11-19T02:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:57:10 GMT + - Tue, 19 Nov 2019 03:00:00 GMT expires: - '-1' pragma: @@ -109,11 +109,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 01 Nov 2019 08:57:11 GMT + - Tue, 19 Nov 2019 03:00:00 GMT etag: - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da" expires: - - Fri, 01 Nov 2019 09:02:11 GMT + - Tue, 19 Nov 2019 03:05:00 GMT source-age: - '0' strict-transport-security: @@ -129,17 +129,17 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - b9e51030947491b3c93df12907a0279b6cd9dc28 + - 230b338bb00aa6c79933d287e84ba77ffdecc501 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - 9D22:6A5B:210D7E:237883:5DBBF367 + - E568:4E87:1041:12F9:5DD35AB0 x-served-by: - - cache-sin18031-SIN + - cache-sin18037-SIN x-timer: - - S1572598632.541102,VS0,VE283 + - S1574132401.555631,VS0,VE316 x-xss-protection: - 1; mode=block status: @@ -157,10 +157,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:57:11 GMT + - Tue, 19 Nov 2019 03:00:00 GMT expires: - '-1' pragma: @@ -238,28 +238,28 @@ interactions: Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_xEBXlTu1nw7v4XKaXmn8nqtGkG9uhKH7","name":"vm_deploy_xEBXlTu1nw7v4XKaXmn8nqtGkG9uhKH7","type":"Microsoft.Resources/deployments","properties":{"templateHash":"18294365743064212273","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-11-01T08:57:15.6233808Z","duration":"PT2.2182706S","correlationId":"1d8f069d-d5bf-4714-ac51-8fe6c0b12dcb","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","name":"vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"33880886701535885","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-11-19T03:00:05.0847286Z","duration":"PT2.7805168S","correlationId":"8828469c-fe1d-476d-8ccd-84f0b5dc1197","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_xEBXlTu1nw7v4XKaXmn8nqtGkG9uhKH7/operationStatuses/08586290082520725160?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE/operationStatuses/08586274744831734150?api-version=2019-07-01 cache-control: - no-cache content-length: - - '2743' + - '2740' content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:57:16 GMT + - Tue, 19 Nov 2019 03:00:05 GMT expires: - '-1' pragma: @@ -269,7 +269,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1188' + - '1199' status: code: 201 message: Created @@ -285,12 +285,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290082520725160?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -302,7 +302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:57:47 GMT + - Tue, 19 Nov 2019 03:00:36 GMT expires: - '-1' pragma: @@ -328,12 +328,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290082520725160?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -345,7 +345,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:18 GMT + - Tue, 19 Nov 2019 03:01:07 GMT expires: - '-1' pragma: @@ -371,12 +371,270 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290082520725160?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Nov 2019 03:01: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --priority --eviction-policy --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Nov 2019 03:02: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --priority --eviction-policy --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Nov 2019 03:02: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --priority --eviction-policy --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Nov 2019 03:03:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --priority --eviction-policy --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Nov 2019 03:03: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: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --priority --eviction-policy --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 19 Nov 2019 03:04:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --priority --eviction-policy --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -388,7 +646,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:48 GMT + - Tue, 19 Nov 2019 03:04:40 GMT expires: - '-1' pragma: @@ -414,24 +672,24 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_xEBXlTu1nw7v4XKaXmn8nqtGkG9uhKH7","name":"vm_deploy_xEBXlTu1nw7v4XKaXmn8nqtGkG9uhKH7","type":"Microsoft.Resources/deployments","properties":{"templateHash":"18294365743064212273","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-11-01T08:58:41.129792Z","duration":"PT1M27.7246818S","correlationId":"1d8f069d-d5bf-4714-ac51-8fe6c0b12dcb","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","name":"vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"33880886701535885","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-11-19T03:04:28.0741581Z","duration":"PT4M25.7699463S","correlationId":"8828469c-fe1d-476d-8ccd-84f0b5dc1197","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3809' + - '3807' content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:48 GMT + - Tue, 19 Nov 2019 03:04:41 GMT expires: - '-1' pragma: @@ -457,10 +715,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET @@ -469,16 +727,16 @@ interactions: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"d1bcb413-b1b7-48ca-8095-dc0b3b6be802\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"d31c055d-5113-4470-88a5-b5a725ce3f6c\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.201910210\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_96c1cdaeb2494b4cb7d71c4141ae13e9\",\r\n + \"18.04.201911130\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\",\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_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_96c1cdaeb2494b4cb7d71c4141ae13e9\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": @@ -493,19 +751,19 @@ interactions: \ \"evictionPolicy\": \"Deallocate\",\r\n \"billingProfile\": {\r\n \"maxPrice\": 50.0\r\n },\r\n \"instanceView\": {\r\n \"computerName\": \"vm1\",\r\n \ \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": - {\r\n \"vmAgentVersion\": \"2.2.44\",\r\n \"statuses\": [\r\n + {\r\n \"vmAgentVersion\": \"2.2.45\",\r\n \"statuses\": [\r\n \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2019-11-01T08:58:49+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm1_OsDisk_1_96c1cdaeb2494b4cb7d71c4141ae13e9\",\r\n + \"2019-11-19T03:04:41+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2019-11-01T08:57:51.1387405+00:00\"\r\n + succeeded\",\r\n \"time\": \"2019-11-19T03:01:56.2102879+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2019-11-01T08:58:36.358498+00:00\"\r\n + succeeded\",\r\n \"time\": \"2019-11-19T03:04:23.2770626+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n \ }\r\n ]\r\n }\r\n }\r\n}" @@ -513,11 +771,11 @@ interactions: cache-control: - no-cache content-length: - - '3879' + - '3880' content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:50 GMT + - Tue, 19 Nov 2019 03:04:41 GMT expires: - '-1' pragma: @@ -534,7 +792,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3981,Microsoft.Compute/LowCostGet30Min;31883 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996 status: code: 200 message: OK @@ -550,10 +808,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET @@ -561,12 +819,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\",\r\n - \ \"etag\": \"W/\\\"0c0043d6-a73c-4649-91bd-8568c7420c73\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"4f7404c7-ae34-4508-88a5-6986c9657dfd\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"67cc03f3-8ffa-4608-b0cb-98d6494e2d99\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"d5caeee8-d5b3-4ca9-a77c-6a9c0d410040\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\",\r\n - \ \"etag\": \"W/\\\"0c0043d6-a73c-4649-91bd-8568c7420c73\\\"\",\r\n + \ \"etag\": \"W/\\\"4f7404c7-ae34-4508-88a5-6986c9657dfd\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -575,8 +833,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"hw5ipt0uqo1urkqcd1b4vgkise.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-31-53-E2\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"cusb3hgonytengouoxzy4ihscf.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-5A-87-40\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -590,9 +848,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:51 GMT + - Tue, 19 Nov 2019 03:04:43 GMT etag: - - W/"0c0043d6-a73c-4649-91bd-8568c7420c73" + - W/"4f7404c7-ae34-4508-88a5-6986c9657dfd" expires: - '-1' pragma: @@ -609,7 +867,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - f8867496-7ebc-4b1e-ad32-dcf8152a8c17 + - 5bb1e832-9726-461b-a7c9-db4e4a7acc2a status: code: 200 message: OK @@ -625,10 +883,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --priority --eviction-policy --max-billing + - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET @@ -636,10 +894,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\",\r\n - \ \"etag\": \"W/\\\"ac176f59-873a-4951-985a-809c92909fc9\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"51da0635-c2e7-4e10-b19f-f5d88710d499\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"af17d31d-e44f-4090-b02a-98943839b662\",\r\n - \ \"ipAddress\": \"104.42.218.230\",\r\n \"publicIPAddressVersion\": + \"Succeeded\",\r\n \"resourceGuid\": \"011d3164-d023-461d-92ce-9a6ce53f545b\",\r\n + \ \"ipAddress\": \"52.160.105.114\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -652,9 +910,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:51 GMT + - Tue, 19 Nov 2019 03:04:43 GMT etag: - - W/"ac176f59-873a-4951-985a-809c92909fc9" + - W/"51da0635-c2e7-4e10-b19f-f5d88710d499" expires: - '-1' pragma: @@ -671,7 +929,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 3e70548f-d2a5-4cd0-99ee-ec4c0bd98134 + - d9287502-ab63-45fb-991f-5888cd5d7f57 status: code: 200 message: OK @@ -690,7 +948,7 @@ interactions: - -g -n User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/9.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET @@ -699,16 +957,16 @@ interactions: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"d1bcb413-b1b7-48ca-8095-dc0b3b6be802\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"d31c055d-5113-4470-88a5-b5a725ce3f6c\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.201910210\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_96c1cdaeb2494b4cb7d71c4141ae13e9\",\r\n + \"18.04.201911130\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\",\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_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_96c1cdaeb2494b4cb7d71c4141ae13e9\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": @@ -730,7 +988,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:51 GMT + - Tue, 19 Nov 2019 03:04:44 GMT expires: - '-1' pragma: @@ -747,7 +1005,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3980,Microsoft.Compute/LowCostGet30Min;31882 + - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31995 status: code: 200 message: OK @@ -763,17 +1021,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-11-01T08:57:06Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-11-19T02:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -782,7 +1040,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:52 GMT + - Tue, 19 Nov 2019 03:04:44 GMT expires: - '-1' pragma: @@ -861,13 +1119,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:54 GMT + - Tue, 19 Nov 2019 03:04:45 GMT etag: - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da" expires: - - Fri, 01 Nov 2019 09:03:54 GMT + - Tue, 19 Nov 2019 03:09:45 GMT source-age: - - '102' + - '284' strict-transport-security: - max-age=31536000 vary: @@ -881,17 +1139,17 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 1604b879610d393f8e6bb3d8470a93b03c045cd7 + - c3ce43ad5f8715dcf7b77492f3e3e0d25d6bc566 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - 9D22:6A5B:210D7E:237883:5DBBF367 + - E568:4E87:1041:12F9:5DD35AB0 x-served-by: - - cache-sin18039-SIN + - cache-sin18049-SIN x-timer: - - S1572598734.126316,VS0,VE1 + - S1574132685.276559,VS0,VE0 x-xss-protection: - 1; mode=block status: @@ -909,10 +1167,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: GET @@ -921,14 +1179,14 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n - \ \"etag\": \"W/\\\"fc58a2e8-6631-42d8-bb60-8369f9283bc6\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"dad4fd42-331b-494b-b9f0-f7047ef046ae\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"cf87be3d-8354-48b7-aa02-1ec3ea994894\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"9c1e2415-6ece-4626-99d4-75f38f20f215\",\r\n \ \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n - \ \"etag\": \"W/\\\"fc58a2e8-6631-42d8-bb60-8369f9283bc6\\\"\",\r\n + \ \"etag\": \"W/\\\"dad4fd42-331b-494b-b9f0-f7047ef046ae\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\r\n @@ -944,7 +1202,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:58:54 GMT + - Tue, 19 Nov 2019 03:04:45 GMT expires: - '-1' pragma: @@ -961,7 +1219,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0bd33e5b-1981-4ebb-9138-267086c7d3b2 + - 51a6f9d0-0689-4788-8f4a-b6c5a2aa5a03 status: code: 200 message: OK @@ -998,12 +1256,12 @@ interactions: {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}}, "osProfile": - {"computerNamePrefix": "vmss13484", "adminUsername": "fey", "linuxConfiguration": + {"computerNamePrefix": "vmss15a4f", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj fey@DESKTOP-ARGPJS4\\n"}]}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vmss13484Nic", "properties": {"primary": "true", "ipConfigurations": - [{"name": "vmss13484IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + [{"name": "vmss15a4fNic", "properties": {"primary": "true", "ipConfigurations": + [{"name": "vmss15a4fIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}], "networkSecurityGroup": {"id": "[resourceId(\''Microsoft.Network/networkSecurityGroups\'', @@ -1026,20 +1284,20 @@ interactions: Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_cIzgw5QuqdlnDKHyj29WKIUVrHakJw9Z","name":"vmss_deploy_cIzgw5QuqdlnDKHyj29WKIUVrHakJw9Z","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7524480963232629263","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-11-01T08:58:59.0294273Z","duration":"PT2.2348019S","correlationId":"b42bcad3-d611-4bca-af83-5615f5630f05","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","name":"vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7262376676420212135","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-11-19T03:04:49.1066471Z","duration":"PT1.6884985S","correlationId":"ef44fca8-bce6-4a97-b861-8ae851f45bc5","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_cIzgw5QuqdlnDKHyj29WKIUVrHakJw9Z/operationStatuses/08586290081486830038?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO/operationStatuses/08586274741980594812?api-version=2019-07-01 cache-control: - no-cache content-length: @@ -1047,7 +1305,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 08:59:00 GMT + - Tue, 19 Nov 2019 03:04:50 GMT expires: - '-1' pragma: @@ -1057,7 +1315,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1187' + - '1199' status: code: 201 message: Created @@ -1073,227 +1331,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 08:59:31 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 09:00:01 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 create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 09:00:31 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 09:01:07 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 create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 01 Nov 2019 09:01:37 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 create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1305,7 +1348,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 09:02:08 GMT + - Tue, 19 Nov 2019 03:05:21 GMT expires: - '-1' pragma: @@ -1331,12 +1374,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1348,7 +1391,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 09:02:39 GMT + - Tue, 19 Nov 2019 03:05:52 GMT expires: - '-1' pragma: @@ -1374,12 +1417,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1391,7 +1434,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 09:03:10 GMT + - Tue, 19 Nov 2019 03:06:22 GMT expires: - '-1' pragma: @@ -1417,12 +1460,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1434,7 +1477,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 09:03:41 GMT + - Tue, 19 Nov 2019 03:06:53 GMT expires: - '-1' pragma: @@ -1460,12 +1503,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586290081486830038?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -1477,7 +1520,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 09:04:11 GMT + - Tue, 19 Nov 2019 03:07:23 GMT expires: - '-1' pragma: @@ -1503,17 +1546,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --lb-sku --priority --eviction-policy --max-billing + - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.75 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_cIzgw5QuqdlnDKHyj29WKIUVrHakJw9Z","name":"vmss_deploy_cIzgw5QuqdlnDKHyj29WKIUVrHakJw9Z","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7524480963232629263","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-11-01T09:04:09.5845817Z","duration":"PT5M12.7899563S","correlationId":"b42bcad3-d611-4bca-af83-5615f5630f05","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":false,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss13484","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","name":"vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7262376676420212135","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-11-19T03:07:20.9775455Z","duration":"PT2M33.5593969S","correlationId":"ef44fca8-bce6-4a97-b861-8ae851f45bc5","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":false,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss15a4f","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\n"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss13484Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss13484IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]},"priority":"Low","evictionPolicy":"Deallocate","billingProfile":{"maxPrice":50.0}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"9b87b01c-2142-4aff-bb4a-f92f439e32aa","platformFaultDomainCount":1}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}' + fey@DESKTOP-ARGPJS4\n"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss15a4fNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss15a4fIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]},"priority":"Low","evictionPolicy":"Deallocate","billingProfile":{"maxPrice":50.0}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"3cd6cb5c-3782-48fe-9bdd-e0992d9f682f","platformFaultDomainCount":1}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}' headers: cache-control: - no-cache @@ -1522,7 +1565,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 01 Nov 2019 09:04:12 GMT + - Tue, 19 Nov 2019 03:07:24 GMT expires: - '-1' pragma: 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 228e41c4554..f43ba6f8dd1 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 @@ -3552,7 +3552,7 @@ def test_vm_priority_eviction_billing(self, resource_group): }) # vm create - self.cmd('vm create -g {rg} -n {vm} --image UbuntuLTS --priority Low --eviction-policy Deallocate --max-billing=50') + self.cmd('vm create -g {rg} -n {vm} --image UbuntuLTS --priority Low --eviction-policy Deallocate --max-price 50') self.cmd('vm show -g {rg} -n {vm}', checks=[ self.check('priority', 'Low'), @@ -3561,7 +3561,7 @@ def test_vm_priority_eviction_billing(self, resource_group): ]) # vmss create - self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS --lb-sku Standard --priority Low --eviction-policy Deallocate --max-billing=50', checks=[ + self.cmd('vmss create -g {rg} -n {vmss} --image UbuntuLTS --lb-sku Standard --priority Low --eviction-policy Deallocate --max-price 50', checks=[ self.check('vmss.virtualMachineProfile.priority', 'Low'), self.check('vmss.virtualMachineProfile.evictionPolicy', 'Deallocate'), self.check('vmss.virtualMachineProfile.billingProfile.maxPrice', 50) diff --git a/src/azure-cli/requirements.py2.Darwin.txt b/src/azure-cli/requirements.py2.Darwin.txt index e093ce8f949..1e32c1f2f2b 100644 --- a/src/azure-cli/requirements.py2.Darwin.txt +++ b/src/azure-cli/requirements.py2.Darwin.txt @@ -27,7 +27,7 @@ azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 azure-mgmt-cdn==3.1.0 azure-mgmt-cognitiveservices==5.0.0 -azure-mgmt-compute==9.0.0 +azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc7 diff --git a/src/azure-cli/requirements.py2.Linux.txt b/src/azure-cli/requirements.py2.Linux.txt index e093ce8f949..1e32c1f2f2b 100644 --- a/src/azure-cli/requirements.py2.Linux.txt +++ b/src/azure-cli/requirements.py2.Linux.txt @@ -27,7 +27,7 @@ azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 azure-mgmt-cdn==3.1.0 azure-mgmt-cognitiveservices==5.0.0 -azure-mgmt-compute==9.0.0 +azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc7 diff --git a/src/azure-cli/requirements.py2.windows.txt b/src/azure-cli/requirements.py2.windows.txt index df2f22f3d76..0eed4631299 100644 --- a/src/azure-cli/requirements.py2.windows.txt +++ b/src/azure-cli/requirements.py2.windows.txt @@ -26,7 +26,7 @@ azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 azure-mgmt-cdn==3.1.0 azure-mgmt-cognitiveservices==5.0.0 -azure-mgmt-compute==9.0.0 +azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc7 diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 3f4322ab9aa..feec37290bd 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -27,7 +27,7 @@ azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 azure-mgmt-cdn==3.1.0 azure-mgmt-cognitiveservices==5.0.0 -azure-mgmt-compute==9.0.0 +azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc7 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index 3f4322ab9aa..feec37290bd 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -27,7 +27,7 @@ azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 azure-mgmt-cdn==3.1.0 azure-mgmt-cognitiveservices==5.0.0 -azure-mgmt-compute==9.0.0 +azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc7 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 0c8e1b86981..60e18036e50 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -26,7 +26,7 @@ azure-mgmt-billing==0.2.0 azure-mgmt-botservice==0.2.0 azure-mgmt-cdn==3.1.0 azure-mgmt-cognitiveservices==5.0.0 -azure-mgmt-compute==9.0.0 +azure-mgmt-compute==10.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc7 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 9fc234a28ef..115d4ff46c4 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -75,7 +75,7 @@ 'azure-mgmt-botservice~=0.2.0', 'azure-mgmt-cdn~=3.1', 'azure-mgmt-cognitiveservices~=5.0.0', - 'azure-mgmt-compute~=9.0', + 'azure-mgmt-compute~=10.0', 'azure-mgmt-consumption~=2.0', 'azure-mgmt-containerinstance~=1.4', 'azure-mgmt-containerregistry~=3.0.0rc7', From b6dbbe60580ac3ca8588240078b69daeaf4d120e Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Tue, 26 Nov 2019 16:47:33 +0800 Subject: [PATCH 2/4] [Compute] vm/vmss create: Update --priority help text --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 44a6347df13..2548e87daab 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -296,7 +296,7 @@ def load_arguments(self, _): VirtualMachineEvictionPolicyTypes = self.get_models('VirtualMachineEvictionPolicyTypes', resource_type=ResourceType.MGMT_COMPUTE) c.argument('priority', resource_type=ResourceType.MGMT_COMPUTE, min_api='2019-03-01', arg_type=get_enum_type(VMPriorityTypes, default=None), - help="Priority. Use 'Low' to run short-lived workloads in a cost-effective way") + help="Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS") c.argument('eviction_policy', resource_type=ResourceType.MGMT_COMPUTE, min_api='2019-03-01', arg_type=get_enum_type(VirtualMachineEvictionPolicyTypes, default=None), help="The eviction policy for the low priority virtual machine.") @@ -499,7 +499,7 @@ def load_arguments(self, _): c.argument('vm_sku', help='Size of VMs in the scale set. Default to "Standard_DS1_v2". See https://azure.microsoft.com/pricing/details/virtual-machines/ for size info.') c.argument('nsg', help='Name or ID of an existing Network Security Group.', arg_group='Network') c.argument('priority', resource_type=ResourceType.MGMT_COMPUTE, min_api='2017-12-01', arg_type=get_enum_type(VMPriorityTypes, default=None), - help="Priority. Use 'Low' to run short-lived workloads in a cost-effective way") + help="Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS") c.argument('eviction_policy', resource_type=ResourceType.MGMT_COMPUTE, min_api='2017-12-01', arg_type=get_enum_type(VirtualMachineEvictionPolicyTypes, default=None), help="The eviction policy for virtual machines in a low priority scale set.", is_preview=True) c.argument('application_security_groups', resource_type=ResourceType.MGMT_COMPUTE, min_api='2018-06-01', nargs='+', options_list=['--asgs'], help='Space-separated list of existing application security groups to associate with the VM.', arg_group='Network', validator=validate_asg_names_or_ids) From 5d54faddd9579e67702b77e4352d3846f5895222 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Dec 2019 17:10:16 +0800 Subject: [PATCH 3/4] [Compute] vm/vmss update: Add --priority; vm/vmss update: Add --max-price --- src/azure-cli/HISTORY.rst | 4 +- .../azure/cli/command_modules/vm/_params.py | 14 +- .../azure/cli/command_modules/vm/custom.py | 25 +- .../test_vm_priority_eviction_billing.yaml | 1515 +++++++++++++---- .../vm/tests/latest/test_vm_commands.py | 14 + 5 files changed, 1191 insertions(+), 381 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 7d133b53fd1..756da639b65 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -9,7 +9,9 @@ Release History **Compute** -* vmss create/update: Add --scale-in-policy, which decides which virtual machines are chosen for removal when a VMSS is scaled-in +* vmss create/update: Add --scale-in-policy, which decides which virtual machines are chosen for removal when a VMSS is scaled-in. +* vm/vmss update: Add --priority. +* vm/vmss update: Add --max-price. **Install** 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 227d368ff83..484db3fd656 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -297,11 +297,7 @@ def load_arguments(self, _): c.argument('accelerated_networking', resource_type=ResourceType.MGMT_NETWORK, min_api='2016-09-01', arg_type=get_three_state_flag(), arg_group='Network', help="enable accelerated networking. Unless specified, CLI will enable it based on machine image and size") if self.supported_api_version(min_api='2019-03-01', resource_type=ResourceType.MGMT_COMPUTE): - VMPriorityTypes = self.get_models('VirtualMachinePriorityTypes', resource_type=ResourceType.MGMT_COMPUTE) VirtualMachineEvictionPolicyTypes = self.get_models('VirtualMachineEvictionPolicyTypes', resource_type=ResourceType.MGMT_COMPUTE) - c.argument('priority', resource_type=ResourceType.MGMT_COMPUTE, min_api='2019-03-01', - arg_type=get_enum_type(VMPriorityTypes, default=None), - help="Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS") c.argument('eviction_policy', resource_type=ResourceType.MGMT_COMPUTE, min_api='2019-03-01', arg_type=get_enum_type(VirtualMachineEvictionPolicyTypes, default=None), help="The eviction policy for the low priority virtual machine.") @@ -489,7 +485,6 @@ def load_arguments(self, _): c.argument(dest, vmss_name_type, id_part=None) # due to instance-ids parameter with self.argument_context('vmss create') as c: - VMPriorityTypes = self.get_models('VirtualMachinePriorityTypes', resource_type=ResourceType.MGMT_COMPUTE) VirtualMachineEvictionPolicyTypes = self.get_models('VirtualMachineEvictionPolicyTypes', resource_type=ResourceType.MGMT_COMPUTE) c.argument('name', name_arg_type) c.argument('nat_backend_port', default=None, help='Backend port to open with NAT rules. Defaults to 22 on Linux and 3389 on Windows.') @@ -503,8 +498,6 @@ def load_arguments(self, _): c.argument('health_probe', help='Probe name from the existing load balancer, mainly used for rolling upgrade') c.argument('vm_sku', help='Size of VMs in the scale set. Default to "Standard_DS1_v2". See https://azure.microsoft.com/pricing/details/virtual-machines/ for size info.') c.argument('nsg', help='Name or ID of an existing Network Security Group.', arg_group='Network') - c.argument('priority', resource_type=ResourceType.MGMT_COMPUTE, min_api='2017-12-01', arg_type=get_enum_type(VMPriorityTypes, default=None), - help="Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS") c.argument('eviction_policy', resource_type=ResourceType.MGMT_COMPUTE, min_api='2017-12-01', arg_type=get_enum_type(VirtualMachineEvictionPolicyTypes, default=None), help="The eviction policy for virtual machines in a low priority scale set.", is_preview=True) c.argument('application_security_groups', resource_type=ResourceType.MGMT_COMPUTE, min_api='2018-06-01', nargs='+', options_list=['--asgs'], help='Space-separated list of existing application security groups to associate with the VM.', arg_group='Network', validator=validate_asg_names_or_ids) @@ -632,8 +625,6 @@ def load_arguments(self, _): c.argument('secrets', multi_ids_type, help='One or many Key Vault secrets as JSON strings or files via `@{path}` containing `[{ "sourceVault": { "id": "value" }, "vaultCertificates": [{ "certificateUrl": "value", "certificateStore": "cert store name (only on windows)"}] }]`', type=file_type, completer=FilesCompleter()) c.argument('assign_identity', nargs='*', arg_group='Managed Service Identity', help="accept system or user assigned identities separated by spaces. Use '[system]' to refer system assigned identity, or a resource id to refer user assigned identity. Check out help for more examples") c.ignore('aux_subscriptions') - max_price_help = 'The maximum price (in US Dollars) you are willing to pay for a low priority VM/VMSS. -1 indicates that the low priority VM/VMSS should not be evicted for price reasons' - c.argument('max_price', help=max_price_help, min_api='2019-03-01', type=float, is_preview=True) with self.argument_context(scope, arg_group='Authentication') as c: c.argument('generate_ssh_keys', action='store_true', help='Generate SSH public and private key files if missing. The keys will be stored in the ~/.ssh directory') @@ -749,6 +740,11 @@ def load_arguments(self, _): "To enable Multitenant Hosting Rights for Windows 10, use 'Windows_Client'. " \ "For more information see the Azure Windows VM online docs." c.argument('license_type', help=license_msg, arg_type=get_enum_type(['Windows_Server', 'Windows_Client', 'None'])) + c.argument('priority', resource_type=ResourceType.MGMT_COMPUTE, min_api='2019-03-01', + arg_type=get_enum_type(self.get_models('VirtualMachinePriorityTypes'), default=None), + help="Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS") + c.argument('max_price', min_api='2019-03-01', type=float, is_preview=True, + help='The maximum price (in US Dollars) you are willing to pay for a low priority VM/VMSS. -1 indicates that the low priority VM/VMSS should not be evicted for price reasons') with self.argument_context('sig') as c: c.argument('gallery_name', options_list=['--gallery-name', '-r'], help='gallery name') 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 2074cc8cdf3..1ca5a12aa2a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -964,7 +964,8 @@ def show_vm(cmd, resource_group_name, vm_name, show_details=False): def update_vm(cmd, resource_group_name, vm_name, os_disk=None, disk_caching=None, - write_accelerator=None, license_type=None, no_wait=False, ultra_ssd_enabled=None, **kwargs): + write_accelerator=None, license_type=None, no_wait=False, ultra_ssd_enabled=None, + priority=None, max_price=None, **kwargs): from msrestazure.tools import parse_resource_id, resource_id, is_valid_resource_id from ._vm_utils import update_write_accelerator_settings, update_disk_caching vm = kwargs['parameters'] @@ -995,6 +996,16 @@ def update_vm(cmd, resource_group_name, vm_name, os_disk=None, disk_caching=None else: vm.additional_capabilities.ultra_ssd_enabled = ultra_ssd_enabled + if priority is not None: + vm.priority = priority + + if max_price is not None: + if vm.billing_profile is None: + BillingProfile = cmd.get_models('BillingProfile') + vm.billing_profile = BillingProfile(max_price=max_price) + else: + vm.billing_profile.max_price = max_price + return sdk_no_wait(no_wait, _compute_client_factory(cmd.cli_ctx).virtual_machines.create_or_update, resource_group_name, vm_name, **kwargs) @@ -2459,7 +2470,7 @@ def update_vmss_instances(cmd, resource_group_name, vm_scale_set_name, instance_ def update_vmss(cmd, resource_group_name, name, license_type=None, no_wait=False, instance_id=None, protect_from_scale_in=None, protect_from_scale_set_actions=None, enable_terminate_notification=None, terminate_notification_time=None, ultra_ssd_enabled=None, - scale_in_policy=None, **kwargs): + scale_in_policy=None, priority=None, max_price=None, **kwargs): vmss = kwargs['parameters'] client = _compute_client_factory(cmd.cli_ctx) @@ -2511,6 +2522,16 @@ def update_vmss(cmd, resource_group_name, name, license_type=None, no_wait=False ScaleInPolicy = cmd.get_models('ScaleInPolicy') vmss.scale_in_policy = ScaleInPolicy(rules=scale_in_policy) + if priority is not None: + vmss.virtual_machine_profile.priority = priority + + if max_price is not None: + if vmss.virtual_machine_profile.billing_profile is None: + BillingProfile = cmd.get_models('BillingProfile') + vmss.virtual_machine_profile.billing_profile = BillingProfile(max_price=max_price) + else: + vmss.virtual_machine_profile.billing_profile.max_price = max_price + return sdk_no_wait(no_wait, client.virtual_machine_scale_sets.create_or_update, resource_group_name, name, **kwargs) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml index a189ea50122..154ebd84b26 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_priority_eviction_billing.yaml @@ -14,14 +14,14 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-11-19T02:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-06T08:49:00Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:00:00 GMT + - Fri, 06 Dec 2019 08:49:04 GMT expires: - '-1' pragma: @@ -109,13 +109,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 19 Nov 2019 03:00:00 GMT + - Fri, 06 Dec 2019 08:49:05 GMT etag: - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da" expires: - - Tue, 19 Nov 2019 03:05:00 GMT + - Fri, 06 Dec 2019 08:54:05 GMT source-age: - - '0' + - '265' strict-transport-security: - max-age=31536000 vary: @@ -123,23 +123,23 @@ interactions: via: - 1.1 varnish x-cache: - - MISS + - HIT x-cache-hits: - - '0' + - '1' x-content-type-options: - nosniff x-fastly-request-id: - - 230b338bb00aa6c79933d287e84ba77ffdecc501 + - 682a1325834f87322127f4689b64c124a05e7d89 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - E568:4E87:1041:12F9:5DD35AB0 + - 4D1E:3BF5:68CE28:709066:5DEA14F7 x-served-by: - - cache-sin18037-SIN + - cache-sin18042-SIN x-timer: - - S1574132401.555631,VS0,VE316 + - S1575622146.818669,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -160,7 +160,7 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:00:00 GMT + - Fri, 06 Dec 2019 08:49:06 GMT expires: - '-1' pragma: @@ -241,25 +241,25 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","name":"vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"33880886701535885","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-11-19T03:00:05.0847286Z","duration":"PT2.7805168S","correlationId":"8828469c-fe1d-476d-8ccd-84f0b5dc1197","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_ve9HY6pxB4A90hF8kRT7r85RG24xyngv","name":"vm_deploy_ve9HY6pxB4A90hF8kRT7r85RG24xyngv","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9553668451440236342","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-12-06T08:49:10.7767644Z","duration":"PT2.9983452S","correlationId":"5ae41e29-fc52-4357-b7ed-eb05955e1afe","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE/operationStatuses/08586274744831734150?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_ve9HY6pxB4A90hF8kRT7r85RG24xyngv/operationStatuses/08586259847376992074?api-version=2019-07-01 cache-control: - no-cache content-length: - - '2740' + - '2742' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:00:05 GMT + - Fri, 06 Dec 2019 08:49:12 GMT expires: - '-1' pragma: @@ -288,267 +288,9 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Nov 2019 03:00:36 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --priority --eviction-policy --max-price - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Nov 2019 03:01:07 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --priority --eviction-policy --max-price - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Nov 2019 03:01: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --priority --eviction-policy --max-price - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Nov 2019 03:02: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --priority --eviction-policy --max-price - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Nov 2019 03:02: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: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --priority --eviction-policy --max-price - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 19 Nov 2019 03:03:09 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --priority --eviction-policy --max-price - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259847376992074?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -560,7 +302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:03:39 GMT + - Fri, 06 Dec 2019 08:49:42 GMT expires: - '-1' pragma: @@ -589,9 +331,9 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259847376992074?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -603,7 +345,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:09 GMT + - Fri, 06 Dec 2019 08:50:13 GMT expires: - '-1' pragma: @@ -632,9 +374,9 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274744831734150?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259847376992074?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -646,7 +388,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:40 GMT + - Fri, 06 Dec 2019 08:50:43 GMT expires: - '-1' pragma: @@ -675,21 +417,21 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","name":"vm_deploy_aFKoJ62qIcIrea7CHB0JpfDczu6a9rTE","type":"Microsoft.Resources/deployments","properties":{"templateHash":"33880886701535885","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-11-19T03:04:28.0741581Z","duration":"PT4M25.7699463S","correlationId":"8828469c-fe1d-476d-8ccd-84f0b5dc1197","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vm_deploy_ve9HY6pxB4A90hF8kRT7r85RG24xyngv","name":"vm_deploy_ve9HY6pxB4A90hF8kRT7r85RG24xyngv","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9553668451440236342","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-12-06T08:50:40.0795918Z","duration":"PT1M32.3011726S","correlationId":"5ae41e29-fc52-4357-b7ed-eb05955e1afe","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"networkInterfaces","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3807' + - '3809' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:41 GMT + - Fri, 06 Dec 2019 08:50:43 GMT expires: - '-1' pragma: @@ -718,7 +460,7 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET @@ -727,16 +469,16 @@ interactions: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"d31c055d-5113-4470-88a5-b5a725ce3f6c\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5d6ed61-32d7-48f6-83d4-2ac9285d7262\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.201911130\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\",\r\n + \"18.04.201912050\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\",\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_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": @@ -755,15 +497,15 @@ interactions: \ {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2019-11-19T03:04:41+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\",\r\n + \"2019-12-06T08:50:43+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2019-11-19T03:01:56.2102879+00:00\"\r\n + succeeded\",\r\n \"time\": \"2019-12-06T08:49:51.1206626+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2019-11-19T03:04:23.2770626+00:00\"\r\n + succeeded\",\r\n \"time\": \"2019-12-06T08:50:33.3705347+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n \ }\r\n ]\r\n }\r\n }\r\n}" @@ -775,7 +517,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:41 GMT + - Fri, 06 Dec 2019 08:50:45 GMT expires: - '-1' pragma: @@ -792,7 +534,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996 + - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31966 status: code: 200 message: OK @@ -811,7 +553,7 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET @@ -819,12 +561,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm1VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\",\r\n - \ \"etag\": \"W/\\\"4f7404c7-ae34-4508-88a5-6986c9657dfd\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"6d8bd2ae-7ba1-4331-834d-983640b7ea16\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"d5caeee8-d5b3-4ca9-a77c-6a9c0d410040\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"4a972c55-6020-4cd4-9e91-2892bc418956\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\",\r\n - \ \"etag\": \"W/\\\"4f7404c7-ae34-4508-88a5-6986c9657dfd\\\"\",\r\n + \ \"etag\": \"W/\\\"6d8bd2ae-7ba1-4331-834d-983640b7ea16\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -833,8 +575,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"cusb3hgonytengouoxzy4ihscf.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-5A-87-40\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"22l2ghav4upu3plewiiyunnk4a.dx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-5A-8B-E8\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vm1NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -848,9 +590,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:43 GMT + - Fri, 06 Dec 2019 08:50:46 GMT etag: - - W/"4f7404c7-ae34-4508-88a5-6986c9657dfd" + - W/"6d8bd2ae-7ba1-4331-834d-983640b7ea16" expires: - '-1' pragma: @@ -867,7 +609,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5bb1e832-9726-461b-a7c9-db4e4a7acc2a + - 1e8333f9-a643-4b2f-9ba8-adda7d0bcc72 status: code: 200 message: OK @@ -886,7 +628,7 @@ interactions: - -g -n --image --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET @@ -894,11 +636,11 @@ interactions: response: body: string: "{\r\n \"name\": \"vm1PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vm1PublicIP\",\r\n - \ \"etag\": \"W/\\\"51da0635-c2e7-4e10-b19f-f5d88710d499\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"871378e3-2e60-497a-b3f3-2bf09f7384d7\\\"\",\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"011d3164-d023-461d-92ce-9a6ce53f545b\",\r\n - \ \"ipAddress\": \"52.160.105.114\",\r\n \"publicIPAddressVersion\": - \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + \"Succeeded\",\r\n \"resourceGuid\": \"a01113e1-03c7-4557-861e-f8cb99f06a6f\",\r\n + \ \"ipAddress\": \"104.42.44.106\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}" @@ -906,13 +648,13 @@ interactions: cache-control: - no-cache content-length: - - '998' + - '997' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:43 GMT + - Fri, 06 Dec 2019 08:50:47 GMT etag: - - W/"51da0635-c2e7-4e10-b19f-f5d88710d499" + - W/"871378e3-2e60-497a-b3f3-2bf09f7384d7" expires: - '-1' pragma: @@ -929,7 +671,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d9287502-ab63-45fb-991f-5888cd5d7f57 + - 87f92ec3-adeb-42aa-b60c-b9ab14f721ad status: code: 200 message: OK @@ -948,7 +690,7 @@ interactions: - -g -n User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET @@ -957,16 +699,16 @@ interactions: body: string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"d31c055d-5113-4470-88a5-b5a725ce3f6c\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5d6ed61-32d7-48f6-83d4-2ac9285d7262\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.201911130\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\",\r\n + \"18.04.201912050\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\",\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_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_001d154c856b4f4383ceb661dbb69d45\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\"\r\n \ },\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1\",\r\n \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": @@ -988,7 +730,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:44 GMT + - Fri, 06 Dec 2019 08:50:48 GMT expires: - '-1' pragma: @@ -1005,7 +747,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31995 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31965 status: code: 200 message: OK @@ -1024,14 +766,14 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-11-19T02:59:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001","name":"cli_test_vm_priority_eviction_billing_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-12-06T08:49:00Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1040,7 +782,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:44 GMT + - Fri, 06 Dec 2019 08:50:49 GMT expires: - '-1' pragma: @@ -1119,13 +861,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:45 GMT + - Fri, 06 Dec 2019 08:50:50 GMT etag: - W/"540044b4084c3c314537f1baa1770f248628b2bc9ba0328f1004c33862e049da" expires: - - Tue, 19 Nov 2019 03:09:45 GMT + - Fri, 06 Dec 2019 08:55:50 GMT source-age: - - '284' + - '53' strict-transport-security: - max-age=31536000 vary: @@ -1139,17 +881,17 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - c3ce43ad5f8715dcf7b77492f3e3e0d25d6bc566 + - 9cc8e7902f0520b4ea9ca97b40e57497959fb8a2 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - E568:4E87:1041:12F9:5DD35AB0 + - 7B9C:33D3:70F268:78D3F2:5DEA1635 x-served-by: - - cache-sin18049-SIN + - cache-sin18046-SIN x-timer: - - S1574132685.276559,VS0,VE0 + - S1575622250.295677,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -1170,7 +912,7 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-network/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: GET @@ -1179,14 +921,14 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n - \ \"etag\": \"W/\\\"dad4fd42-331b-494b-b9f0-f7047ef046ae\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"f74d91bb-8431-4eca-8383-c1ea1d466fe8\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"9c1e2415-6ece-4626-99d4-75f38f20f215\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"1cc317e7-f515-4e1f-bd64-b2118a35aaf0\",\r\n \ \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vm1Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n - \ \"etag\": \"W/\\\"dad4fd42-331b-494b-b9f0-f7047ef046ae\\\"\",\r\n + \ \"etag\": \"W/\\\"f74d91bb-8431-4eca-8383-c1ea1d466fe8\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic/ipConfigurations/ipconfigvm1\"\r\n @@ -1202,7 +944,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:45 GMT + - Fri, 06 Dec 2019 08:50:50 GMT expires: - '-1' pragma: @@ -1219,7 +961,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 51a6f9d0-0689-4788-8f4a-b6c5a2aa5a03 + - 6169b178-779d-4a9a-88e7-1e3dddf4c824 status: code: 200 message: OK @@ -1256,12 +998,12 @@ interactions: {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}}, "osProfile": - {"computerNamePrefix": "vmss15a4f", "adminUsername": "fey", "linuxConfiguration": + {"computerNamePrefix": "vmss1c83e", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj fey@DESKTOP-ARGPJS4\\n"}]}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vmss15a4fNic", "properties": {"primary": "true", "ipConfigurations": - [{"name": "vmss15a4fIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + [{"name": "vmss1c83eNic", "properties": {"primary": "true", "ipConfigurations": + [{"name": "vmss1c83eIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}], "networkSecurityGroup": {"id": "[resourceId(\''Microsoft.Network/networkSecurityGroups\'', @@ -1287,25 +1029,25 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 accept-language: - en-US method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","name":"vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7262376676420212135","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-11-19T03:04:49.1066471Z","duration":"PT1.6884985S","correlationId":"ef44fca8-bce6-4a97-b861-8ae851f45bc5","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RHRvCbILPqnMOnfLeIHogB97lECdOtym","name":"vmss_deploy_RHRvCbILPqnMOnfLeIHogB97lECdOtym","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13915290385916133090","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-12-06T08:50:56.1142975Z","duration":"PT2.7482007S","correlationId":"9019edce-e573-4638-910e-453ce1126a4a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO/operationStatuses/08586274741980594812?api-version=2019-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RHRvCbILPqnMOnfLeIHogB97lECdOtym/operationStatuses/08586259846321115353?api-version=2019-07-01 cache-control: - no-cache content-length: - - '2424' + - '2425' content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:04:50 GMT + - Fri, 06 Dec 2019 08:50:57 GMT expires: - '-1' pragma: @@ -1334,9 +1076,9 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259846321115353?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1348,7 +1090,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:05:21 GMT + - Fri, 06 Dec 2019 08:51:28 GMT expires: - '-1' pragma: @@ -1377,9 +1119,9 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259846321115353?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1391,7 +1133,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:05:52 GMT + - Fri, 06 Dec 2019 08:51:59 GMT expires: - '-1' pragma: @@ -1420,9 +1162,9 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259846321115353?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1434,7 +1176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:06:22 GMT + - Fri, 06 Dec 2019 08:52:29 GMT expires: - '-1' pragma: @@ -1463,9 +1205,9 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259846321115353?api-version=2019-07-01 response: body: string: '{"status":"Running"}' @@ -1477,7 +1219,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:06:53 GMT + - Fri, 06 Dec 2019 08:53:00 GMT expires: - '-1' pragma: @@ -1506,9 +1248,9 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586274741980594812?api-version=2019-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586259846321115353?api-version=2019-07-01 response: body: string: '{"status":"Succeeded"}' @@ -1520,7 +1262,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:07:23 GMT + - Fri, 06 Dec 2019 08:53:31 GMT expires: - '-1' pragma: @@ -1549,14 +1291,14 @@ interactions: - -g -n --image --lb-sku --priority --eviction-policy --max-price User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 - azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.76 + azure-mgmt-resource/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","name":"vmss_deploy_SQ1uNqgrGzqHkHOsFT0ej3SgRhDM3FeO","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7262376676420212135","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-11-19T03:07:20.9775455Z","duration":"PT2M33.5593969S","correlationId":"ef44fca8-bce6-4a97-b861-8ae851f45bc5","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":false,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss15a4f","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RHRvCbILPqnMOnfLeIHogB97lECdOtym","name":"vmss_deploy_RHRvCbILPqnMOnfLeIHogB97lECdOtym","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13915290385916133090","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-12-06T08:53:02.6375731Z","duration":"PT2M9.2714763S","correlationId":"9019edce-e573-4638-910e-453ce1126a4a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]},{"resourceType":"networkSecurityGroups","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vmss1NSG"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":false,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmss1c83e","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj - fey@DESKTOP-ARGPJS4\n"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss15a4fNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss15a4fIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]},"priority":"Low","evictionPolicy":"Deallocate","billingProfile":{"maxPrice":50.0}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"3cd6cb5c-3782-48fe-9bdd-e0992d9f682f","platformFaultDomainCount":1}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}' + fey@DESKTOP-ARGPJS4\n"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"}},"imageReference":{"publisher":"Canonical","offer":"UbuntuServer","sku":"18.04-LTS","version":"latest"}},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmss1c83eNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmss1c83eIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}]}}]},"priority":"Low","evictionPolicy":"Deallocate","billingProfile":{"maxPrice":50.0}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"a97e4a14-4ea3-4bcb-9bec-98b3d20f3e7e","platformFaultDomainCount":1}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/publicIPAddresses/vmss1LBPublicIP"}]}}' headers: cache-control: - no-cache @@ -1565,7 +1307,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 19 Nov 2019 03:07:24 GMT + - Fri, 06 Dec 2019 08:53:31 GMT expires: - '-1' pragma: @@ -1579,4 +1321,1039 @@ interactions: status: code: 200 message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1/deallocate?api-version=2019-07-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d6926cb-7a10-4a6b-ba91-93252dbf85e4?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 06 Dec 2019 08:53:33 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d6926cb-7a10-4a6b-ba91-93252dbf85e4?monitor=true&api-version=2019-07-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/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1198 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d6926cb-7a10-4a6b-ba91-93252dbf85e4?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:53:32.9486881+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"6d6926cb-7a10-4a6b-ba91-93252dbf85e4\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:53: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;14996,Microsoft.Compute/GetOperation30Min;29982 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d6926cb-7a10-4a6b-ba91-93252dbf85e4?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:53:32.9486881+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"6d6926cb-7a10-4a6b-ba91-93252dbf85e4\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:54: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/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29978 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d6926cb-7a10-4a6b-ba91-93252dbf85e4?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:53:32.9486881+00:00\",\r\n \"endTime\": + \"2019-12-06T08:54:23.6509698+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"6d6926cb-7a10-4a6b-ba91-93252dbf85e4\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:54:50 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;29976 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5d6ed61-32d7-48f6-83d4-2ac9285d7262\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.201912050\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm1\",\r\n \"adminUsername\": \"fey\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\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_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"priority\": \"Low\",\r\n + \ \"evictionPolicy\": \"Deallocate\",\r\n \"billingProfile\": {\r\n \"maxPrice\": + 50.0\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2513' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:54:51 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31959 + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "properties": {"hardwareProfile": + {"vmSize": "Standard_DS1_v2"}, "storageProfile": {"imageReference": {"publisher": + "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, + "osDisk": {"osType": "Linux", "name": "vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b", + "caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b"}}, + "dataDisks": []}, "osProfile": {"computerName": "vm1", "adminUsername": "fey", + "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": + [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n"}]}, "provisionVMAgent": true}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic"}]}, + "priority": "Spot", "evictionPolicy": "Deallocate", "billingProfile": {"maxPrice": + 100.0}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + Content-Length: + - '1705' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5d6ed61-32d7-48f6-83d4-2ac9285d7262\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.201912050\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm1\",\r\n \"adminUsername\": \"fey\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\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_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n + \ \"provisioningState\": \"Updating\",\r\n \"priority\": \"Spot\",\r\n + \ \"evictionPolicy\": \"Deallocate\",\r\n \"billingProfile\": {\r\n \"maxPrice\": + 100.0\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/1ba9e8e7-0994-4e37-ae81-2243dcb540f2?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '2514' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:54:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1196 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1ba9e8e7-0994-4e37-ae81-2243dcb540f2?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:54:54.0266467+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"1ba9e8e7-0994-4e37-ae81-2243dcb540f2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:55: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/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29974 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/1ba9e8e7-0994-4e37-ae81-2243dcb540f2?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:54:54.0266467+00:00\",\r\n \"endTime\": + \"2019-12-06T08:55:34.5737606+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"1ba9e8e7-0994-4e37-ae81-2243dcb540f2\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:55:56 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;14989,Microsoft.Compute/GetOperation30Min;29972 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"e5d6ed61-32d7-48f6-83d4-2ac9285d7262\",\r\n + \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.201912050\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/disks/vm1_OsDisk_1_205a9ecd13dd4b8e8ee1c98d9eb43b3b\"\r\n + \ }\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm1\",\r\n \"adminUsername\": \"fey\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true\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_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkInterfaces/vm1VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"priority\": \"Spot\",\r\n + \ \"evictionPolicy\": \"Deallocate\",\r\n \"billingProfile\": {\r\n \"maxPrice\": + 100.0\r\n }\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2515' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:55:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31964 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1/deallocate?api-version=2019-07-01 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8a59c7c-b0db-498c-860c-1931a649f59f?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '0' + date: + - Fri, 06 Dec 2019 08:55:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8a59c7c-b0db-498c-860c-1931a649f59f?monitor=true&api-version=2019-07-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/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;398,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1194,Microsoft.Compute/VmssQueuedVMOperations;4798 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '2' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8a59c7c-b0db-498c-860c-1931a649f59f?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:55:58.0425208+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"b8a59c7c-b0db-498c-860c-1931a649f59f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:56:28 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;14987,Microsoft.Compute/GetOperation30Min;29970 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss deallocate + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8a59c7c-b0db-498c-860c-1931a649f59f?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:55:58.0425208+00:00\",\r\n \"endTime\": + \"2019-12-06T08:56:49.2612424+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b8a59c7c-b0db-498c-860c-1931a649f59f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:56:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29967 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\",\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 \"properties\": + {\r\n \"singlePlacementGroup\": false,\r\n \"upgradePolicy\": {\r\n + \ \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n + \ \"osProfile\": {\r\n \"computerNamePrefix\": \"vmss1c83e\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n + \ \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\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 + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n + \ }\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1c83eNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG\"},\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmss1c83eIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"}]}}]}}]},\r\n + \ \"priority\": \"Low\",\r\n \"evictionPolicy\": \"Deallocate\",\r\n + \ \"billingProfile\": {\r\n \"maxPrice\": 50.0\r\n }\r\n },\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n + \ \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"a97e4a14-4ea3-4bcb-9bec-98b3d20f3e7e\",\r\n \"platformFaultDomainCount\": + 1\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3601' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:56:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;398,Microsoft.Compute/GetVMScaleSet30Min;2591 + status: + code: 200 + message: OK +- request: + body: 'b''{"location": "westus", "tags": {}, "sku": {"name": "Standard_DS1_v2", + "tier": "Standard", "capacity": 2}, "properties": {"upgradePolicy": {"mode": + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vmss1c83e", + "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n"}]}, "provisionVMAgent": true}, "secrets": []}, "storageProfile": + {"imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": + "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": + "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": + {"networkInterfaceConfigurations": [{"name": "vmss1c83eNic", "properties": {"primary": + true, "enableAcceleratedNetworking": false, "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG"}, + "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vmss1c83eIPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "priority": "Spot", "evictionPolicy": "Deallocate", + "billingProfile": {"maxPrice": 100.0}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": false, "platformFaultDomainCount": 1}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '2660' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\",\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 \"properties\": + {\r\n \"singlePlacementGroup\": false,\r\n \"upgradePolicy\": {\r\n + \ \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n + \ \"osProfile\": {\r\n \"computerNamePrefix\": \"vmss1c83e\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n + \ \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\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 + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n + \ }\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1c83eNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG\"},\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmss1c83eIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"}]}}]}}]},\r\n + \ \"priority\": \"Spot\",\r\n \"evictionPolicy\": \"Deallocate\",\r\n + \ \"billingProfile\": {\r\n \"maxPrice\": 100.0\r\n }\r\n + \ },\r\n \"provisioningState\": \"Updating\",\r\n \"overprovision\": + true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"a97e4a14-4ea3-4bcb-9bec-98b3d20f3e7e\",\r\n \"platformFaultDomainCount\": + 1\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/70707ee9-200c-4233-a7cd-f5d68633a9cd?api-version=2019-07-01 + cache-control: + - no-cache + content-length: + - '3602' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:57:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;59,Microsoft.Compute/CreateVMScaleSet30Min;297,Microsoft.Compute/VmssQueuedVMOperations;4800 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '0' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/70707ee9-200c-4233-a7cd-f5d68633a9cd?api-version=2019-07-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-12-06T08:57:01.5581224+00:00\",\r\n \"endTime\": + \"2019-12-06T08:57:01.7300143+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"70707ee9-200c-4233-a7cd-f5d68633a9cd\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:57: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;14987,Microsoft.Compute/GetOperation30Min;29965 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + ParameterSetName: + - -g -n --priority --max-price + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.10 msrest_azure/0.6.2 + azure-mgmt-compute/10.0.0 Azure-SDK-For-Python AZURECLI/2.0.77 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1?api-version=2019-07-01 + response: + body: + string: "{\r\n \"name\": \"vmss1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss1\",\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 \"properties\": + {\r\n \"singlePlacementGroup\": false,\r\n \"upgradePolicy\": {\r\n + \ \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n + \ \"osProfile\": {\r\n \"computerNamePrefix\": \"vmss1c83e\",\r\n + \ \"adminUsername\": \"fey\",\r\n \"linuxConfiguration\": {\r\n + \ \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n + \ \"publicKeys\": [\r\n {\r\n \"path\": + \"/home/fey/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDmzXeK++L20uMK/Ug5wpjnWWyMlHoecEOxyHueHc1gPDj8qgLChiHt1OWJ1sDjiqBJ+hEEwZLjN8lCmUvWzzrl20d7M/BVp1ejulE/zr999kWuY3m5+FpAkbbxeO9LWoafwOir9dPzIOjDGdPWKbgHr3SerOHAuvVdXJDhWHtW5lB/MEnrxi48Pz/8k1lD1YccUAI6zDgKVJPBEk9fWMW8H0hKYsRXmlxdtg2npBQK7kbmcB2NJPEhTVgxVPqSaBVAt2lOCC/QQvAXcoD0lJGujp1IVYqSUarS5RnrYEDZ9Q6EKduWrP0GFkFkF8YzpFe+BRFaV8bLJrvZN43vgzRj + fey@DESKTOP-ARGPJS4\\n\"\r\n }\r\n ]\r\n },\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 + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n + \ }\r\n },\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\"\r\n }\r\n },\r\n + \ \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmss1c83eNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"networkSecurityGroup\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/networkSecurityGroups/vmss1NSG\"},\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmss1c83eIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/backendAddressPools/vmss1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_priority_eviction_billing_000001/providers/Microsoft.Network/loadBalancers/vmss1LB/inboundNatPools/vmss1LBNatPool\"}]}}]}}]},\r\n + \ \"priority\": \"Spot\",\r\n \"evictionPolicy\": \"Deallocate\",\r\n + \ \"billingProfile\": {\r\n \"maxPrice\": 100.0\r\n }\r\n + \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": + true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": + \"a97e4a14-4ea3-4bcb-9bec-98b3d20f3e7e\",\r\n \"platformFaultDomainCount\": + 1\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3603' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Dec 2019 08:57: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/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2589 + 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 34a1c7dca02..710d5c35cee 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 @@ -3591,6 +3591,20 @@ def test_vm_priority_eviction_billing(self, resource_group): self.check('vmss.virtualMachineProfile.billingProfile.maxPrice', 50) ]) + # vm update + self.cmd('vm deallocate -g {rg} -n {vm}') + self.cmd('vm update -g {rg} -n {vm} --priority Spot --max-price 100', checks=[ + self.check('priority', 'Spot'), + self.check('billingProfile.maxPrice', 100) + ]) + + # vmss update + self.cmd('vmss deallocate -g {rg} -n {vmss}') + self.cmd('vmss update -g {rg} -n {vmss} --priority Spot --max-price 100', checks=[ + self.check('virtualMachineProfile.priority', 'Spot'), + self.check('virtualMachineProfile.billingProfile.maxPrice', 100) + ]) + class VMCreateSpecialName(ScenarioTest): From 86e09e4abab3cb96dab8e2d002dadc6a758a2440 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Mon, 9 Dec 2019 11:05:28 +0800 Subject: [PATCH 4/4] Fix min API version of priority --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 5 +++++ 1 file changed, 5 insertions(+) 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 484db3fd656..831a44f0597 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -746,6 +746,11 @@ def load_arguments(self, _): c.argument('max_price', min_api='2019-03-01', type=float, is_preview=True, help='The maximum price (in US Dollars) you are willing to pay for a low priority VM/VMSS. -1 indicates that the low priority VM/VMSS should not be evicted for price reasons') + with self.argument_context('vmss create') as c: + c.argument('priority', resource_type=ResourceType.MGMT_COMPUTE, min_api='2017-12-01', + arg_type=get_enum_type(self.get_models('VirtualMachinePriorityTypes'), default=None), + help="Priority. Use 'Spot' to run short-lived workloads in a cost-effective way. 'Low' enum will be deprecated in the future. Please use 'Spot' to deploy Azure spot VM and/or VMSS") + with self.argument_context('sig') as c: c.argument('gallery_name', options_list=['--gallery-name', '-r'], help='gallery name') c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], help='gallery image definition')