From 24e190f0a1229aa92fa132e1ef4c668237426576 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Mon, 2 Sep 2019 10:13:20 +0800 Subject: [PATCH 1/7] [VM] vmss create: --terminate-notification, add terminate scheduled event configurability #10124 --- src/azure-cli/HISTORY.rst | 4 ++++ .../azure/cli/command_modules/vm/_params.py | 1 + .../cli/command_modules/vm/_template_builder.py | 12 +++++++++++- src/azure-cli/azure/cli/command_modules/vm/custom.py | 5 +++-- 4 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 59fff175816..51b325b3f05 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -10,6 +10,10 @@ Release History * [BREAKING] When not specified, the default value for `--start-task-wait-for-success` on `az batch pool create` is now true (was false). * [BREAKING] The default value for Scope on AutoUserSpecification is now always Pool (was Task on Windows nodes, Pool on Linux nodes). This argument is not exposed via the commandline, but can be set in the `--json-file` arguments. +**VM** + +* vmss create: --terminate-notification, add terminate scheduled event configurability + 2.0.72 ++++++ 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 8ef306487de..afd90cf2862 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -585,6 +585,7 @@ def load_arguments(self, _): c.argument('custom_data', help='Custom init script file or text (cloud-init, cloud-config, etc..)', completer=FilesCompleter(), type=file_type) 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.argument('terminate_notification', help='Terminate Scheduled Event. Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format. e.g. PT5M') c.ignore('aux_subscriptions') with self.argument_context(scope, arg_group='Authentication') as c: 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 1b8eb52fca9..4a3ba65c811 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 @@ -623,7 +623,8 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, backend_address_pool_id=None, inbound_nat_pool_id=None, health_probe=None, 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): + application_security_groups=None, ultra_ssd_enabled=None, proximity_placement_group=None, + terminate_notification=None): # Build IP configuration ip_configuration = { @@ -795,6 +796,15 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, if proximity_placement_group: vmss_properties['proximityPlacementGroup'] = {'id': proximity_placement_group} + if terminate_notification is not None: + scheduled_events_profile = { + 'terminateNotificationProfile': { + 'notBeforeTimeout': terminate_notification, + 'enable': 'true' + } + } + vmss_properties['virtualMachineProfile']['scheduledEventsProfile'] = scheduled_events_profile + vmss = { 'type': 'Microsoft.Compute/virtualMachineScaleSets', 'name': 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 09c46a19c92..32dd7a813a3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -1858,7 +1858,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image, assign_identity=None, identity_scope=None, identity_role='Contributor', 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): + proximity_placement_group=None, aux_subscriptions=None, terminate_notification=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 @@ -2062,7 +2062,8 @@ def _get_public_ip_address_allocation(value, sku): single_placement_group=single_placement_group, platform_fault_domain_count=platform_fault_domain_count, 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) + ultra_ssd_enabled=ultra_ssd_enabled, proximity_placement_group=proximity_placement_group, + terminate_notification=terminate_notification) vmss_resource['dependsOn'] = vmss_dependencies if plan_name: From 34fe68eab8cfaa5b9a46862c8ac15a2c9033a36b Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Tue, 3 Sep 2019 15:05:46 +0800 Subject: [PATCH 2/7] [Compute] vmss create/update: add --terminate-notification and --terminate-notification-time parameters to support terminate scheduled event configurability. Issue #10124 --- src/azure-cli/HISTORY.rst | 4 +- .../azure/cli/command_modules/vm/_params.py | 8 +- .../command_modules/vm/_template_builder.py | 6 +- .../cli/command_modules/vm/_validators.py | 15 + .../azure/cli/command_modules/vm/custom.py | 19 +- .../test_vmss_terminate_notification.yaml | 1832 +++++++++++++++++ .../vm/tests/latest/test_vm_commands.py | 40 + 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, 1922 insertions(+), 16 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 51b325b3f05..2370d009dc5 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -10,9 +10,9 @@ Release History * [BREAKING] When not specified, the default value for `--start-task-wait-for-success` on `az batch pool create` is now true (was false). * [BREAKING] The default value for Scope on AutoUserSpecification is now always Pool (was Task on Windows nodes, Pool on Linux nodes). This argument is not exposed via the commandline, but can be set in the `--json-file` arguments. -**VM** +**Compute** -* vmss create: --terminate-notification, add terminate scheduled event configurability +* vmss create/update: add --terminate-notification and --terminate-notification-time parameters to support terminate scheduled event configurability 2.0.72 ++++++ 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 afd90cf2862..eeb84011b86 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -501,6 +501,13 @@ def load_arguments(self, _): c.argument('protect_from_scale_in', arg_type=protection_policy_type, help="Protect the VM instance from scale-in operations.") c.argument('protect_from_scale_set_actions', arg_type=protection_policy_type, help="Protect the VM instance from scale set actions (including scale-in).") + for scope in ['vmss create', 'vmss update']: + with self.argument_context(scope) as c: + c.argument('terminate_notification', min_api='2019-03-01', arg_type=get_three_state_flag(), + help='Enable terminate notification') + c.argument('terminate_notification_time', min_api='2019-03-01', + help='Length of time (ISO 8601 format, e.g. PT5M) a notification to be sent to the VM on the instance metadata server till the VM gets deleted') + for scope, help_prefix in [('vmss update', 'Update the'), ('vmss wait', 'Wait on the')]: with self.argument_context(scope) as c: c.argument('instance_id', id_part='child_name_1', help="{0} VM instance with this ID. If missing, {0} VMSS.".format(help_prefix)) @@ -585,7 +592,6 @@ def load_arguments(self, _): c.argument('custom_data', help='Custom init script file or text (cloud-init, cloud-config, etc..)', completer=FilesCompleter(), type=file_type) 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.argument('terminate_notification', help='Terminate Scheduled Event. Configurable length of time a Virtual Machine being deleted will have to potentially approve the Terminate Scheduled Event before the event is auto approved (timed out). The configuration must be specified in ISO 8601 format. e.g. PT5M') c.ignore('aux_subscriptions') with self.argument_context(scope, arg_group='Authentication') as c: 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 4a3ba65c811..f71deab5936 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 @@ -624,7 +624,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=None): + terminate_notification=None, terminate_notification_time=None): # Build IP configuration ip_configuration = { @@ -799,8 +799,8 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, if terminate_notification is not None: scheduled_events_profile = { 'terminateNotificationProfile': { - 'notBeforeTimeout': terminate_notification, - 'enable': 'true' + 'notBeforeTimeout': terminate_notification_time, + 'enable': terminate_notification } } vmss_properties['virtualMachineProfile']['scheduledEventsProfile'] = scheduled_events_profile 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 d1802d8badd..ec3ed959996 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1489,3 +1489,18 @@ def process_vm_vmss_stop(cmd, namespace): # pylint: disable=unused-argument else: logger.warning("About to power off the specified VM...\nIt will continue to be billed. " "To deallocate a VM, run: az vm deallocate.") + + +def validate_terminate_notification(terminate_notification, terminate_notification_time): + """ + Validate terminate_notification and terminate_notification_time + :param terminate_notification: + :param terminate_notification_time: + :return: + """ + if terminate_notification is True: + if terminate_notification_time is None: + raise CLIError("usage error: missing --terminate_notification_time.") + else: + if terminate_notification_time is not None: + raise CLIError("usage error: please enable --terminate_notification") 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 32dd7a813a3..5ebfb4da9cd 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -19,7 +19,8 @@ from knack.log import get_logger from knack.util import CLIError -from azure.cli.command_modules.vm._validators import _get_resource_group_from_vault_name +from azure.cli.command_modules.vm._validators import (_get_resource_group_from_vault_name, + validate_terminate_notification) from azure.cli.core.commands.validators import validate_file_or_dict from azure.cli.core.commands import LongRunningOperation, DeploymentOutputLongRunningOperation @@ -1858,7 +1859,8 @@ def create_vmss(cmd, vmss_name, resource_group_name, image, assign_identity=None, identity_scope=None, identity_role='Contributor', 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=None): + proximity_placement_group=None, aux_subscriptions=None, terminate_notification=None, + terminate_notification_time=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 @@ -2048,6 +2050,8 @@ def _get_public_ip_address_allocation(value, sku): if secrets: secrets = _merge_secrets([validate_file_or_dict(secret) for secret in secrets]) + validate_terminate_notification(terminate_notification, terminate_notification_time) + vmss_resource = build_vmss_resource( cmd=cmd, name=vmss_name, naming_prefix=naming_prefix, location=location, tags=tags, overprovision=not disable_overprovision, upgrade_policy_mode=upgrade_policy_mode, vm_sku=vm_sku, @@ -2063,7 +2067,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=terminate_notification) + terminate_notification=terminate_notification, terminate_notification_time=terminate_notification_time) vmss_resource['dependsOn'] = vmss_dependencies if plan_name: @@ -2290,6 +2294,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, + terminate_notification=None, terminate_notification_time=None, **kwargs): vmss = kwargs['parameters'] client = _compute_client_factory(cmd.cli_ctx) @@ -2317,6 +2322,14 @@ def update_vmss(cmd, resource_group_name, name, license_type=None, no_wait=False if license_type is not None: vmss.virtual_machine_profile.license_type = license_type + # Terminate notification + validate_terminate_notification(terminate_notification, terminate_notification_time) + if terminate_notification is not None: + TerminateNotificationProfile = cmd.get_models('TerminateNotificationProfile') + vmss.virtual_machine_profile.scheduled_events_profile.terminate_notification_profile =\ + TerminateNotificationProfile(not_before_timeout=terminate_notification_time, + enable=terminate_notification) + 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_vmss_terminate_notification.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml new file mode 100644 index 00000000000..40bfc60dfdf --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml @@ -0,0 +1,1832 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T06:18:39Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '384' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:18:48 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": + \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n + \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n + \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": + \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": + \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": + {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n + \ \"sku\": \"7-RAW\",\n \"version\": \"latest\"\n },\n + \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": + \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n + \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n + \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n + \ \"version\": \"latest\"\n }\n },\n \"Windows\": + {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2016Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2008R2SP1\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n \"version\": + \"latest\"\n }\n }\n }\n }\n }\n}\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2501' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:18:49 GMT + etag: + - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" + expires: + - Tue, 03 Sep 2019 06:23:49 GMT + source-age: + - '0' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding, Accept-Encoding + via: + - 1.1 varnish + x-cache: + - MISS + x-cache-hits: + - '0' + x-content-type-options: + - nosniff + x-fastly-request-id: + - d905d99edbd9e3acb84eb398d4994afe55b6dc58 + x-frame-options: + - deny + x-geo-block-list: + - '' + x-github-request-id: + - BCDE:2EC5:13C15F:160D00:5D6E05C7 + x-served-by: + - cache-sin18020-SIN + x-timer: + - S1567491529.411914,VS0,VE303 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-network/4.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:18:49 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: 'b''{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "vm1VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "westus", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vm1Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"apiVersion": + "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vm1LBPublicIP", + "location": "westus", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": + "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", "name": "vm1LB", "location": + "westus", "tags": {}, "apiVersion": "2018-01-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET", + "Microsoft.Network/publicIpAddresses/vm1LBPublicIP"], "properties": {"backendAddressPools": + [{"name": "vm1LBBEPool"}], "inboundNatPools": [{"name": "vm1LBNatPool", "properties": + {"frontendIPConfiguration": {"id": "[concat(resourceId(\''Microsoft.Network/loadBalancers\'', + \''vm1LB\''), \''/frontendIPConfigurations/\'', \''loadBalancerFrontEnd\'')]"}, + "protocol": "tcp", "frontendPortRangeStart": "50000", "frontendPortRangeEnd": + "50119", "backendPort": 22}}], "frontendIPConfigurations": [{"name": "loadBalancerFrontEnd", + "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"}}}]}}, + {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vm1", "location": + "westus", "tags": {}, "apiVersion": "2019-03-01", "dependsOn": ["Microsoft.Network/virtualNetworks/vm1VNET", + "Microsoft.Network/loadBalancers/vm1LB"], "sku": {"name": "Standard_DS1_v2", + "capacity": 2}, "properties": {"overprovision": true, "upgradePolicy": {"mode": + "manual"}, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": + "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, + "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": + "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm125b22c", + "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}}}, + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm125b22cNic", + "properties": {"primary": "true", "ipConfigurations": [{"name": "vm125b22cIPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]}, + "scheduledEventsProfile": {"terminateNotificationProfile": {"notBeforeTimeout": + "PT5M", "enable": true}}}, "singlePlacementGroup": null}}], "outputs": {"VMSS": + {"type": "object", "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', + \''vm1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]"}}}, + "parameters": {}, "mode": "Incremental"}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + Content-Length: + - '4216' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --image --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","name":"vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","properties":{"templateHash":"10241001895895923439","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-03T06:18:55.4502096Z","duration":"PT2.8786301S","correlationId":"411e9b0a-fdfe-41a7-b75c-f8830bf82a34","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr/operationStatuses/08586341153529060548?api-version=2018-05-01 + cache-control: + - no-cache + content-length: + - '2628' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:18:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:19:27 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:19:59 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:20:30 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:21:00 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:21:30 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22:00 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","name":"vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","properties":{"templateHash":"10241001895895923439","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-03T06:21:46.5901961Z","duration":"PT2M54.0186166S","correlationId":"411e9b0a-fdfe-41a7-b75c-f8830bf82a34","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm125b22c","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm125b22cNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm125b22cIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"cf78128b-a137-4b08-b127-8e22c8950f3c"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '5846' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22: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 update + Connection: + - keep-alive + ParameterSetName: + - -g -n --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT5M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3332' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1275 + 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": "vm125b22c", + "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, + "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": "vm125b22cNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm125b22cIPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "scheduledEventsProfile": {"terminateNotificationProfile": + {"notBeforeTimeout": "PT8M", "enable": true}}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '2376' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\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/6d37486c-5508-4938-b2a0-c5236e0136ef?api-version=2019-03-01 + cache-control: + - no-cache + content-length: + - '3331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;295,Microsoft.Compute/VmssQueuedVMOperations;4800 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d37486c-5508-4938-b2a0-c5236e0136ef?api-version=2019-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-09-03T06:22:05.5532092+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"6d37486c-5508-4938-b2a0-c5236e0136ef\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29979 + 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d37486c-5508-4938-b2a0-c5236e0136ef?api-version=2019-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-09-03T06:22:05.5532092+00:00\",\r\n \"endTime\": + \"2019-09-03T06:22:18.147139+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"6d37486c-5508-4938-b2a0-c5236e0136ef\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '183' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29977 + 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 --terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3332' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22: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/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1273 + 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 --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3332' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22: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/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1272 + 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": "vm125b22c", + "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, + "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": "vm125b22cNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm125b22cIPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "scheduledEventsProfile": {"terminateNotificationProfile": + {"enable": false}}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss update + Connection: + - keep-alive + Content-Length: + - '2349' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": + \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\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/769ca48c-4bc9-4432-bbc8-3cd11914fd28?api-version=2019-03-01 + cache-control: + - no-cache + content-length: + - '3204' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:22: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/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;294,Microsoft.Compute/VmssQueuedVMOperations;4800 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + 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 --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/769ca48c-4bc9-4432-bbc8-3cd11914fd28?api-version=2019-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-09-03T06:22:58.0848297+00:00\",\r\n \"endTime\": + \"2019-09-03T06:22:58.2879593+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"769ca48c-4bc9-4432-bbc8-3cd11914fd28\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29975 + 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 --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3205' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1270 + 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 --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T06:18:39Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '384' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": + \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n + \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n + \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": + \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": + \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": + {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n + \ \"sku\": \"7-RAW\",\n \"version\": \"latest\"\n },\n + \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": + \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n + \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n + \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n + \ \"version\": \"latest\"\n }\n },\n \"Windows\": + {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2016Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2008R2SP1\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n \"version\": + \"latest\"\n }\n }\n }\n }\n }\n}\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2501' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:11 GMT + etag: + - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" + expires: + - Tue, 03 Sep 2019 06:28:11 GMT + source-age: + - '262' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding, Accept-Encoding + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 804fa23bdaf2d3c18c6621304c4fcd6ce8442d22 + x-frame-options: + - deny + x-geo-block-list: + - '' + x-github-request-id: + - BCDE:2EC5:13C15F:160D00:5D6E05C7 + x-served-by: + - cache-sin18024-SIN + x-timer: + - S1567491792.525841,VS0,VE0 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-network/4.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n + \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"710dd3b8-f125-48ff-ab8c-cbb708a81c6d\",\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_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n + \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\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_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/2/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n + \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2155' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 650cd4c7-0e87-4d54-bd69-4db4810d4798 + 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 --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2018-05-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T06:18:39Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '384' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python-requests/2.22.0 + method: GET + uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + response: + body: + string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n + \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": + {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": + \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": + {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n + \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n + \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": + \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n + \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n + \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": + \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": + \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": + \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": + {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n + \ \"sku\": \"7-RAW\",\n \"version\": \"latest\"\n },\n + \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": + \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n + \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n + \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n + \ \"version\": \"latest\"\n }\n },\n \"Windows\": + {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2016Datacenter\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": + \"latest\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": + \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": + \"2012-R2-Datacenter\",\n \"version\": \"latest\"\n },\n + \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n + \ \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\",\n + \ \"version\": \"latest\"\n },\n \"Win2008R2SP1\": + {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": + \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n \"version\": + \"latest\"\n }\n }\n }\n }\n }\n}\n" + headers: + accept-ranges: + - bytes + access-control-allow-origin: + - '*' + cache-control: + - max-age=300 + connection: + - keep-alive + content-length: + - '2501' + content-security-policy: + - default-src 'none'; style-src 'unsafe-inline'; sandbox + content-type: + - text/plain; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:13 GMT + etag: + - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" + expires: + - Tue, 03 Sep 2019 06:28:13 GMT + source-age: + - '264' + strict-transport-security: + - max-age=31536000 + vary: + - Authorization,Accept-Encoding, Accept-Encoding + via: + - 1.1 varnish + x-cache: + - HIT + x-cache-hits: + - '1' + x-content-type-options: + - nosniff + x-fastly-request-id: + - 1d8757f0944b115e71a090e46decbd5292066123 + x-frame-options: + - deny + x-geo-block-list: + - '' + x-github-request-id: + - BCDE:2EC5:13C15F:160D00:5D6E05C7 + x-served-by: + - cache-sin18022-SIN + x-timer: + - S1567491794.555061,VS0,VE0 + x-xss-protection: + - 1; mode=block + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-network/4.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + response: + body: + string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n + \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": + \"Succeeded\",\r\n \"resourceGuid\": \"710dd3b8-f125-48ff-ab8c-cbb708a81c6d\",\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_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n + \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\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_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/2/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n + \ }\r\n ]\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n + \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": + false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n ]\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2155' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23: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-arm-service-request-id: + - 39a458f6-b2c6-4a7d-8951-63116ec01f8e + 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 --terminate-notification + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3205' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1269 + 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 --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + response: + body: + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm125b22c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": + \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3205' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 03 Sep 2019 06:23:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;189,Microsoft.Compute/GetVMScaleSet30Min;1268 + 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 c40c8c6243c..3ee28b7957b 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 @@ -3369,5 +3369,45 @@ def test_dedicated_host_get_instance_view(self, resource_group, resource_group_l # endregion +class VMSSTerminateNotificationScenarioTest(ScenarioTest): + + @ResourceGroupPreparer(name_prefix='cli_test_vmss_terminate_notification_') + def test_vmss_terminate_notification(self, resource_group): + update_enable_key = 'virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile.enable' + update_not_before_timeout_key = 'virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile.notBeforeTimeout' + create_enable_key = 'vmss.' + update_enable_key + create_not_before_timeout_key = 'vmss.' + update_not_before_timeout_key + + # Create, enable terminate notification + self.cmd('vmss create -g {rg} -n vm1 --image UbuntuLTS --terminate-notification --terminate-notification-time PT5M', + checks=[ + self.check(create_enable_key, True), + self.check(create_not_before_timeout_key, 'PT5M') + ]) + + # Update, enable terminate notification + self.cmd('vmss update -g {rg} -n vm1 --terminate-notification --terminate-notification-time PT8M', + checks=[ + self.check(update_enable_key, True), + self.check(update_not_before_timeout_key, 'PT8M') + ]) + + # Update, disable terminate notification + self.cmd('vmss update -g {rg} -n vm1 --terminate-notification false', + checks=[ + self.check('virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile', None) + ]) + + # Parameter validation, the following commands should fail + with self.assertRaises(CLIError): + self.cmd('vmss create -g {rg} -n vm1 --image UbuntuLTS --terminate-notification') + with self.assertRaises(CLIError): + self.cmd('vmss create -g {rg} -n vm1 --image UbuntuLTS --terminate-notification-time PT5M') + with self.assertRaises(CLIError): + self.cmd('vmss update -g {rg} -n vm1 --terminate-notification') + with self.assertRaises(CLIError): + self.cmd('vmss update -g {rg} -n vm1 --terminate-notification-time PT5M') + + if __name__ == '__main__': unittest.main() diff --git a/src/azure-cli/requirements.py2.Darwin.txt b/src/azure-cli/requirements.py2.Darwin.txt index aca0a74a37d..ee44d0ad8db 100644 --- a/src/azure-cli/requirements.py2.Darwin.txt +++ b/src/azure-cli/requirements.py2.Darwin.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==6.0.0 +azure-mgmt-compute==7.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc5 diff --git a/src/azure-cli/requirements.py2.Linux.txt b/src/azure-cli/requirements.py2.Linux.txt index aca0a74a37d..ee44d0ad8db 100644 --- a/src/azure-cli/requirements.py2.Linux.txt +++ b/src/azure-cli/requirements.py2.Linux.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==6.0.0 +azure-mgmt-compute==7.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc5 diff --git a/src/azure-cli/requirements.py2.windows.txt b/src/azure-cli/requirements.py2.windows.txt index 787da8ad776..2f8a534446c 100644 --- a/src/azure-cli/requirements.py2.windows.txt +++ b/src/azure-cli/requirements.py2.windows.txt @@ -25,7 +25,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==6.0.0 +azure-mgmt-compute==7.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc5 diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index c940a0ca3dd..22f11f7d866 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.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==6.0.0 +azure-mgmt-compute==7.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc5 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index c940a0ca3dd..22f11f7d866 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.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==6.0.0 +azure-mgmt-compute==7.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc5 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 40445e4a47d..acb13a9ed2f 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -25,7 +25,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==6.0.0 +azure-mgmt-compute==7.0.0 azure-mgmt-consumption==2.0.0 azure-mgmt-containerinstance==1.5.0 azure-mgmt-containerregistry==3.0.0rc5 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 53146376b61..1e93fa4d5e5 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -74,7 +74,7 @@ 'azure-mgmt-botservice~=0.2.0', 'azure-mgmt-cdn~=3.1', 'azure-mgmt-cognitiveservices~=5.0.0', - 'azure-mgmt-compute~=6.0', + 'azure-mgmt-compute~=7.0', 'azure-mgmt-consumption~=2.0', 'azure-mgmt-containerinstance~=1.4', 'azure-mgmt-containerregistry~=3.0.0rc5', From e74c03437c2a6b7eaabc357d4640277bb8fd0fbd Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Tue, 3 Sep 2019 17:12:19 +0800 Subject: [PATCH 3/7] add yaml file --- .../test_vmss_terminate_notification.yaml | 331 ++++++++---------- 1 file changed, 140 insertions(+), 191 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml index 40bfc60dfdf..ba2f5e4535e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml @@ -18,19 +18,19 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T06:18:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T09:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '384' + - '428' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:18:48 GMT + - Tue, 03 Sep 2019 09:05:42 GMT expires: - '-1' pragma: @@ -109,13 +109,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 03 Sep 2019 06:18:49 GMT + - Tue, 03 Sep 2019 09:05:42 GMT etag: - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" expires: - - Tue, 03 Sep 2019 06:23:49 GMT + - Tue, 03 Sep 2019 09:10:42 GMT source-age: - - '0' + - '80' 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: - - d905d99edbd9e3acb84eb398d4994afe55b6dc58 + - ffaec67141c3d5e24782e49a3f03243ef0f5ffcd x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - BCDE:2EC5:13C15F:160D00:5D6E05C7 + - F19A:0BE2:438942:486CB1:5D6E2C94 x-served-by: - - cache-sin18020-SIN + - cache-sin18027-SIN x-timer: - - S1567491529.411914,VS0,VE303 + - S1567501543.844541,VS0,VE0 x-xss-protection: - 1; mode=block status: @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:18:49 GMT + - Tue, 03 Sep 2019 09:05:43 GMT expires: - '-1' pragma: @@ -215,12 +215,12 @@ interactions: "manual"}, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": - "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm125b22c", + "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm11ef498", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm125b22cNic", - "properties": {"primary": "true", "ipConfigurations": [{"name": "vm125b22cIPConfig", + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm11ef498Nic", + "properties": {"primary": "true", "ipConfigurations": [{"name": "vm11ef498IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]}, @@ -250,21 +250,21 @@ interactions: accept-language: - en-US method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","name":"vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","properties":{"templateHash":"10241001895895923439","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-03T06:18:55.4502096Z","duration":"PT2.8786301S","correlationId":"411e9b0a-fdfe-41a7-b75c-f8830bf82a34","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","name":"vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1880925606329611132","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-03T09:05:48.3193552Z","duration":"PT2.4800363S","correlationId":"0211715a-77a3-4a2c-915f-7d49f5076359","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr/operationStatuses/08586341153529060548?api-version=2018-05-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI/operationStatuses/08586341053396383053?api-version=2019-05-10 cache-control: - no-cache content-length: - - '2628' + - '2668' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:18:56 GMT + - Tue, 03 Sep 2019 09:05:49 GMT expires: - '-1' pragma: @@ -274,7 +274,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -295,7 +295,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -307,7 +307,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:19:27 GMT + - Tue, 03 Sep 2019 09:06:20 GMT expires: - '-1' pragma: @@ -338,7 +338,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -350,7 +350,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:19:59 GMT + - Tue, 03 Sep 2019 09:06:51 GMT expires: - '-1' pragma: @@ -381,7 +381,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -393,7 +393,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:20:30 GMT + - Tue, 03 Sep 2019 09:07:22 GMT expires: - '-1' pragma: @@ -424,7 +424,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -436,7 +436,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:21:00 GMT + - Tue, 03 Sep 2019 09:07:52 GMT expires: - '-1' pragma: @@ -467,7 +467,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -479,7 +479,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:21:30 GMT + - Tue, 03 Sep 2019 09:08:23 GMT expires: - '-1' pragma: @@ -510,7 +510,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341153529060548?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 response: body: string: '{"status":"Succeeded"}' @@ -522,7 +522,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:00 GMT + - Tue, 03 Sep 2019 09:08:53 GMT expires: - '-1' pragma: @@ -553,20 +553,20 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","name":"vmss_deploy_b0P48H7WLMCErBJBHFfw2XKoJ3RF6iVr","properties":{"templateHash":"10241001895895923439","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-03T06:21:46.5901961Z","duration":"PT2M54.0186166S","correlationId":"411e9b0a-fdfe-41a7-b75c-f8830bf82a34","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm125b22c","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm125b22cNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm125b22cIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"cf78128b-a137-4b08-b127-8e22c8950f3c"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","name":"vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1880925606329611132","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-03T09:08:26.9763132Z","duration":"PT2M41.1369943S","correlationId":"0211715a-77a3-4a2c-915f-7d49f5076359","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm11ef498","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm11ef498Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm11ef498IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' headers: cache-control: - no-cache content-length: - - '5846' + - '5886' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:01 GMT + - Tue, 03 Sep 2019 09:08:54 GMT expires: - '-1' pragma: @@ -608,7 +608,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -622,12 +622,12 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT5M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -636,7 +636,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:03 GMT + - Tue, 03 Sep 2019 09:08:55 GMT expires: - '-1' pragma: @@ -653,14 +653,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1275 + - Microsoft.Compute/GetVMScaleSet3Min;195,Microsoft.Compute/GetVMScaleSet30Min;1291 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": "vm125b22c", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm11ef498", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -668,8 +668,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm125b22cNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm125b22cIPConfig", + [{"name": "vm11ef498Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm11ef498IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -707,7 +707,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -721,17 +721,17 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\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/6d37486c-5508-4938-b2a0-c5236e0136ef?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/4b884350-711b-4256-8e96-ee8441e169f2?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -739,7 +739,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:07 GMT + - Tue, 03 Sep 2019 09:08:58 GMT expires: - '-1' pragma: @@ -756,7 +756,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;295,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;298,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - '1198' x-ms-request-charge: @@ -781,20 +781,21 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d37486c-5508-4938-b2a0-c5236e0136ef?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/4b884350-711b-4256-8e96-ee8441e169f2?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-03T06:22:05.5532092+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"6d37486c-5508-4938-b2a0-c5236e0136ef\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-03T09:08:57.58787+00:00\",\r\n \"endTime\": + \"2019-09-03T09:08:57.7753794+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"4b884350-711b-4256-8e96-ee8441e169f2\"\r\n}" headers: cache-control: - no-cache content-length: - - '134' + - '182' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:17 GMT + - Tue, 03 Sep 2019 09:09:09 GMT expires: - '-1' pragma: @@ -811,59 +812,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29979 - 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 --terminate-notification --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/6d37486c-5508-4938-b2a0-c5236e0136ef?api-version=2019-03-01 - response: - body: - string: "{\r\n \"startTime\": \"2019-09-03T06:22:05.5532092+00:00\",\r\n \"endTime\": - \"2019-09-03T06:22:18.147139+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"6d37486c-5508-4938-b2a0-c5236e0136ef\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '183' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 03 Sep 2019 06:22:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29977 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29995 status: code: 200 message: OK @@ -893,7 +842,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -907,12 +856,12 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -921,7 +870,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:55 GMT + - Tue, 03 Sep 2019 09:09:09 GMT expires: - '-1' pragma: @@ -938,7 +887,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1273 + - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1289 status: code: 200 message: OK @@ -970,7 +919,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -984,12 +933,12 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -998,7 +947,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:56 GMT + - Tue, 03 Sep 2019 09:09:10 GMT expires: - '-1' pragma: @@ -1015,14 +964,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1272 + - Microsoft.Compute/GetVMScaleSet3Min;192,Microsoft.Compute/GetVMScaleSet30Min;1288 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": "vm125b22c", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm11ef498", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -1030,8 +979,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm125b22cNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm125b22cIPConfig", + [{"name": "vm11ef498Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm11ef498IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -1069,7 +1018,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -1083,15 +1032,15 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\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/769ca48c-4bc9-4432-bbc8-3cd11914fd28?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a1ccb023-b813-46bd-aca6-600b449f9f7a?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -1099,7 +1048,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:22:58 GMT + - Tue, 03 Sep 2019 09:09:13 GMT expires: - '-1' pragma: @@ -1116,9 +1065,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;294,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;297,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' x-ms-request-charge: - '0' status: @@ -1141,12 +1090,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/769ca48c-4bc9-4432-bbc8-3cd11914fd28?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a1ccb023-b813-46bd-aca6-600b449f9f7a?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-03T06:22:58.0848297+00:00\",\r\n \"endTime\": - \"2019-09-03T06:22:58.2879593+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"769ca48c-4bc9-4432-bbc8-3cd11914fd28\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-03T09:09:12.4473275+00:00\",\r\n \"endTime\": + \"2019-09-03T09:09:12.6192077+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"a1ccb023-b813-46bd-aca6-600b449f9f7a\"\r\n}" headers: cache-control: - no-cache @@ -1155,7 +1104,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:10 GMT + - Tue, 03 Sep 2019 09:09:23 GMT expires: - '-1' pragma: @@ -1172,7 +1121,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29975 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29993 status: code: 200 message: OK @@ -1202,7 +1151,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -1216,10 +1165,10 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1228,7 +1177,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:10 GMT + - Tue, 03 Sep 2019 09:09:23 GMT expires: - '-1' pragma: @@ -1245,7 +1194,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1270 + - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1286 status: code: 200 message: OK @@ -1268,19 +1217,19 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T06:18:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T09:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '384' + - '428' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:10 GMT + - Tue, 03 Sep 2019 09:09:24 GMT expires: - '-1' pragma: @@ -1359,13 +1308,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:11 GMT + - Tue, 03 Sep 2019 09:09:25 GMT etag: - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" expires: - - Tue, 03 Sep 2019 06:28:11 GMT + - Tue, 03 Sep 2019 09:14:25 GMT source-age: - - '262' + - '0' strict-transport-security: - max-age=31536000 vary: @@ -1373,23 +1322,23 @@ interactions: via: - 1.1 varnish x-cache: - - HIT + - MISS x-cache-hits: - - '1' + - '0' x-content-type-options: - nosniff x-fastly-request-id: - - 804fa23bdaf2d3c18c6621304c4fcd6ce8442d22 + - 0a7888abc1bd373b42526a5e5d29c6552de80e22 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - BCDE:2EC5:13C15F:160D00:5D6E05C7 + - D710:2D55:3E8331:434853:5D6E2DC5 x-served-by: - - cache-sin18024-SIN + - cache-sin18043-SIN x-timer: - - S1567491792.525841,VS0,VE0 + - S1567501765.418596,VS0,VE240 x-xss-protection: - 1; mode=block status: @@ -1419,18 +1368,18 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n - \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"710dd3b8-f125-48ff-ab8c-cbb708a81c6d\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"3427d6eb-5815-4b5c-93d0-77d2a8a0f45c\",\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_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n - \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\r\n + \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\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_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/2/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/3/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": @@ -1443,7 +1392,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:11 GMT + - Tue, 03 Sep 2019 09:09:26 GMT expires: - '-1' pragma: @@ -1460,7 +1409,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 650cd4c7-0e87-4d54-bd69-4db4810d4798 + - abe2d145-00ff-4f58-99f8-5a5281583ea2 status: code: 200 message: OK @@ -1483,19 +1432,19 @@ interactions: accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2018-05-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T06:18:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T09:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '384' + - '428' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:13 GMT + - Tue, 03 Sep 2019 09:09:26 GMT expires: - '-1' pragma: @@ -1574,13 +1523,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:13 GMT + - Tue, 03 Sep 2019 09:09:27 GMT etag: - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" expires: - - Tue, 03 Sep 2019 06:28:13 GMT + - Tue, 03 Sep 2019 09:14:27 GMT source-age: - - '264' + - '2' strict-transport-security: - max-age=31536000 vary: @@ -1594,17 +1543,17 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 1d8757f0944b115e71a090e46decbd5292066123 + - 7f2267c23decf14a7cd39d1f590396ed1c1db133 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - BCDE:2EC5:13C15F:160D00:5D6E05C7 + - D710:2D55:3E8331:434853:5D6E2DC5 x-served-by: - - cache-sin18022-SIN + - cache-sin18032-SIN x-timer: - - S1567491794.555061,VS0,VE0 + - S1567501767.456456,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -1634,18 +1583,18 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n - \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"710dd3b8-f125-48ff-ab8c-cbb708a81c6d\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"3427d6eb-5815-4b5c-93d0-77d2a8a0f45c\",\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_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n - \ \"etag\": \"W/\\\"2eab97a7-4ddf-4847-a775-e53b9aa54726\\\"\",\r\n + \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\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_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/2/networkInterfaces/vm125b22cNic/ipConfigurations/vm125b22cIPConfig\"\r\n + [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n + \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/3/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n \ }\r\n ]\r\n },\r\n \"type\": \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": @@ -1658,7 +1607,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:13 GMT + - Tue, 03 Sep 2019 09:09:27 GMT expires: - '-1' pragma: @@ -1675,7 +1624,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 39a458f6-b2c6-4a7d-8951-63116ec01f8e + - 004c8c3a-6d74-4319-83ff-2de1364f96b9 status: code: 200 message: OK @@ -1707,7 +1656,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -1721,10 +1670,10 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1733,7 +1682,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:14 GMT + - Tue, 03 Sep 2019 09:09:29 GMT expires: - '-1' pragma: @@ -1750,7 +1699,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1269 + - Microsoft.Compute/GetVMScaleSet3Min;189,Microsoft.Compute/GetVMScaleSet30Min;1285 status: code: 200 message: OK @@ -1782,7 +1731,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm125b22c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm11ef498\",\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\": @@ -1796,10 +1745,10 @@ interactions: \ \"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\":\"vm125b22cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm125b22cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"cf78128b-a137-4b08-b127-8e22c8950f3c\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1808,7 +1757,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 06:23:14 GMT + - Tue, 03 Sep 2019 09:09:29 GMT expires: - '-1' pragma: @@ -1825,7 +1774,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;189,Microsoft.Compute/GetVMScaleSet30Min;1268 + - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1284 status: code: 200 message: OK From 2e5ce5bdf7caf14398041d21f05a6c8e2ccf17be Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Fri, 6 Sep 2019 15:20:06 +0800 Subject: [PATCH 4/7] Fix problems in reviews --- src/azure-cli/HISTORY.rst | 4 +- .../azure/cli/command_modules/vm/_params.py | 5 +- .../command_modules/vm/_template_builder.py | 6 +- .../cli/command_modules/vm/_validators.py | 20 +- .../azure/cli/command_modules/vm/custom.py | 18 +- .../test_vmss_terminate_notification.yaml | 888 ++++++++---------- .../vm/tests/latest/test_vm_commands.py | 26 +- 7 files changed, 418 insertions(+), 549 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 6b9423396c2..7cde02fff1c 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -23,7 +23,9 @@ Release History **Compute** -* vmss create/update: Add --terminate-notification and --terminate-notification-time parameters to support terminate scheduled event configurability. +* vmss create: Add --terminate-notification-time parameters to support terminate scheduled event configurability. +* vmss update: Add --enable-terminate-notification and --terminate-notification-time parameters to support terminate scheduled event configurability. +* Update azure-mgmt-compute version to 7.0.0. **HDInsight** 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 eeb84011b86..c2f85891d34 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -475,6 +475,7 @@ def load_arguments(self, _): 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) + with self.argument_context('vmss create', arg_group='Network Balancer') as c: LoadBalancerSkuName = self.get_models('LoadBalancerSkuName', resource_type=ResourceType.MGMT_NETWORK) c.argument('application_gateway', help='Name to use when creating a new application gateway (default) or referencing an existing one. Can also reference an existing application gateway by ID or specify "" for none.', options_list=['--app-gateway']) @@ -500,11 +501,11 @@ def load_arguments(self, _): c.argument('protect_from_scale_in', arg_type=protection_policy_type, help="Protect the VM instance from scale-in operations.") c.argument('protect_from_scale_set_actions', arg_type=protection_policy_type, help="Protect the VM instance from scale set actions (including scale-in).") + c.argument('enable_terminate_notification', min_api='2019-03-01', arg_type=get_three_state_flag(), + help='Enable terminate notification') for scope in ['vmss create', 'vmss update']: with self.argument_context(scope) as c: - c.argument('terminate_notification', min_api='2019-03-01', arg_type=get_three_state_flag(), - help='Enable terminate notification') c.argument('terminate_notification_time', min_api='2019-03-01', help='Length of time (ISO 8601 format, e.g. PT5M) a notification to be sent to the VM on the instance metadata server till the VM gets deleted') 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 f71deab5936..81432ba4863 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 @@ -624,7 +624,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=None, terminate_notification_time=None): + terminate_notification_time=None): # Build IP configuration ip_configuration = { @@ -796,11 +796,11 @@ def build_vmss_resource(cmd, name, naming_prefix, location, tags, overprovision, if proximity_placement_group: vmss_properties['proximityPlacementGroup'] = {'id': proximity_placement_group} - if terminate_notification is not None: + if terminate_notification_time is not None: scheduled_events_profile = { 'terminateNotificationProfile': { 'notBeforeTimeout': terminate_notification_time, - 'enable': terminate_notification + 'enable': 'true' } } vmss_properties['virtualMachineProfile']['scheduledEventsProfile'] = scheduled_events_profile 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 ec3ed959996..ba99d3bf5fe 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1306,6 +1306,7 @@ def validate_vmss_update_namespace(cmd, namespace): # pylint: disable=unused-ar if namespace.protect_from_scale_in is not None or namespace.protect_from_scale_set_actions is not None: raise CLIError("usage error: protection policies can only be applied to VM instances within a VMSS." " Please use --instance-id to specify a VM instance") + _validate_vmss_terminate_notification(cmd, namespace) # endregion @@ -1491,16 +1492,13 @@ def process_vm_vmss_stop(cmd, namespace): # pylint: disable=unused-argument "To deallocate a VM, run: az vm deallocate.") -def validate_terminate_notification(terminate_notification, terminate_notification_time): +def _validate_vmss_terminate_notification(cmd, namespace): """ - Validate terminate_notification and terminate_notification_time - :param terminate_notification: - :param terminate_notification_time: - :return: + Validate vmss update enable_terminate_notification and terminate_notification_time. + If terminate_notification_time is specified, enable_terminate_notification should not be false + If enable_terminate_notification is true, must specify terminate_notification_time """ - if terminate_notification is True: - if terminate_notification_time is None: - raise CLIError("usage error: missing --terminate_notification_time.") - else: - if terminate_notification_time is not None: - raise CLIError("usage error: please enable --terminate_notification") + if namespace.enable_terminate_notification is False and namespace.terminate_notification_time is not None: + raise CLIError("usage error: please enable --enable-terminate-notification") + if namespace.enable_terminate_notification is True and namespace.terminate_notification_time is None: + raise CLIError("usage error: please set --terminate-notification-time") 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 5ebfb4da9cd..6b38e9f283b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -19,8 +19,7 @@ from knack.log import get_logger from knack.util import CLIError -from azure.cli.command_modules.vm._validators import (_get_resource_group_from_vault_name, - validate_terminate_notification) +from azure.cli.command_modules.vm._validators import _get_resource_group_from_vault_name from azure.cli.core.commands.validators import validate_file_or_dict from azure.cli.core.commands import LongRunningOperation, DeploymentOutputLongRunningOperation @@ -1859,8 +1858,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image, assign_identity=None, identity_scope=None, identity_role='Contributor', 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=None, - terminate_notification_time=None): + proximity_placement_group=None, aux_subscriptions=None, terminate_notification_time=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 @@ -2050,8 +2048,6 @@ def _get_public_ip_address_allocation(value, sku): if secrets: secrets = _merge_secrets([validate_file_or_dict(secret) for secret in secrets]) - validate_terminate_notification(terminate_notification, terminate_notification_time) - vmss_resource = build_vmss_resource( cmd=cmd, name=vmss_name, naming_prefix=naming_prefix, location=location, tags=tags, overprovision=not disable_overprovision, upgrade_policy_mode=upgrade_policy_mode, vm_sku=vm_sku, @@ -2067,7 +2063,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=terminate_notification, terminate_notification_time=terminate_notification_time) + terminate_notification_time=terminate_notification_time) vmss_resource['dependsOn'] = vmss_dependencies if plan_name: @@ -2294,7 +2290,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, - terminate_notification=None, terminate_notification_time=None, + enable_terminate_notification=None, terminate_notification_time=None, **kwargs): vmss = kwargs['parameters'] client = _compute_client_factory(cmd.cli_ctx) @@ -2322,13 +2318,11 @@ def update_vmss(cmd, resource_group_name, name, license_type=None, no_wait=False if license_type is not None: vmss.virtual_machine_profile.license_type = license_type - # Terminate notification - validate_terminate_notification(terminate_notification, terminate_notification_time) - if terminate_notification is not None: + if enable_terminate_notification is not None or terminate_notification_time is not None: TerminateNotificationProfile = cmd.get_models('TerminateNotificationProfile') vmss.virtual_machine_profile.scheduled_events_profile.terminate_notification_profile =\ TerminateNotificationProfile(not_before_timeout=terminate_notification_time, - enable=terminate_notification) + enable=enable_terminate_notification) 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_vmss_terminate_notification.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml index ba2f5e4535e..00c40bb273e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml @@ -11,7 +11,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T09:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-06T06:40:09Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:05:42 GMT + - Fri, 06 Sep 2019 06:40:17 GMT expires: - '-1' pragma: @@ -109,13 +109,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 03 Sep 2019 09:05:42 GMT + - Fri, 06 Sep 2019 06:40:18 GMT etag: - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" expires: - - Tue, 03 Sep 2019 09:10:42 GMT + - Fri, 06 Sep 2019 06:45:18 GMT source-age: - - '80' + - '0' strict-transport-security: - max-age=31536000 vary: @@ -123,23 +123,23 @@ interactions: via: - 1.1 varnish x-cache: - - HIT + - MISS x-cache-hits: - - '1' + - '0' x-content-type-options: - nosniff x-fastly-request-id: - - ffaec67141c3d5e24782e49a3f03243ef0f5ffcd + - 280da1864c7200d9a818981777d73c10a4c332c7 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - F19A:0BE2:438942:486CB1:5D6E2C94 + - 6952:1D65:34E2F:3C29F:5D71FF52 x-served-by: - - cache-sin18027-SIN + - cache-sin18050-SIN x-timer: - - S1567501543.844541,VS0,VE0 + - S1567752018.245712,VS0,VE317 x-xss-protection: - 1; mode=block status: @@ -157,7 +157,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-network/4.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:05:43 GMT + - Fri, 06 Sep 2019 06:40:18 GMT expires: - '-1' pragma: @@ -215,17 +215,17 @@ interactions: "manual"}, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": - "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm11ef498", + "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm186e88c", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm11ef498Nic", - "properties": {"primary": "true", "ipConfigurations": [{"name": "vm11ef498IPConfig", + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm186e88cNic", + "properties": {"primary": "true", "ipConfigurations": [{"name": "vm186e88cIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]}, "scheduledEventsProfile": {"terminateNotificationProfile": {"notBeforeTimeout": - "PT5M", "enable": true}}}, "singlePlacementGroup": null}}], "outputs": {"VMSS": + "PT5M", "enable": "true"}}}, "singlePlacementGroup": null}}], "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(\''Microsoft.Compute/virtualMachineScaleSets\'', \''vm1\''),providers(\''Microsoft.Compute\'', \''virtualMachineScaleSets\'').apiVersions[0])]"}}}, "parameters": {}, "mode": "Incremental"}}''' @@ -239,11 +239,11 @@ interactions: Connection: - keep-alive Content-Length: - - '4216' + - '4218' Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -253,10 +253,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","name":"vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1880925606329611132","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-03T09:05:48.3193552Z","duration":"PT2.4800363S","correlationId":"0211715a-77a3-4a2c-915f-7d49f5076359","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","name":"vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16739845815449888997","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-06T06:40:24.2637346Z","duration":"PT2.899115S","correlationId":"b4c18d01-684e-4012-b9e6-0607d5efa85a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI/operationStatuses/08586341053396383053?api-version=2019-05-10 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja/operationStatuses/08586338548641130019?api-version=2019-05-10 cache-control: - no-cache content-length: @@ -264,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:05:49 GMT + - Fri, 06 Sep 2019 06:40:24 GMT expires: - '-1' pragma: @@ -274,7 +274,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -290,12 +290,98 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Sep 2019 06:40:55 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 --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Sep 2019 06:41:27 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 --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -307,7 +393,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:06:20 GMT + - Fri, 06 Sep 2019 06:41:57 GMT expires: - '-1' pragma: @@ -333,12 +419,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -350,7 +436,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:06:51 GMT + - Fri, 06 Sep 2019 06:42:27 GMT expires: - '-1' pragma: @@ -376,12 +462,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -393,7 +479,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:07:22 GMT + - Fri, 06 Sep 2019 06:42:58 GMT expires: - '-1' pragma: @@ -419,12 +505,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -436,7 +522,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:07:52 GMT + - Fri, 06 Sep 2019 06:43:28 GMT expires: - '-1' pragma: @@ -462,12 +548,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -479,7 +565,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:08:23 GMT + - Fri, 06 Sep 2019 06:43:58 GMT expires: - '-1' pragma: @@ -505,12 +591,12 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586341053396383053?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 response: body: string: '{"status":"Succeeded"}' @@ -522,7 +608,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:08:53 GMT + - Fri, 06 Sep 2019 06:44:29 GMT expires: - '-1' pragma: @@ -548,7 +634,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification --terminate-notification-time + - -g -n --image --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -556,17 +642,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","name":"vmss_deploy_RzBdxk8w8eMAuPIwztOrOObb7THB3RUI","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1880925606329611132","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-03T09:08:26.9763132Z","duration":"PT2M41.1369943S","correlationId":"0211715a-77a3-4a2c-915f-7d49f5076359","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm11ef498","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm11ef498Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm11ef498IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","name":"vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16739845815449888997","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-06T06:44:26.463735Z","duration":"PT4M5.0991154S","correlationId":"b4c18d01-684e-4012-b9e6-0607d5efa85a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm186e88c","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm186e88cNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm186e88cIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"41e6f6f0-7603-4422-b5cc-08427bf48cf1"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' headers: cache-control: - no-cache content-length: - - '5886' + - '5885' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:08:54 GMT + - Fri, 06 Sep 2019 06:44:30 GMT expires: - '-1' pragma: @@ -592,7 +678,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification --terminate-notification-time + - -g -n --enable-terminate-notification --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -608,7 +694,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -622,12 +708,12 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT5M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -636,7 +722,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:08:55 GMT + - Fri, 06 Sep 2019 06:44:31 GMT expires: - '-1' pragma: @@ -653,14 +739,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;195,Microsoft.Compute/GetVMScaleSet30Min;1291 + - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1296 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": "vm11ef498", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm186e88c", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -668,8 +754,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm11ef498Nic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm11ef498IPConfig", + [{"name": "vm186e88cNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm186e88cIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -691,7 +777,7 @@ interactions: Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -g -n --terminate-notification --terminate-notification-time + - -g -n --enable-terminate-notification --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -707,7 +793,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -721,17 +807,17 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\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/4b884350-711b-4256-8e96-ee8441e169f2?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/255a7075-eaf1-401d-8aea-4480779da13d?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -739,7 +825,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:08:58 GMT + - Fri, 06 Sep 2019 06:44:33 GMT expires: - '-1' pragma: @@ -758,7 +844,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;298,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-ms-request-charge: - '0' status: @@ -776,26 +862,77 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification --terminate-notification-time + - -g -n --enable-terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/255a7075-eaf1-401d-8aea-4480779da13d?api-version=2019-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-09-06T06:44:32.8557427+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"255a7075-eaf1-401d-8aea-4480779da13d\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Fri, 06 Sep 2019 06:44:44 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;29996 + 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 --enable-terminate-notification --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/4b884350-711b-4256-8e96-ee8441e169f2?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/255a7075-eaf1-401d-8aea-4480779da13d?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-03T09:08:57.58787+00:00\",\r\n \"endTime\": - \"2019-09-03T09:08:57.7753794+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"4b884350-711b-4256-8e96-ee8441e169f2\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-06T06:44:32.8557427+00:00\",\r\n \"endTime\": + \"2019-09-06T06:45:06.9968462+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"255a7075-eaf1-401d-8aea-4480779da13d\"\r\n}" headers: cache-control: - no-cache content-length: - - '182' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:09 GMT + - Fri, 06 Sep 2019 06:45:21 GMT expires: - '-1' pragma: @@ -812,7 +949,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29995 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29994 status: code: 200 message: OK @@ -828,7 +965,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification --terminate-notification-time + - -g -n --enable-terminate-notification --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -842,7 +979,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -856,12 +993,12 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -870,7 +1007,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:09 GMT + - Fri, 06 Sep 2019 06:45:22 GMT expires: - '-1' pragma: @@ -887,7 +1024,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1289 + - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1294 status: code: 200 message: OK @@ -903,7 +1040,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification + - -g -n --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -919,7 +1056,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -933,12 +1070,12 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -947,7 +1084,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:10 GMT + - Fri, 06 Sep 2019 06:45:22 GMT expires: - '-1' pragma: @@ -964,14 +1101,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;192,Microsoft.Compute/GetVMScaleSet30Min;1288 + - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1293 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": "vm11ef498", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm186e88c", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -979,14 +1116,14 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm11ef498Nic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm11ef498IPConfig", + [{"name": "vm186e88cNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm186e88cIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}], "enableIPForwarding": false}}]}, "scheduledEventsProfile": {"terminateNotificationProfile": - {"enable": false}}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + {"notBeforeTimeout": "PT9M"}}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": false, "singlePlacementGroup": true}}''' headers: Accept: @@ -998,11 +1135,11 @@ interactions: Connection: - keep-alive Content-Length: - - '2349' + - '2360' Content-Type: - application/json; charset=utf-8 ParameterSetName: - - -g -n --terminate-notification + - -g -n --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -1018,7 +1155,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -1032,23 +1169,25 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n - \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": - \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\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/a1ccb023-b813-46bd-aca6-600b449f9f7a?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3301a5bf-7355-480a-af26-c91558b2d7b2?api-version=2019-03-01 cache-control: - no-cache content-length: - - '3204' + - '3331' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:13 GMT + - Fri, 06 Sep 2019 06:45:25 GMT expires: - '-1' pragma: @@ -1067,7 +1206,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;297,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-ms-request-charge: - '0' status: @@ -1085,17 +1224,17 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification + - -g -n --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/a1ccb023-b813-46bd-aca6-600b449f9f7a?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3301a5bf-7355-480a-af26-c91558b2d7b2?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-03T09:09:12.4473275+00:00\",\r\n \"endTime\": - \"2019-09-03T09:09:12.6192077+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"a1ccb023-b813-46bd-aca6-600b449f9f7a\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-06T06:45:24.3095752+00:00\",\r\n \"endTime\": + \"2019-09-06T06:45:24.4971041+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"3301a5bf-7355-480a-af26-c91558b2d7b2\"\r\n}" headers: cache-control: - no-cache @@ -1104,7 +1243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:23 GMT + - Fri, 06 Sep 2019 06:45:35 GMT expires: - '-1' pragma: @@ -1121,7 +1260,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29993 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29992 status: code: 200 message: OK @@ -1137,7 +1276,7 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification + - -g -n --terminate-notification-time User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 @@ -1151,7 +1290,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -1165,19 +1304,21 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n - \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": - \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '3205' + - '3332' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:23 GMT + - Fri, 06 Sep 2019 06:45:35 GMT expires: - '-1' pragma: @@ -1194,7 +1335,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1286 + - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1291 status: code: 200 message: OK @@ -1206,408 +1347,156 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vmss create + - vmss update Connection: - keep-alive ParameterSetName: - - -g -n --image --terminate-notification + - -g -n --enable-terminate-notification User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 accept-language: - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T09:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": + {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n + \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '428' + - '3332' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:24 GMT + - Fri, 06 Sep 2019 06:45:36 GMT expires: - '-1' pragma: - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked vary: - Accept-Encoding x-content-type-options: - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1290 status: code: 200 message: OK - request: - body: null + body: 'b''{"location": "westus", "tags": {}, "sku": {"name": "Standard_DS1_v2", + "tier": "Standard", "capacity": 2}, "properties": {"upgradePolicy": {"mode": + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm186e88c", + "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, + "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": "vm186e88cNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm186e88cIPConfig", + "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, + "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}], + "enableIPForwarding": false}}]}, "scheduledEventsProfile": {"terminateNotificationProfile": + {"enable": false}}}, "overprovision": true, "doNotRunExtensionsOnOverprovisionedVMs": + false, "singlePlacementGroup": true}}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate + CommandName: + - vmss update Connection: - keep-alive + Content-Length: + - '2349' + Content-Type: + - application/json; charset=utf-8 + ParameterSetName: + - -g -n --enable-terminate-notification User-Agent: - - python-requests/2.22.0 - method: GET - uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 response: body: - string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n - \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": - {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": - \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": - {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n - \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n - \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": - \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n - \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n - \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": - \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": - \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": - \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": - {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n - \ \"sku\": \"7-RAW\",\n \"version\": \"latest\"\n },\n - \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": - \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n - \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n - \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n - \ \"version\": \"latest\"\n }\n },\n \"Windows\": - {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n - \ \"version\": \"latest\"\n },\n \"Win2016Datacenter\": - {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": - \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": - \"latest\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": - \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": - \"2012-R2-Datacenter\",\n \"version\": \"latest\"\n },\n - \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\",\n - \ \"version\": \"latest\"\n },\n \"Win2008R2SP1\": - {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": - \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n \"version\": - \"latest\"\n }\n }\n }\n }\n }\n}\n" - headers: - accept-ranges: - - bytes - access-control-allow-origin: - - '*' - cache-control: - - max-age=300 - connection: - - keep-alive - content-length: - - '2501' - content-security-policy: - - default-src 'none'; style-src 'unsafe-inline'; sandbox - content-type: - - text/plain; charset=utf-8 - date: - - Tue, 03 Sep 2019 09:09:25 GMT - etag: - - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" - expires: - - Tue, 03 Sep 2019 09:14:25 GMT - source-age: - - '0' - strict-transport-security: - - max-age=31536000 - vary: - - Authorization,Accept-Encoding, Accept-Encoding - via: - - 1.1 varnish - x-cache: - - MISS - x-cache-hits: - - '0' - x-content-type-options: - - nosniff - x-fastly-request-id: - - 0a7888abc1bd373b42526a5e5d29c6552de80e22 - x-frame-options: - - deny - x-geo-block-list: - - '' - x-github-request-id: - - D710:2D55:3E8331:434853:5D6E2DC5 - x-served-by: - - cache-sin18043-SIN - x-timer: - - S1567501765.418596,VS0,VE240 - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --terminate-notification - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-network/4.0.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n - \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"3427d6eb-5815-4b5c-93d0-77d2a8a0f45c\",\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_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n - \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\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_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/3/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n - \ }\r\n ]\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": - false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2155' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 03 Sep 2019 09:09: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-arm-service-request-id: - - abe2d145-00ff-4f58-99f8-5a5281583ea2 - 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 --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-03T09:05:36Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '428' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 03 Sep 2019 09:09:26 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python-requests/2.22.0 - method: GET - uri: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json - response: - body: - string: "{\n \"$schema\": \"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json\",\n - \ \"contentVersion\": \"1.0.0.0\",\n \"parameters\": {},\n \"variables\": - {},\n \"resources\": [],\n \"outputs\": {\n \"aliases\": {\n \"type\": - \"object\",\n \"value\": {\n \"Linux\": {\n \"CentOS\": - {\n \"publisher\": \"OpenLogic\",\n \"offer\": \"CentOS\",\n - \ \"sku\": \"7.5\",\n \"version\": \"latest\"\n },\n - \ \"CoreOS\": {\n \"publisher\": \"CoreOS\",\n \"offer\": - \"CoreOS\",\n \"sku\": \"Stable\",\n \"version\": \"latest\"\n - \ },\n \"Debian\": {\n \"publisher\": \"Debian\",\n - \ \"offer\": \"debian-10\",\n \"sku\": \"10\",\n \"version\": - \"latest\"\n },\n \"openSUSE-Leap\": {\n \"publisher\": - \"SUSE\",\n \"offer\": \"openSUSE-Leap\",\n \"sku\": - \"42.3\",\n \"version\": \"latest\"\n },\n \"RHEL\": - {\n \"publisher\": \"RedHat\",\n \"offer\": \"RHEL\",\n - \ \"sku\": \"7-RAW\",\n \"version\": \"latest\"\n },\n - \ \"SLES\": {\n \"publisher\": \"SUSE\",\n \"offer\": - \"SLES\",\n \"sku\": \"15\",\n \"version\": \"latest\"\n - \ },\n \"UbuntuLTS\": {\n \"publisher\": \"Canonical\",\n - \ \"offer\": \"UbuntuServer\",\n \"sku\": \"18.04-LTS\",\n - \ \"version\": \"latest\"\n }\n },\n \"Windows\": - {\n \"Win2019Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"offer\": \"WindowsServer\",\n \"sku\": \"2019-Datacenter\",\n - \ \"version\": \"latest\"\n },\n \"Win2016Datacenter\": - {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": - \"WindowsServer\",\n \"sku\": \"2016-Datacenter\",\n \"version\": - \"latest\"\n },\n \"Win2012R2Datacenter\": {\n \"publisher\": - \"MicrosoftWindowsServer\",\n \"offer\": \"WindowsServer\",\n \"sku\": - \"2012-R2-Datacenter\",\n \"version\": \"latest\"\n },\n - \ \"Win2012Datacenter\": {\n \"publisher\": \"MicrosoftWindowsServer\",\n - \ \"offer\": \"WindowsServer\",\n \"sku\": \"2012-Datacenter\",\n - \ \"version\": \"latest\"\n },\n \"Win2008R2SP1\": - {\n \"publisher\": \"MicrosoftWindowsServer\",\n \"offer\": - \"WindowsServer\",\n \"sku\": \"2008-R2-SP1\",\n \"version\": - \"latest\"\n }\n }\n }\n }\n }\n}\n" - headers: - accept-ranges: - - bytes - access-control-allow-origin: - - '*' - cache-control: - - max-age=300 - connection: - - keep-alive - content-length: - - '2501' - content-security-policy: - - default-src 'none'; style-src 'unsafe-inline'; sandbox - content-type: - - text/plain; charset=utf-8 - date: - - Tue, 03 Sep 2019 09:09:27 GMT - etag: - - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" - expires: - - Tue, 03 Sep 2019 09:14:27 GMT - source-age: - - '2' - strict-transport-security: - - max-age=31536000 - vary: - - Authorization,Accept-Encoding, Accept-Encoding - via: - - 1.1 varnish - x-cache: - - HIT - x-cache-hits: - - '1' - x-content-type-options: - - nosniff - x-fastly-request-id: - - 7f2267c23decf14a7cd39d1f590396ed1c1db133 - x-frame-options: - - deny - x-geo-block-list: - - '' - x-github-request-id: - - D710:2D55:3E8331:434853:5D6E2DC5 - x-served-by: - - cache-sin18032-SIN - x-timer: - - S1567501767.456456,VS0,VE1 - x-xss-protection: - - 1; mode=block - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-network/4.0.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm1VNET\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET\",\r\n - \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"3427d6eb-5815-4b5c-93d0-77d2a8a0f45c\",\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_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\",\r\n - \ \"etag\": \"W/\\\"f36b312f-93c5-4f72-a87b-49fb4c6d8f04\\\"\",\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_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/0/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1/virtualMachines/3/networkInterfaces/vm11ef498Nic/ipConfigurations/vm11ef498IPConfig\"\r\n - \ }\r\n ]\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": - false,\r\n \"enableVmProtection\": false\r\n }\r\n }\r\n ]\r\n}" + string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": + \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": + \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\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/bee3a8a7-a424-4a9e-883e-3257a1a7b947?api-version=2019-03-01 cache-control: - no-cache content-length: - - '2155' + - '3204' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:27 GMT + - Fri, 06 Sep 2019 06:45:39 GMT expires: - '-1' pragma: @@ -1623,8 +1512,12 @@ interactions: - Accept-Encoding x-content-type-options: - nosniff - x-ms-arm-service-request-id: - - 004c8c3a-6d74-4319-83ff-2de1364f96b9 + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateVMScaleSet3Min;56,Microsoft.Compute/CreateVMScaleSet30Min;296,Microsoft.Compute/VmssQueuedVMOperations;4800 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-ms-request-charge: + - '0' status: code: 200 message: OK @@ -1640,49 +1533,26 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification + - -g -n --enable-terminate-notification User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 - accept-language: - - en-US method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/bee3a8a7-a424-4a9e-883e-3257a1a7b947?api-version=2019-03-01 response: body: - string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1\",\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\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": - \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\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 AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX\"\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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n - \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": - \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + string: "{\r\n \"startTime\": \"2019-09-06T06:45:38.8878473+00:00\",\r\n \"endTime\": + \"2019-09-06T06:45:39.0754121+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"bee3a8a7-a424-4a9e-883e-3257a1a7b947\"\r\n}" headers: cache-control: - no-cache content-length: - - '3205' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:29 GMT + - Fri, 06 Sep 2019 06:45:50 GMT expires: - '-1' pragma: @@ -1699,7 +1569,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;189,Microsoft.Compute/GetVMScaleSet30Min;1285 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29990 status: code: 200 message: OK @@ -1715,12 +1585,10 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -n --terminate-notification-time + - -g -n --enable-terminate-notification User-Agent: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 - accept-language: - - en-US method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1?api-version=2019-03-01 response: @@ -1731,7 +1599,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm11ef498\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm186e88c\",\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\": @@ -1745,10 +1613,10 @@ interactions: \ \"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\":\"vm11ef498Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm11ef498IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"bc3f33fa-1fb6-47e8-b84a-b0b32c7e6251\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1757,7 +1625,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 03 Sep 2019 09:09:29 GMT + - Fri, 06 Sep 2019 06:45:51 GMT expires: - '-1' pragma: @@ -1774,7 +1642,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1284 + - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1288 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 3ee28b7957b..27d1df4a40e 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 @@ -3378,35 +3378,41 @@ def test_vmss_terminate_notification(self, resource_group): create_enable_key = 'vmss.' + update_enable_key create_not_before_timeout_key = 'vmss.' + update_not_before_timeout_key + self.kwargs.update({ + 'vm': 'vm1' + }) + # Create, enable terminate notification - self.cmd('vmss create -g {rg} -n vm1 --image UbuntuLTS --terminate-notification --terminate-notification-time PT5M', + self.cmd('vmss create -g {rg} -n {vm} --image UbuntuLTS --terminate-notification-time PT5M', checks=[ self.check(create_enable_key, True), self.check(create_not_before_timeout_key, 'PT5M') ]) - # Update, enable terminate notification - self.cmd('vmss update -g {rg} -n vm1 --terminate-notification --terminate-notification-time PT8M', + # Update, enable terminate notification and set time + self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification --terminate-notification-time PT8M', checks=[ self.check(update_enable_key, True), self.check(update_not_before_timeout_key, 'PT8M') ]) + # Update, set time + self.cmd('vmss update -g {rg} -n {vm} --terminate-notification-time PT9M', + checks=[ + self.check(update_not_before_timeout_key, 'PT9M') + ]) + # Update, disable terminate notification - self.cmd('vmss update -g {rg} -n vm1 --terminate-notification false', + self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification false', checks=[ self.check('virtualMachineProfile.scheduledEventsProfile.terminateNotificationProfile', None) ]) # Parameter validation, the following commands should fail with self.assertRaises(CLIError): - self.cmd('vmss create -g {rg} -n vm1 --image UbuntuLTS --terminate-notification') - with self.assertRaises(CLIError): - self.cmd('vmss create -g {rg} -n vm1 --image UbuntuLTS --terminate-notification-time PT5M') - with self.assertRaises(CLIError): - self.cmd('vmss update -g {rg} -n vm1 --terminate-notification') + self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification false --terminate-notification-time PT5M') with self.assertRaises(CLIError): - self.cmd('vmss update -g {rg} -n vm1 --terminate-notification-time PT5M') + self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification') if __name__ == '__main__': From a025fbcc965a077d2eb7cf7b8dfd0b57b0d686f1 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Sun, 8 Sep 2019 14:48:59 +0800 Subject: [PATCH 5/7] Fix style problem --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 1 - src/azure-cli/azure/cli/command_modules/vm/_validators.py | 2 +- 2 files changed, 1 insertion(+), 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 c2f85891d34..9153c1ba282 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -475,7 +475,6 @@ def load_arguments(self, _): 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) - with self.argument_context('vmss create', arg_group='Network Balancer') as c: LoadBalancerSkuName = self.get_models('LoadBalancerSkuName', resource_type=ResourceType.MGMT_NETWORK) c.argument('application_gateway', help='Name to use when creating a new application gateway (default) or referencing an existing one. Can also reference an existing application gateway by ID or specify "" for none.', options_list=['--app-gateway']) 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 ba99d3bf5fe..80236023d8e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1492,7 +1492,7 @@ def process_vm_vmss_stop(cmd, namespace): # pylint: disable=unused-argument "To deallocate a VM, run: az vm deallocate.") -def _validate_vmss_terminate_notification(cmd, namespace): +def _validate_vmss_terminate_notification(cmd, namespace): # pylint: disable=unused-argument """ Validate vmss update enable_terminate_notification and terminate_notification_time. If terminate_notification_time is specified, enable_terminate_notification should not be false From ac1f0cc773a08c2e5e9101ab0d5a8da2889168f6 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Sun, 8 Sep 2019 16:58:50 +0800 Subject: [PATCH 6/7] Use minutes instead of ISO 8061 formmat --- .../azure/cli/command_modules/vm/_params.py | 2 +- .../cli/command_modules/vm/_validators.py | 14 +- .../test_vmss_terminate_notification.yaml | 396 +++++------------- .../vm/tests/latest/test_vm_commands.py | 8 +- 4 files changed, 129 insertions(+), 291 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 9153c1ba282..c8ed98644d9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -506,7 +506,7 @@ def load_arguments(self, _): for scope in ['vmss create', 'vmss update']: with self.argument_context(scope) as c: c.argument('terminate_notification_time', min_api='2019-03-01', - help='Length of time (ISO 8601 format, e.g. PT5M) a notification to be sent to the VM on the instance metadata server till the VM gets deleted') + help='Length of time (in minutes) a notification to be sent to the VM on the instance metadata server till the VM gets deleted') for scope, help_prefix in [('vmss update', 'Update the'), ('vmss wait', 'Wait on the')]: with self.argument_context(scope) as c: 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 80236023d8e..fd2572f0738 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1287,6 +1287,7 @@ def process_vmss_create_namespace(cmd, namespace): _validate_vm_vmss_create_auth(namespace) _validate_vm_vmss_msi(cmd, namespace) _validate_proximity_placement_group(cmd, namespace) + _validate_vmss_terminate_notification(cmd, namespace) if namespace.secrets: _validate_secrets(namespace.secrets, namespace.os_type) @@ -1306,7 +1307,7 @@ def validate_vmss_update_namespace(cmd, namespace): # pylint: disable=unused-ar if namespace.protect_from_scale_in is not None or namespace.protect_from_scale_set_actions is not None: raise CLIError("usage error: protection policies can only be applied to VM instances within a VMSS." " Please use --instance-id to specify a VM instance") - _validate_vmss_terminate_notification(cmd, namespace) + _validate_vmss_update_terminate_notification_related(cmd, namespace) # endregion @@ -1492,7 +1493,7 @@ def process_vm_vmss_stop(cmd, namespace): # pylint: disable=unused-argument "To deallocate a VM, run: az vm deallocate.") -def _validate_vmss_terminate_notification(cmd, namespace): # pylint: disable=unused-argument +def _validate_vmss_update_terminate_notification_related(cmd, namespace): # pylint: disable=unused-argument """ Validate vmss update enable_terminate_notification and terminate_notification_time. If terminate_notification_time is specified, enable_terminate_notification should not be false @@ -1502,3 +1503,12 @@ def _validate_vmss_terminate_notification(cmd, namespace): # pylint: disable=un raise CLIError("usage error: please enable --enable-terminate-notification") if namespace.enable_terminate_notification is True and namespace.terminate_notification_time is None: raise CLIError("usage error: please set --terminate-notification-time") + _validate_vmss_terminate_notification(cmd, namespace) + + +def _validate_vmss_terminate_notification(cmd, namespace): # pylint: disable=unused-argument + """ + Transform minutes to ISO 8601 formmat + """ + if namespace.terminate_notification_time is not None: + namespace.terminate_notification_time = 'PT' + namespace.terminate_notification_time + 'M' diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml index 00c40bb273e..07e6d413e1c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-06T06:40:09Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-08T08:44:09Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:40:17 GMT + - Sun, 08 Sep 2019 08:44:13 GMT expires: - '-1' pragma: @@ -109,13 +109,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Fri, 06 Sep 2019 06:40:18 GMT + - Sun, 08 Sep 2019 08:44:15 GMT etag: - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" expires: - - Fri, 06 Sep 2019 06:45:18 GMT + - Sun, 08 Sep 2019 08:49:15 GMT source-age: - - '0' + - '256' 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: - - 280da1864c7200d9a818981777d73c10a4c332c7 + - 7592834c7d905aa6d5395ff546019e4c11cf395a x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - 6952:1D65:34E2F:3C29F:5D71FF52 + - FDCC:2AD8:E6A25:F9329:5D74BE5C x-served-by: - - cache-sin18050-SIN + - cache-sin18036-SIN x-timer: - - S1567752018.245712,VS0,VE317 + - S1567932255.105918,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:40:18 GMT + - Sun, 08 Sep 2019 08:44:15 GMT expires: - '-1' pragma: @@ -215,12 +215,12 @@ interactions: "manual"}, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": - "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm186e88c", + "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm1200e0b", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm186e88cNic", - "properties": {"primary": "true", "ipConfigurations": [{"name": "vm186e88cIPConfig", + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm1200e0bNic", + "properties": {"primary": "true", "ipConfigurations": [{"name": "vm1200e0bIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]}, @@ -253,10 +253,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","name":"vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16739845815449888997","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-06T06:40:24.2637346Z","duration":"PT2.899115S","correlationId":"b4c18d01-684e-4012-b9e6-0607d5efa85a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","name":"vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6507203319487806181","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-08T08:44:19.6530632Z","duration":"PT2.3987907S","correlationId":"97b638b8-54c9-49f9-a8d1-23d45b7ae31b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja/operationStatuses/08586338548641130019?api-version=2019-05-10 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah/operationStatuses/08586336746282233544?api-version=2019-05-10 cache-control: - no-cache content-length: @@ -264,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:40:24 GMT + - Sun, 08 Sep 2019 08:44:21 GMT expires: - '-1' pragma: @@ -274,7 +274,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1196' status: code: 201 message: Created @@ -295,93 +295,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 06 Sep 2019 06:40:55 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 --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 06 Sep 2019 06:41:27 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 --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -393,7 +307,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:41:57 GMT + - Sun, 08 Sep 2019 08:44:52 GMT expires: - '-1' pragma: @@ -424,7 +338,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -436,7 +350,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:42:27 GMT + - Sun, 08 Sep 2019 08:45:23 GMT expires: - '-1' pragma: @@ -467,7 +381,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -479,7 +393,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:42:58 GMT + - Sun, 08 Sep 2019 08:45:54 GMT expires: - '-1' pragma: @@ -510,93 +424,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 06 Sep 2019 06:43:28 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 --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 06 Sep 2019 06:43:58 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 --terminate-notification-time - User-Agent: - - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 - Azure-SDK-For-Python AZURECLI/2.0.72 - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586338548641130019?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 response: body: string: '{"status":"Succeeded"}' @@ -608,7 +436,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:44:29 GMT + - Sun, 08 Sep 2019 08:46:24 GMT expires: - '-1' pragma: @@ -642,17 +470,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","name":"vmss_deploy_z2NxpRrFtiBloKZqDNsjpWPBalBR95ja","type":"Microsoft.Resources/deployments","properties":{"templateHash":"16739845815449888997","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-06T06:44:26.463735Z","duration":"PT4M5.0991154S","correlationId":"b4c18d01-684e-4012-b9e6-0607d5efa85a","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm186e88c","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm186e88cNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm186e88cIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"41e6f6f0-7603-4422-b5cc-08427bf48cf1"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","name":"vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6507203319487806181","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-08T08:46:01.3863634Z","duration":"PT1M44.1320909S","correlationId":"97b638b8-54c9-49f9-a8d1-23d45b7ae31b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm1200e0b","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm1200e0bNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm1200e0bIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"05369bd1-bba2-4cb9-865a-3e2802274674"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' headers: cache-control: - no-cache content-length: - - '5885' + - '5886' content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:44:30 GMT + - Sun, 08 Sep 2019 08:46:24 GMT expires: - '-1' pragma: @@ -694,7 +522,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -708,12 +536,12 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT5M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -722,7 +550,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:44:31 GMT + - Sun, 08 Sep 2019 08:46:26 GMT expires: - '-1' pragma: @@ -739,14 +567,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1296 + - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1282 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": "vm186e88c", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm1200e0b", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -754,8 +582,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm186e88cNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm186e88cIPConfig", + [{"name": "vm1200e0bNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm1200e0bIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -793,7 +621,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -807,17 +635,17 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\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/255a7075-eaf1-401d-8aea-4480779da13d?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/026fe653-e9cc-47f4-8bad-a57cf4577d26?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -825,7 +653,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:44:33 GMT + - Sun, 08 Sep 2019 08:46:29 GMT expires: - '-1' pragma: @@ -842,9 +670,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;298,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;289,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' x-ms-request-charge: - '0' status: @@ -867,11 +695,11 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/255a7075-eaf1-401d-8aea-4480779da13d?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/026fe653-e9cc-47f4-8bad-a57cf4577d26?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-06T06:44:32.8557427+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"255a7075-eaf1-401d-8aea-4480779da13d\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-08T08:46:28.7632865+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"026fe653-e9cc-47f4-8bad-a57cf4577d26\"\r\n}" headers: cache-control: - no-cache @@ -880,7 +708,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:44:44 GMT + - Sun, 08 Sep 2019 08:46:40 GMT expires: - '-1' pragma: @@ -897,7 +725,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29996 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29981 status: code: 200 message: OK @@ -918,12 +746,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/255a7075-eaf1-401d-8aea-4480779da13d?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/026fe653-e9cc-47f4-8bad-a57cf4577d26?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-06T06:44:32.8557427+00:00\",\r\n \"endTime\": - \"2019-09-06T06:45:06.9968462+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"255a7075-eaf1-401d-8aea-4480779da13d\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-08T08:46:28.7632865+00:00\",\r\n \"endTime\": + \"2019-09-08T08:47:01.7321034+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"026fe653-e9cc-47f4-8bad-a57cf4577d26\"\r\n}" headers: cache-control: - no-cache @@ -932,7 +760,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:21 GMT + - Sun, 08 Sep 2019 08:47:17 GMT expires: - '-1' pragma: @@ -949,7 +777,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29994 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29979 status: code: 200 message: OK @@ -979,7 +807,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -993,12 +821,12 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1007,7 +835,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:22 GMT + - Sun, 08 Sep 2019 08:47:17 GMT expires: - '-1' pragma: @@ -1024,7 +852,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1294 + - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1280 status: code: 200 message: OK @@ -1056,7 +884,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -1070,12 +898,12 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1084,7 +912,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:22 GMT + - Sun, 08 Sep 2019 08:47:19 GMT expires: - '-1' pragma: @@ -1101,14 +929,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1293 + - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1279 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": "vm186e88c", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm1200e0b", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -1116,8 +944,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm186e88cNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm186e88cIPConfig", + [{"name": "vm1200e0bNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm1200e0bIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -1155,7 +983,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -1169,17 +997,17 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\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/3301a5bf-7355-480a-af26-c91558b2d7b2?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5086791a-39d4-44ac-89f6-8b3a2599a8ac?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -1187,7 +1015,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:25 GMT + - Sun, 08 Sep 2019 08:47:22 GMT expires: - '-1' pragma: @@ -1204,7 +1032,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;297,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;288,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-ms-request-charge: @@ -1229,12 +1057,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/3301a5bf-7355-480a-af26-c91558b2d7b2?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5086791a-39d4-44ac-89f6-8b3a2599a8ac?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-06T06:45:24.3095752+00:00\",\r\n \"endTime\": - \"2019-09-06T06:45:24.4971041+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"3301a5bf-7355-480a-af26-c91558b2d7b2\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-08T08:47:21.2633907+00:00\",\r\n \"endTime\": + \"2019-09-08T08:47:31.5915766+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"5086791a-39d4-44ac-89f6-8b3a2599a8ac\"\r\n}" headers: cache-control: - no-cache @@ -1243,7 +1071,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:35 GMT + - Sun, 08 Sep 2019 08:47:33 GMT expires: - '-1' pragma: @@ -1260,7 +1088,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29992 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29977 status: code: 200 message: OK @@ -1290,7 +1118,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -1304,12 +1132,12 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1318,7 +1146,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:35 GMT + - Sun, 08 Sep 2019 08:47:33 GMT expires: - '-1' pragma: @@ -1335,7 +1163,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1291 + - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1277 status: code: 200 message: OK @@ -1367,7 +1195,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -1381,12 +1209,12 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1395,7 +1223,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:36 GMT + - Sun, 08 Sep 2019 08:47:34 GMT expires: - '-1' pragma: @@ -1412,14 +1240,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1290 + - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1276 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": "vm186e88c", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm1200e0b", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -1427,8 +1255,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm186e88cNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm186e88cIPConfig", + [{"name": "vm1200e0bNic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm1200e0bIPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -1466,7 +1294,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -1480,15 +1308,15 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\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/bee3a8a7-a424-4a9e-883e-3257a1a7b947?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/70fffb60-24d3-414c-8aea-480e468f12ab?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -1496,7 +1324,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:39 GMT + - Sun, 08 Sep 2019 08:47:37 GMT expires: - '-1' pragma: @@ -1513,7 +1341,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;56,Microsoft.Compute/CreateVMScaleSet30Min;296,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;287,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-ms-request-charge: @@ -1538,12 +1366,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/bee3a8a7-a424-4a9e-883e-3257a1a7b947?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/70fffb60-24d3-414c-8aea-480e468f12ab?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-06T06:45:38.8878473+00:00\",\r\n \"endTime\": - \"2019-09-06T06:45:39.0754121+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"bee3a8a7-a424-4a9e-883e-3257a1a7b947\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-08T08:47:36.3728126+00:00\",\r\n \"endTime\": + \"2019-09-08T08:47:36.5447063+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"70fffb60-24d3-414c-8aea-480e468f12ab\"\r\n}" headers: cache-control: - no-cache @@ -1552,7 +1380,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:50 GMT + - Sun, 08 Sep 2019 08:47:47 GMT expires: - '-1' pragma: @@ -1569,7 +1397,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29990 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29975 status: code: 200 message: OK @@ -1599,7 +1427,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm186e88c\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm1200e0b\",\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\": @@ -1613,10 +1441,10 @@ interactions: \ \"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\":\"vm186e88cNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm186e88cIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"41e6f6f0-7603-4422-b5cc-08427bf48cf1\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1625,7 +1453,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 06 Sep 2019 06:45:51 GMT + - Sun, 08 Sep 2019 08:47:48 GMT expires: - '-1' pragma: @@ -1642,7 +1470,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1288 + - Microsoft.Compute/GetVMScaleSet3Min;187,Microsoft.Compute/GetVMScaleSet30Min;1273 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 27d1df4a40e..c8cbc383403 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 @@ -3383,21 +3383,21 @@ def test_vmss_terminate_notification(self, resource_group): }) # Create, enable terminate notification - self.cmd('vmss create -g {rg} -n {vm} --image UbuntuLTS --terminate-notification-time PT5M', + self.cmd('vmss create -g {rg} -n {vm} --image UbuntuLTS --terminate-notification-time 5', checks=[ self.check(create_enable_key, True), self.check(create_not_before_timeout_key, 'PT5M') ]) # Update, enable terminate notification and set time - self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification --terminate-notification-time PT8M', + self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification --terminate-notification-time 8', checks=[ self.check(update_enable_key, True), self.check(update_not_before_timeout_key, 'PT8M') ]) # Update, set time - self.cmd('vmss update -g {rg} -n {vm} --terminate-notification-time PT9M', + self.cmd('vmss update -g {rg} -n {vm} --terminate-notification-time 9', checks=[ self.check(update_not_before_timeout_key, 'PT9M') ]) @@ -3410,7 +3410,7 @@ def test_vmss_terminate_notification(self, resource_group): # Parameter validation, the following commands should fail with self.assertRaises(CLIError): - self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification false --terminate-notification-time PT5M') + self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification false --terminate-notification-time 5') with self.assertRaises(CLIError): self.cmd('vmss update -g {rg} -n {vm} --enable-terminate-notification') From b0ec9a5f8338bf0b8a417c39911badcb430638b7 Mon Sep 17 00:00:00 2001 From: Feiyue Yu Date: Mon, 9 Sep 2019 13:31:03 +0800 Subject: [PATCH 7/7] Update help message --- .../azure/cli/command_modules/vm/_params.py | 2 +- .../test_vmss_terminate_notification.yaml | 269 +++++++++++------- 2 files changed, 161 insertions(+), 110 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 c8ed98644d9..fc78ac35744 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -506,7 +506,7 @@ def load_arguments(self, _): for scope in ['vmss create', 'vmss update']: with self.argument_context(scope) as c: c.argument('terminate_notification_time', min_api='2019-03-01', - help='Length of time (in minutes) a notification to be sent to the VM on the instance metadata server till the VM gets deleted') + help='Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted') for scope, help_prefix in [('vmss update', 'Update the'), ('vmss wait', 'Wait on the')]: with self.argument_context(scope) as c: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml index 07e6d413e1c..82a651a09d5 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vmss_terminate_notification.yaml @@ -21,7 +21,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-08T08:44:09Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001","name":"cli_test_vmss_terminate_notification_000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2019-09-09T05:25:13Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -30,7 +30,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:44:13 GMT + - Mon, 09 Sep 2019 05:25:18 GMT expires: - '-1' pragma: @@ -109,13 +109,13 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Sun, 08 Sep 2019 08:44:15 GMT + - Mon, 09 Sep 2019 05:25:19 GMT etag: - W/"c3166eef59fc5bc1fcf7ec4817934fa1311cbeab" expires: - - Sun, 08 Sep 2019 08:49:15 GMT + - Mon, 09 Sep 2019 05:30:19 GMT source-age: - - '256' + - '229' strict-transport-security: - max-age=31536000 vary: @@ -129,17 +129,17 @@ interactions: x-content-type-options: - nosniff x-fastly-request-id: - - 7592834c7d905aa6d5395ff546019e4c11cf395a + - 64bd4e27d6890d7a350e595818ac618df9de09d1 x-frame-options: - deny x-geo-block-list: - '' x-github-request-id: - - FDCC:2AD8:E6A25:F9329:5D74BE5C + - F44E:45BD:175D52:1928EE:5D75E159 x-served-by: - - cache-sin18036-SIN + - cache-sin18025-SIN x-timer: - - S1567932255.105918,VS0,VE1 + - S1568006720.915829,VS0,VE1 x-xss-protection: - 1; mode=block status: @@ -176,7 +176,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:44:15 GMT + - Mon, 09 Sep 2019 05:25:20 GMT expires: - '-1' pragma: @@ -215,12 +215,12 @@ interactions: "manual"}, "virtualMachineProfile": {"storageProfile": {"osDisk": {"createOption": "FromImage", "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": - "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm1200e0b", + "18.04-LTS", "version": "latest"}}, "osProfile": {"computerNamePrefix": "vm18b5798", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm1200e0bNic", - "properties": {"primary": "true", "ipConfigurations": [{"name": "vm1200e0bIPConfig", + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vm18b5798Nic", + "properties": {"primary": "true", "ipConfigurations": [{"name": "vm18b5798IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]}, @@ -253,10 +253,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","name":"vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6507203319487806181","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-08T08:44:19.6530632Z","duration":"PT2.3987907S","correlationId":"97b638b8-54c9-49f9-a8d1-23d45b7ae31b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_jmGctWAmWl9COpXGNGAIbKgnSjhj4yJ8","name":"vmss_deploy_jmGctWAmWl9COpXGNGAIbKgnSjhj4yJ8","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1332271109211616747","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2019-09-09T05:25:25.0840345Z","duration":"PT2.6575021S","correlationId":"d30e0b66-706a-4bdd-8a2d-a01f024826fb","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah/operationStatuses/08586336746282233544?api-version=2019-05-10 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_jmGctWAmWl9COpXGNGAIbKgnSjhj4yJ8/operationStatuses/08586336001630510984?api-version=2019-05-10 cache-control: - no-cache content-length: @@ -264,7 +264,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:44:21 GMT + - Mon, 09 Sep 2019 05:25:26 GMT expires: - '-1' pragma: @@ -274,7 +274,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 201 message: Created @@ -295,7 +295,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336001630510984?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -307,7 +307,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:44:52 GMT + - Mon, 09 Sep 2019 05:25:57 GMT expires: - '-1' pragma: @@ -338,7 +338,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336001630510984?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -350,7 +350,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:45:23 GMT + - Mon, 09 Sep 2019 05:26:28 GMT expires: - '-1' pragma: @@ -381,7 +381,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336001630510984?api-version=2019-05-10 response: body: string: '{"status":"Running"}' @@ -393,7 +393,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:45:54 GMT + - Mon, 09 Sep 2019 05:26:58 GMT expires: - '-1' pragma: @@ -424,7 +424,7 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-resource/3.1.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336746282233544?api-version=2019-05-10 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08586336001630510984?api-version=2019-05-10 response: body: string: '{"status":"Succeeded"}' @@ -436,7 +436,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:46:24 GMT + - Mon, 09 Sep 2019 05:27:29 GMT expires: - '-1' pragma: @@ -470,8 +470,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2019-05-10 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","name":"vmss_deploy_ky3WBtLaw01ymcBEu1wwYhkq1HOoaDah","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6507203319487806181","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-08T08:46:01.3863634Z","duration":"PT1M44.1320909S","correlationId":"97b638b8-54c9-49f9-a8d1-23d45b7ae31b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm1200e0b","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm1200e0bNic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm1200e0bIPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"05369bd1-bba2-4cb9-865a-3e2802274674"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Resources/deployments/vmss_deploy_jmGctWAmWl9COpXGNGAIbKgnSjhj4yJ8","name":"vmss_deploy_jmGctWAmWl9COpXGNGAIbKgnSjhj4yJ8","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1332271109211616747","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2019-09-09T05:27:04.0972388Z","duration":"PT1M41.6707064S","correlationId":"d30e0b66-706a-4bdd-8a2d-a01f024826fb","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["westus"]},{"resourceType":"publicIPAddresses","locations":["westus"]},{"resourceType":"loadBalancers","locations":["westus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["westus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vm1LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vm1"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual"},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vm18b5798","adminUsername":"fey","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/fey/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]},"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":"vm18b5798Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vm18b5798IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool"}]}}]}}]},"scheduledEventsProfile":{"terminateNotificationProfile":{"notBeforeTimeout":"PT5M","enable":true}}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"82fef48c-2972-4aec-a320-4afcef71c438"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Compute/virtualMachineScaleSets/vm1"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/publicIPAddresses/vm1LBPublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET"}]}}' headers: cache-control: - no-cache @@ -480,7 +480,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:46:24 GMT + - Mon, 09 Sep 2019 05:27:29 GMT expires: - '-1' pragma: @@ -522,7 +522,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -536,12 +536,12 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT5M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -550,7 +550,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:46:26 GMT + - Mon, 09 Sep 2019 05:27:30 GMT expires: - '-1' pragma: @@ -567,14 +567,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1282 + - Microsoft.Compute/GetVMScaleSet3Min;196,Microsoft.Compute/GetVMScaleSet30Min;1295 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": "vm1200e0b", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm18b5798", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -582,8 +582,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm1200e0bNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm1200e0bIPConfig", + [{"name": "vm18b5798Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm18b5798IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -621,7 +621,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -635,17 +635,17 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\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/026fe653-e9cc-47f4-8bad-a57cf4577d26?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/bea41ef3-7f4b-4b6d-9060-e5686d1afdac?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -653,7 +653,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:46:29 GMT + - Mon, 09 Sep 2019 05:27:33 GMT expires: - '-1' pragma: @@ -670,9 +670,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;289,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;297,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' x-ms-request-charge: - '0' status: @@ -695,11 +695,62 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/026fe653-e9cc-47f4-8bad-a57cf4577d26?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/bea41ef3-7f4b-4b6d-9060-e5686d1afdac?api-version=2019-03-01 + response: + body: + string: "{\r\n \"startTime\": \"2019-09-09T05:27:32.3154078+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"bea41ef3-7f4b-4b6d-9060-e5686d1afdac\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 09 Sep 2019 05:27: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;29996 + 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 --enable-terminate-notification --terminate-notification-time + User-Agent: + - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 + Azure-SDK-For-Python AZURECLI/2.0.72 + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/bea41ef3-7f4b-4b6d-9060-e5686d1afdac?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-08T08:46:28.7632865+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"026fe653-e9cc-47f4-8bad-a57cf4577d26\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-09T05:27:32.3154078+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"bea41ef3-7f4b-4b6d-9060-e5686d1afdac\"\r\n}" headers: cache-control: - no-cache @@ -708,7 +759,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:46:40 GMT + - Mon, 09 Sep 2019 05:28:20 GMT expires: - '-1' pragma: @@ -725,7 +776,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29981 + - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29995 status: code: 200 message: OK @@ -746,12 +797,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/026fe653-e9cc-47f4-8bad-a57cf4577d26?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/bea41ef3-7f4b-4b6d-9060-e5686d1afdac?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-08T08:46:28.7632865+00:00\",\r\n \"endTime\": - \"2019-09-08T08:47:01.7321034+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"026fe653-e9cc-47f4-8bad-a57cf4577d26\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-09T05:27:32.3154078+00:00\",\r\n \"endTime\": + \"2019-09-09T05:28:22.1282084+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"bea41ef3-7f4b-4b6d-9060-e5686d1afdac\"\r\n}" headers: cache-control: - no-cache @@ -760,7 +811,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:17 GMT + - Mon, 09 Sep 2019 05:28:50 GMT expires: - '-1' pragma: @@ -777,7 +828,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29979 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29993 status: code: 200 message: OK @@ -807,7 +858,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -821,12 +872,12 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -835,7 +886,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:17 GMT + - Mon, 09 Sep 2019 05:28:52 GMT expires: - '-1' pragma: @@ -852,7 +903,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1280 + - Microsoft.Compute/GetVMScaleSet3Min;194,Microsoft.Compute/GetVMScaleSet30Min;1293 status: code: 200 message: OK @@ -884,7 +935,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -898,12 +949,12 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT8M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -912,7 +963,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:19 GMT + - Mon, 09 Sep 2019 05:28:52 GMT expires: - '-1' pragma: @@ -929,14 +980,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1279 + - Microsoft.Compute/GetVMScaleSet3Min;193,Microsoft.Compute/GetVMScaleSet30Min;1292 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": "vm1200e0b", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm18b5798", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -944,8 +995,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm1200e0bNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm1200e0bIPConfig", + [{"name": "vm18b5798Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm18b5798IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -983,7 +1034,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -997,17 +1048,17 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\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/5086791a-39d4-44ac-89f6-8b3a2599a8ac?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/91709504-98e8-4aa5-b9f2-8678f43a051a?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -1015,7 +1066,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:22 GMT + - Mon, 09 Sep 2019 05:28:56 GMT expires: - '-1' pragma: @@ -1032,7 +1083,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;288,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;58,Microsoft.Compute/CreateVMScaleSet30Min;296,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-ms-request-charge: @@ -1057,12 +1108,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/5086791a-39d4-44ac-89f6-8b3a2599a8ac?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/91709504-98e8-4aa5-b9f2-8678f43a051a?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-08T08:47:21.2633907+00:00\",\r\n \"endTime\": - \"2019-09-08T08:47:31.5915766+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"5086791a-39d4-44ac-89f6-8b3a2599a8ac\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-09T05:28:54.9565135+00:00\",\r\n \"endTime\": + \"2019-09-09T05:29:05.3003155+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"91709504-98e8-4aa5-b9f2-8678f43a051a\"\r\n}" headers: cache-control: - no-cache @@ -1071,7 +1122,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:33 GMT + - Mon, 09 Sep 2019 05:29:06 GMT expires: - '-1' pragma: @@ -1088,7 +1139,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29977 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29992 status: code: 200 message: OK @@ -1118,7 +1169,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -1132,12 +1183,12 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1146,7 +1197,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:33 GMT + - Mon, 09 Sep 2019 05:29:06 GMT expires: - '-1' pragma: @@ -1163,7 +1214,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1277 + - Microsoft.Compute/GetVMScaleSet3Min;192,Microsoft.Compute/GetVMScaleSet30Min;1291 status: code: 200 message: OK @@ -1195,7 +1246,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -1209,12 +1260,12 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {\r\n \"terminateNotificationProfile\": {\r\n \"notBeforeTimeout\": \"PT9M\",\r\n \"enable\": true\r\n \ }\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1223,7 +1274,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:34 GMT + - Mon, 09 Sep 2019 05:29:07 GMT expires: - '-1' pragma: @@ -1240,14 +1291,14 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;190,Microsoft.Compute/GetVMScaleSet30Min;1276 + - Microsoft.Compute/GetVMScaleSet3Min;191,Microsoft.Compute/GetVMScaleSet30Min;1290 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": "vm1200e0b", + "Manual"}, "virtualMachineProfile": {"osProfile": {"computerNamePrefix": "vm18b5798", "adminUsername": "fey", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"path": "/home/fey/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIyv5CUlZTa9PFgExQFfJKnYZoGp9LW0CUhTpJCa9bMUYGFinZE9MTJXOphuNJdMwP1Kcd608UZgV/CSb+90t+56vC+qRx2L+qIgqiV4M1jKBi9RpHx08FWYhzPykYew2VwOBkoEYIsX8ZdC/gj0OEKlH7L9PTAEhs3qqPdTVzneOtyq92rv02cb6Z3LGWcamaGKAJtAE7a0N9dme6t1GYNE4vOixrraxtJBGEWHlRPCb30etFUCOdK4dmn6RNUFubR0ABJpE5GyHaxyd08Vl0FMKzx3ppyHffGpOpNZn1O769j+N3hk6eyV2J9FfgA3sxQDh73V5gajx0wXEqN4hX"}]}, @@ -1255,8 +1306,8 @@ interactions: {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}, "osDisk": {"caching": "ReadWrite", "createOption": "FromImage", "managedDisk": {"storageAccountType": "Premium_LRS"}}}, "networkProfile": {"networkInterfaceConfigurations": - [{"name": "vm1200e0bNic", "properties": {"primary": true, "enableAcceleratedNetworking": - false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm1200e0bIPConfig", + [{"name": "vm18b5798Nic", "properties": {"primary": true, "enableAcceleratedNetworking": + false, "dnsSettings": {"dnsServers": []}, "ipConfigurations": [{"name": "vm18b5798IPConfig", "properties": {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet"}, "privateIPAddressVersion": "IPv4", "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool"}], @@ -1294,7 +1345,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -1308,15 +1359,15 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\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/70fffb60-24d3-414c-8aea-480e468f12ab?api-version=2019-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/df9e2a11-42d4-4542-81ac-8c8e0ecdbcb7?api-version=2019-03-01 cache-control: - no-cache content-length: @@ -1324,7 +1375,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:37 GMT + - Mon, 09 Sep 2019 05:29:10 GMT expires: - '-1' pragma: @@ -1341,7 +1392,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;287,Microsoft.Compute/VmssQueuedVMOperations;4800 + - Microsoft.Compute/CreateVMScaleSet3Min;57,Microsoft.Compute/CreateVMScaleSet30Min;295,Microsoft.Compute/VmssQueuedVMOperations;4800 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-ms-request-charge: @@ -1366,12 +1417,12 @@ interactions: - python/3.7.4 (Windows-10-10.0.18362-SP0) msrest/0.6.9 msrest_azure/0.6.1 azure-mgmt-compute/7.0.0 Azure-SDK-For-Python AZURECLI/2.0.72 method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/70fffb60-24d3-414c-8aea-480e468f12ab?api-version=2019-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/df9e2a11-42d4-4542-81ac-8c8e0ecdbcb7?api-version=2019-03-01 response: body: - string: "{\r\n \"startTime\": \"2019-09-08T08:47:36.3728126+00:00\",\r\n \"endTime\": - \"2019-09-08T08:47:36.5447063+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"70fffb60-24d3-414c-8aea-480e468f12ab\"\r\n}" + string: "{\r\n \"startTime\": \"2019-09-09T05:29:09.8003434+00:00\",\r\n \"endTime\": + \"2019-09-09T05:29:09.9721999+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"df9e2a11-42d4-4542-81ac-8c8e0ecdbcb7\"\r\n}" headers: cache-control: - no-cache @@ -1380,7 +1431,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:47 GMT + - Mon, 09 Sep 2019 05:29:21 GMT expires: - '-1' pragma: @@ -1397,7 +1448,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29975 + - Microsoft.Compute/GetOperation3Min;14990,Microsoft.Compute/GetOperation30Min;29989 status: code: 200 message: OK @@ -1427,7 +1478,7 @@ interactions: \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": \"Manual\"\r\n },\r\n \"virtualMachineProfile\": {\r\n \"osProfile\": - {\r\n \"computerNamePrefix\": \"vm1200e0b\",\r\n \"adminUsername\": + {\r\n \"computerNamePrefix\": \"vm18b5798\",\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\": @@ -1441,10 +1492,10 @@ interactions: \ \"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\":\"vm1200e0bNic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm1200e0bIPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n + {\"networkInterfaceConfigurations\":[{\"name\":\"vm18b5798Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vm18b5798IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/virtualNetworks/vm1VNET/subnets/vm1Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/backendAddressPools/vm1LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vmss_terminate_notification_000001/providers/Microsoft.Network/loadBalancers/vm1LB/inboundNatPools/vm1LBNatPool\"}]}}]}}]},\r\n \ \"scheduledEventsProfile\": {}\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": - false,\r\n \"uniqueId\": \"05369bd1-bba2-4cb9-865a-3e2802274674\"\r\n }\r\n}" + false,\r\n \"uniqueId\": \"82fef48c-2972-4aec-a320-4afcef71c438\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1453,7 +1504,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Sun, 08 Sep 2019 08:47:48 GMT + - Mon, 09 Sep 2019 05:29:21 GMT expires: - '-1' pragma: @@ -1470,7 +1521,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;187,Microsoft.Compute/GetVMScaleSet30Min;1273 + - Microsoft.Compute/GetVMScaleSet3Min;188,Microsoft.Compute/GetVMScaleSet30Min;1287 status: code: 200 message: OK