From 73addea7913a95b616fa1719bd62fd7925fab92b Mon Sep 17 00:00:00 2001 From: Jing-song Date: Mon, 6 Jan 2025 17:33:19 +0800 Subject: [PATCH] {Compute} `az vm create/update`: Add new parameter --enable-user-reboot-scheduled-events to support setting scheduled event policy (#30596) --- .../azure/cli/command_modules/vm/_params.py | 6 + .../command_modules/vm/_template_builder.py | 27 +- .../azure/cli/command_modules/vm/custom.py | 43 +- .../test_vm_scheduled_events_policy.yaml | 3433 +++++++++++++++++ .../vm/tests/latest/test_vm_commands.py | 35 + 5 files changed, 3540 insertions(+), 4 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml 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 ed7168541e1..d768ffbb050 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,12 @@ def load_arguments(self, _): c.argument('enable_hibernation', arg_type=get_three_state_flag(), min_api='2021-03-01', help='The flag that enable or disable hibernation capability on the VM.') c.argument('encryption_identity', help='Resource Id of the user managed identity which can be used for Azure disk encryption') + for scope in ['vm create', 'vm update']: + with self.argument_context(scope) as c: + c.argument('additional_scheduled_events', options_list=['--additional-scheduled-events', '--additional-events'], arg_type=get_three_state_flag(), min_api='2024-07-01', help='The configuration parameter used while creating event grid and resource graph scheduled event setting.') + c.argument('enable_user_reboot_scheduled_events', options_list=['--enable-user-reboot-scheduled-events', '--enable-reboot'], arg_type=get_three_state_flag(), min_api='2024-07-01', help='The configuration parameter used while publishing scheduled events additional publishing targets.') + c.argument('enable_user_redeploy_scheduled_events', options_list=['--enable-user-redeploy-scheduled-events', '--enable-redeploy'], arg_type=get_three_state_flag(), min_api='2024-07-01', help='The configuration parameter used while creating user initiated redeploy scheduled event setting creation.') + with self.argument_context('vm create', arg_group='Storage') as c: c.argument('attach_os_disk', help='Attach an existing OS disk to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.') c.argument('attach_data_disks', nargs='+', help='Attach existing data disks to the VM. Can use the name or ID of a managed disk or the URI to an unmanaged disk VHD.') 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 ffc5f4942a8..2404d37ef5d 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 @@ -307,7 +307,8 @@ def build_vm_resource( # pylint: disable=too-many-locals, too-many-statements, enable_vtpm=None, count=None, edge_zone=None, os_disk_delete_option=None, user_data=None, capacity_reservation_group=None, enable_hibernation=None, v_cpus_available=None, v_cpus_per_core=None, os_disk_security_encryption_type=None, os_disk_secure_vm_disk_encryption_set=None, disk_controller_type=None, - enable_proxy_agent=None, proxy_agent_mode=None): + enable_proxy_agent=None, proxy_agent_mode=None, additional_scheduled_events=None, + enable_user_reboot_scheduled_events=None, enable_user_redeploy_scheduled_events=None): os_caching = disk_info['os'].get('caching') @@ -576,6 +577,30 @@ def _build_storage_profile(): vm_properties = {'hardwareProfile': {'vmSize': size}, 'networkProfile': {'networkInterfaces': nics}, 'storageProfile': _build_storage_profile()} + scheduled_events_policy = {} + if additional_scheduled_events is not None: + scheduled_events_policy.update({ + "scheduledEventsAdditionalPublishingTargets": { + "eventGridAndResourceGraph": { + "enable": additional_scheduled_events + } + } + }) + if enable_user_redeploy_scheduled_events is not None: + scheduled_events_policy.update({ + "userInitiatedRedeploy": { + "automaticallyApprove": enable_user_redeploy_scheduled_events + } + }) + if enable_user_reboot_scheduled_events is not None: + scheduled_events_policy.update({ + "userInitiatedReboot": { + "automaticallyApprove": enable_user_reboot_scheduled_events + } + }) + if scheduled_events_policy: + vm_properties['scheduledEventsPolicy'] = scheduled_events_policy + vm_size_properties = {} if v_cpus_available is not None: vm_size_properties['vCPUsAvailable'] = v_cpus_available 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 0e0703f161d..601f38a38b2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -822,7 +822,9 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ os_disk_security_encryption_type=None, os_disk_secure_vm_disk_encryption_set=None, disk_controller_type=None, disable_integrity_monitoring_autoupgrade=False, enable_proxy_agent=None, proxy_agent_mode=None, source_snapshots_or_disks=None, source_snapshots_or_disks_size_gb=None, - source_disk_restore_point=None, source_disk_restore_point_size_gb=None, ssh_key_type=None): + source_disk_restore_point=None, source_disk_restore_point_size_gb=None, ssh_key_type=None, + additional_scheduled_events=None, enable_user_reboot_scheduled_events=None, + enable_user_redeploy_scheduled_events=None): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string @@ -1044,7 +1046,9 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ os_disk_security_encryption_type=os_disk_security_encryption_type, os_disk_secure_vm_disk_encryption_set=os_disk_secure_vm_disk_encryption_set, disk_controller_type=disk_controller_type, enable_proxy_agent=enable_proxy_agent, - proxy_agent_mode=proxy_agent_mode) + proxy_agent_mode=proxy_agent_mode, additional_scheduled_events=additional_scheduled_events, + enable_user_reboot_scheduled_events=enable_user_reboot_scheduled_events, + enable_user_redeploy_scheduled_events=enable_user_redeploy_scheduled_events) vm_resource['dependsOn'] = vm_dependencies @@ -1563,7 +1567,8 @@ def update_vm(cmd, resource_group_name, vm_name, os_disk=None, disk_caching=None enable_vtpm=None, user_data=None, capacity_reservation_group=None, dedicated_host=None, dedicated_host_group=None, size=None, ephemeral_os_disk_placement=None, enable_hibernation=None, v_cpus_available=None, v_cpus_per_core=None, disk_controller_type=None, - security_type=None, enable_proxy_agent=None, proxy_agent_mode=None, **kwargs): + security_type=None, enable_proxy_agent=None, proxy_agent_mode=None, additional_scheduled_events=None, + enable_user_reboot_scheduled_events=None, enable_user_redeploy_scheduled_events=None, **kwargs): from azure.mgmt.core.tools import parse_resource_id, resource_id, is_valid_resource_id from ._vm_utils import update_write_accelerator_settings, update_disk_caching SecurityProfile, UefiSettings = cmd.get_models('SecurityProfile', 'UefiSettings') @@ -1726,6 +1731,38 @@ def update_vm(cmd, resource_group_name, vm_name, os_disk=None, disk_caching=None if disk_controller_type is not None: vm.storage_profile.disk_controller_type = disk_controller_type + if additional_scheduled_events is not None or \ + enable_user_reboot_scheduled_events is not None or enable_user_redeploy_scheduled_events is not None: + if vm.scheduled_events_policy is None: + ScheduledEventsPolicy = cmd.get_models('ScheduledEventsPolicy') + UserInitiatedRedeploy = cmd.get_models('UserInitiatedRedeploy') + UserInitiatedReboot = cmd.get_models('UserInitiatedReboot') + EventGridAndResourceGraph = cmd.get_models('EventGridAndResourceGraph') + ScheduledEventsAdditionalPublishingTargets = cmd.get_models('ScheduledEventsAdditionalPublishingTargets') + vm.scheduled_events_policy = ScheduledEventsPolicy() + vm.scheduled_events_policy.scheduled_events_additional_publishing_targets = \ + ScheduledEventsAdditionalPublishingTargets() + vm.scheduled_events_policy.scheduled_events_additional_publishing_targets.\ + event_grid_and_resource_graph = EventGridAndResourceGraph() + vm.scheduled_events_policy.user_initiated_reboot = UserInitiatedReboot() + vm.scheduled_events_policy.user_initiated_redeploy = UserInitiatedRedeploy() + vm.scheduled_events_policy.scheduled_events_additional_publishing_targets.event_grid_and_resource_graph.\ + enable = additional_scheduled_events if additional_scheduled_events is not None else False + vm.scheduled_events_policy.user_initiated_redeploy.automatically_approve = \ + enable_user_redeploy_scheduled_events if enable_user_redeploy_scheduled_events is not None else False + vm.scheduled_events_policy.user_initiated_reboot.automatically_approve = \ + enable_user_reboot_scheduled_events if enable_user_reboot_scheduled_events is not None else False + else: + if additional_scheduled_events is not None: + vm.scheduled_events_policy.scheduled_events_additional_publishing_targets.\ + event_grid_and_resource_graph.enable = additional_scheduled_events + if enable_user_redeploy_scheduled_events is not None: + vm.scheduled_events_policy.user_initiated_redeploy.automatically_approve = \ + enable_user_redeploy_scheduled_events + if enable_user_reboot_scheduled_events is not None: + vm.scheduled_events_policy.user_initiated_reboot.automatically_approve = \ + enable_user_reboot_scheduled_events + client = _compute_client_factory(cmd.cli_ctx, aux_subscriptions=aux_subscriptions) return sdk_no_wait(no_wait, client.virtual_machines.begin_create_or_update, resource_group_name, vm_name, **kwargs) # endregion diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml new file mode 100644 index 00000000000..057f56fe075 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_scheduled_events_policy.yaml @@ -0,0 +1,3433 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001","name":"cli_test_vm_scheduled_events_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","test":"test_vm_scheduled_events_policy","date":"2024-12-31T05:34:28Z","module":"vm","DateCreated":"2024-12-31T05:34:33Z","Creator":"v-jingszhang@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '500' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A38B3CE3A9E64C7B905C8B06D077F5FE Ref B: TYO201151002034 Ref C: 2024-12-31T05:34:34Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '300' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B22AC6ADB4C146CEB8AC9AD923B58851 Ref B: TYO201100116039 Ref C: 2024-12-31T05:34:34Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202401161?api-version=2024-07-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": + 32213303808\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 9DC3BA8084224109ACB32BB20BD46EC6 Ref B: TYO201151003062 Ref C: 2024-12-31T05:34:36Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2DC50B7AD70D4FEDA59DA0D48BF914C5 Ref B: TYO201151006054 Ref C: 2024-12-31T05:34:38Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '300' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43998 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: AD12ADF68AB44FECB1B1BB98C479B6FB Ref B: TYO201100113045 Ref C: 2024-12-31T05:34:39Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202401161?api-version=2024-07-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": + 32213303808\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73998 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C089080D51EF4D4CA4D74AC05225F692 Ref B: TYO201151006011 Ref C: 2024-12-31T05:34:40Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '300' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15997,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 921ACF9EFF4A4475AA8D0585905ED5E1 Ref B: TYO201100115029 Ref C: 2024-12-31T05:34:41Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202401161?api-version=2024-07-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": + 32213303808\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12997,Microsoft.Compute/GetVMImageFromLocation30Min;73997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0393466DF3044FC98D9C0763C3737521 Ref B: TYO201100114009 Ref C: 2024-12-31T05:34:42Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"name": "vm000002VNET", "type": "Microsoft.Network/virtualNetworks", "location": + "centraluseuap", "apiVersion": "2015-06-15", "dependsOn": [], "tags": {}, "properties": + {"addressSpace": {"addressPrefixes": ["10.0.0.0/16"]}, "subnets": [{"name": + "vm000002Subnet", "properties": {"addressPrefix": "10.0.0.0/24"}}]}}, {"type": + "Microsoft.Network/networkSecurityGroups", "name": "vm000002NSG", "apiVersion": + "2015-06-15", "location": "centraluseuap", "tags": {}, "dependsOn": []}, {"apiVersion": + "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", "name": "vm000002PublicIP", + "location": "centraluseuap", "tags": {}, "dependsOn": [], "properties": {"publicIPAllocationMethod": + "Static"}, "sku": {"name": "Standard"}}, {"apiVersion": "2015-06-15", "type": + "Microsoft.Network/networkInterfaces", "name": "vm000002VMNic", "location": + "centraluseuap", "tags": {}, "dependsOn": ["Microsoft.Network/virtualNetworks/vm000002VNET", + "Microsoft.Network/networkSecurityGroups/vm000002NSG", "Microsoft.Network/publicIpAddresses/vm000002PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm000002", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"}}}, + {"apiVersion": "2024-07-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm000002", "location": "centraluseuap", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm000002VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic", + "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": + "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", + "sku": "18.04-LTS", "version": "latest"}}, "scheduledEventsPolicy": {"scheduledEventsAdditionalPublishingTargets": + {"eventGridAndResourceGraph": {"enable": true}}, "userInitiatedRedeploy": {"automaticallyApprove": + true}, "userInitiatedReboot": {"automaticallyApprove": true}}, "osProfile": + {"computerName": "vm000002", "adminUsername": "v-jingszhang", "linuxConfiguration": + {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt", + "path": "/home/v-jingszhang/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3681' + Content-Type: + - application/json + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/vm_deploy_Fs3VGRCipNl3oHqAjPWlBaDMMCA4KO45","name":"vm_deploy_Fs3VGRCipNl3oHqAjPWlBaDMMCA4KO45","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4084473938208700566","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2024-12-31T05:34:52.6329999Z","duration":"PT0.0007784S","correlationId":"8d1005bc-9af3-4a66-85f9-8d1c8389e1d8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["centraluseuap"]},{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/vm_deploy_Fs3VGRCipNl3oHqAjPWlBaDMMCA4KO45/operationStatuses/08584659835989006325?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '2606' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-deployment-engine-version: + - 1.158.0 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 5F003B4FE9BB4B4F9939816A23392C2B Ref B: TYO201100113027 Ref C: 2024-12-31T05:34:43Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584659835989006325?api-version=2022-09-01 + response: + body: + string: '{"status":"Accepted"}' + headers: + cache-control: + - no-cache + content-length: + - '21' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:34:54 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8871F7BF46DE4CD382969D0A69CDA502 Ref B: TYO201100113027 Ref C: 2024-12-31T05:34:54Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584659835989006325?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:35:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A06DAD04113948D68EAC95759E6BB31F Ref B: TYO201100113027 Ref C: 2024-12-31T05:35:25Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584659835989006325?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:35:56 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 058D316AD8CC4CD4A80B01290C26531A Ref B: TYO201100113027 Ref C: 2024-12-31T05:35:56Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/vm_deploy_Fs3VGRCipNl3oHqAjPWlBaDMMCA4KO45","name":"vm_deploy_Fs3VGRCipNl3oHqAjPWlBaDMMCA4KO45","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4084473938208700566","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2024-12-31T05:35:34.0252274Z","duration":"PT41.3930059S","correlationId":"8d1005bc-9af3-4a66-85f9-8d1c8389e1d8","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["centraluseuap"]},{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3531' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:35:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E5EF4DB443024C53B4B34FC480EB1B7C Ref B: TYO201100113027 Ref C: 2024-12-31T05:35:56Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + true\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"instanceView\": {\r\n \"computerName\": \"vm000002\",\r\n \"osName\": + \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n + \ \"vmAgentVersion\": \"2.13.0.2\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2024-12-31T05:35:39+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": []\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2024-12-31T05:35:17.1078312+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2024-12-31T05:35:31.232952+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n + \ },\r\n \"etag\": \"\\\"1\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '4324' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:35:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23997,Microsoft.Compute/LowCostGetResource;33 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B108E527DE2449EC90AC90EC989CB1C0 Ref B: TYO201100115009 Ref C: 2024-12-31T05:35:58Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic?api-version=2022-01-01 + response: + body: + string: '{"name":"vm000002VMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","etag":"W/\"4a4dbe7c-b776-4558-a8c7-ac167dceeb23\"","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"435c0210-d640-4455-884d-bf1d5493973d","ipConfigurations":[{"name":"ipconfigvm000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002","etag":"W/\"4a4dbe7c-b776-4558-a8c7-ac167dceeb23\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.4","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"x5tehdr3rohutch5kzsfnlyueb.cdmx.internal.cloudapp.net"},"macAddress":"60-45-BD-75-69-0A","vnetEncryptionSupported":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002"},"hostedWorkloads":[],"tapConfigurations":[],"nicType":"Standard","allowPort25Out":true,"auxiliaryMode":"None"},"type":"Microsoft.Network/networkInterfaces","location":"centraluseuap","kind":"Regular"}' + headers: + cache-control: + - no-cache + content-length: + - '2146' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:35:59 GMT + etag: + - W/"4a4dbe7c-b776-4558-a8c7-ac167dceeb23" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 8efe4b59-f563-4d8b-8190-6c5e8dcd052c + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 7B1C5CED546E4EEE8E202A1D391365B4 Ref B: TYO201151003052 Ref C: 2024-12-31T05:35:59Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --additional-events --enable-reboot --enable-redeploy --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP?api-version=2022-01-01 + response: + body: + string: '{"name":"vm000002PublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","etag":"W/\"f5eacb14-8c99-406e-8ce3-559735067576\"","location":"centraluseuap","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"d9a5a049-4dfd-4639-a3de-a9c936dae2a2","ipAddress":"52.158.188.125","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '851' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:00 GMT + etag: + - W/"f5eacb14-8c99-406e-8ce3-559735067576" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - a2ca0a70-4a35-46ce-a9b1-ea9f4341c2c3 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B3B34E1CEE78496984B29CE58B9EA18E Ref B: TYO201151001009 Ref C: 2024-12-31T05:36:00Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + true\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"1\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3024' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:01 GMT + etag: + - '"1"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23996,Microsoft.Compute/LowCostGetResource;32 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 65D0D5C244FC45E89DD4136DD80A2BDD Ref B: TYO201151004025 Ref C: 2024-12-31T05:36:01Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + true\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"1\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3024' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:02 GMT + etag: + - '"1"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23995,Microsoft.Compute/LowCostGetResource;31 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 21079C00580646C9B17EC9ACB0C91BAD Ref B: TYO201151006034 Ref C: 2024-12-31T05:36:02Z' + status: + code: 200 + message: '' +- request: + body: '{"location": "centraluseuap", "tags": {}, "properties": {"hardwareProfile": + {"vmSize": "Standard_DS1_v2"}, "scheduledEventsPolicy": {"userInitiatedRedeploy": + {"automaticallyApprove": false}, "userInitiatedReboot": {"automaticallyApprove": + false}, "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": + {"enable": false}}}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm000002_disk1_1288aa13a2154f649a771d3d00b818fa", "caching": "ReadWrite", "createOption": + "FromImage", "diskSizeGB": 30, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + []}, "osProfile": {"computerName": "vm000002", "adminUsername": "v-jingszhang", + "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": + [{"path": "/home/v-jingszhang/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}, "enableVMAgentPlatformUpdates": true}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + Content-Length: + - '1891' + Content-Type: + - application/json + ParameterSetName: + - -g -n --additional-events --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": false\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + false\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"2\\\"\"\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/d7ab7114-944e-40e5-8103-b22a09db1689?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712201657428088&c=MIIHpTCCBo2gAwIBAgITOgO1eaNDEi_BvGCTxQAEA7V5ozANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTI0MDIxODE1WhcNMjUwMzIzMDIxODE1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMlHGdnqKLeF2F4OsgAOcHFNUAjiLFp6FCxlxQOYg51Cc3zek-BAsGf89aUGTGMJCdHE1mTaw1q_PUWPCksYWp3NcCCoVinm2o1MURSwaWIrqlNASHAEvb_ADFMgn4n4hc2vShYq2affaCR2GFiEUOUzENxFaDejcbaTAkH8VDqATpE-0Cs90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Hb2Hy_oTJ_-od3EibrmwatG49rC3BdsyhY78Oy2Om_XxkDWJtgHlJW9Q8HEUJiV5aTLllpHnRysV7m8Q_ONAEX_zRBLKmeqOO054_95PRqxMuC1be3vwRPZEZsyvsM5bzgPXWM4dvqLGmIjzMcxzzeyH_Cf61kZDEEGfbNb7BntrrIkpdq2udpFizDVl9YoGplymJu1qzix3pN2uTLJLkuTiVgru4-wGXNtEMN9EhSRw0fc-ItjKfoG-VxNmTuyuZ5d8jekOTcW2GkLPFpv0BsjX_Hv9dy_qD_ABr5UQD_uakVNGdq-IgwJmQ&h=hPNMyftVioHRErCcjmY5VI6TuSbISvT7ttoGGZUetNk + cache-control: + - no-cache + content-length: + - '3026' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:05 GMT + etag: + - '"2"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVMSubscriptionMaximum;1498,Microsoft.Compute/PutVMResource;10 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 6541F7E7B4C642B09759385E1D8E711B Ref B: TYO201100114017 Ref C: 2024-12-31T05:36:03Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/d7ab7114-944e-40e5-8103-b22a09db1689?p=2745cc42-2cf3-41b7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BkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwEwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBTl2Ztn_PjsurvwwKidileIud8-YzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAHtj0YWqN3sYjYN-GBQMYMg1YMdzO7_Q-Mm2bT6ToQzKlQ8U_PWSHKQvJWHVz6OjdsyQku_l92cmgLYjEAsKHlKyDCUGz59BlajwSHMI_0DlBN2h773g9gi_Wn3K2PVudya1UlPloKAp4OM1m09oNeh0KByOgBBsgYVqwFpoHESoyDICFB_cnqZwNxw5ye-LGz4ePuRuzt9cKoe9ilJji_A2qUk1fJwdoxerf6Cm4EjYpfyGFVeXy4DodU8rwtg4rQt4YgjyxKtAqlFfMbJfqTqF4htWkY8wvqFKPXppJO8FYnc7A4R50cSPMF-Y70wHazRM1UXs0NWuK8_5R1Cw2Uo&s=FKz9jlyPKtwxzfKQ9a78NODf_rIdzHb2Hy_oTJ_-od3EibrmwatG49rC3BdsyhY78Oy2Om_XxkDWJtgHlJW9Q8HEUJiV5aTLllpHnRysV7m8Q_ONAEX_zRBLKmeqOO054_95PRqxMuC1be3vwRPZEZsyvsM5bzgPXWM4dvqLGmIjzMcxzzeyH_Cf61kZDEEGfbNb7BntrrIkpdq2udpFizDVl9YoGplymJu1qzix3pN2uTLJLkuTiVgru4-wGXNtEMN9EhSRw0fc-ItjKfoG-VxNmTuyuZ5d8jekOTcW2GkLPFpv0BsjX_Hv9dy_qD_ABr5UQD_uakVNGdq-IgwJmQ&h=hPNMyftVioHRErCcjmY5VI6TuSbISvT7ttoGGZUetNk + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:36:05.3269805+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"d7ab7114-944e-40e5-8103-b22a09db1689\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: DF2A2D4A7A864D9F80C37894961FD03D Ref B: TYO201100114017 Ref C: 2024-12-31T05:36:05Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/d7ab7114-944e-40e5-8103-b22a09db1689?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712201657428088&c=MIIHpTCCBo2gAwIBAgITOgO1eaNDEi_BvGCTxQAEA7V5ozANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTI0MDIxODE1WhcNMjUwMzIzMDIxODE1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMlHGdnqKLeF2F4OsgAOcHFNUAjiLFp6FCxlxQOYg51Cc3zek-BAsGf89aUGTGMJCdHE1mTaw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JfqTqF4htWkY8wvqFKPXppJO8FYnc7A4R50cSPMF-Y70wHazRM1UXs0NWuK8_5R1Cw2Uo&s=FKz9jlyPKtwxzfKQ9a78NODf_rIdzHb2Hy_oTJ_-od3EibrmwatG49rC3BdsyhY78Oy2Om_XxkDWJtgHlJW9Q8HEUJiV5aTLllpHnRysV7m8Q_ONAEX_zRBLKmeqOO054_95PRqxMuC1be3vwRPZEZsyvsM5bzgPXWM4dvqLGmIjzMcxzzeyH_Cf61kZDEEGfbNb7BntrrIkpdq2udpFizDVl9YoGplymJu1qzix3pN2uTLJLkuTiVgru4-wGXNtEMN9EhSRw0fc-ItjKfoG-VxNmTuyuZ5d8jekOTcW2GkLPFpv0BsjX_Hv9dy_qD_ABr5UQD_uakVNGdq-IgwJmQ&h=hPNMyftVioHRErCcjmY5VI6TuSbISvT7ttoGGZUetNk + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:36:05.3269805+00:00\",\r\n \"endTime\": + \"2024-12-31T05:36:15.9989499+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"d7ab7114-944e-40e5-8103-b22a09db1689\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:36 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;42,Microsoft.Compute/GetOperationSubscriptionMaximum;14999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2FB312EBA5AA4464A5B64BBC4804C60D Ref B: TYO201100114017 Ref C: 2024-12-31T05:36:36Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": false\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + false\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"2\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3027' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:36 GMT + etag: + - '"2"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23999,Microsoft.Compute/LowCostGetResource;35 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D7F7F8C1E8E947508CB3726750388DF3 Ref B: TYO201100114017 Ref C: 2024-12-31T05:36:36Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-redeploy --enable-reboot + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": false\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + false\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"2\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3027' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:37 GMT + etag: + - '"2"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23998,Microsoft.Compute/LowCostGetResource;34 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4006F2A53A11461688A319490C526C47 Ref B: TYO201100113035 Ref C: 2024-12-31T05:36:37Z' + status: + code: 200 + message: '' +- request: + body: '{"location": "centraluseuap", "tags": {}, "properties": {"hardwareProfile": + {"vmSize": "Standard_DS1_v2"}, "scheduledEventsPolicy": {"userInitiatedRedeploy": + {"automaticallyApprove": true}, "userInitiatedReboot": {"automaticallyApprove": + false}, "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": + {"enable": true}}}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm000002_disk1_1288aa13a2154f649a771d3d00b818fa", "caching": "ReadWrite", "createOption": + "FromImage", "diskSizeGB": 30, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + []}, "osProfile": {"computerName": "vm000002", "adminUsername": "v-jingszhang", + "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": + [{"path": "/home/v-jingszhang/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}, "enableVMAgentPlatformUpdates": true}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + Content-Length: + - '1889' + Content-Type: + - application/json + ParameterSetName: + - -g -n --additional-events --enable-redeploy --enable-reboot + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"3\\\"\"\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/8f24e4df-be04-4d0d-b721-24236cafbe41?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712202011760446&c=MIIHpTCCBo2gAwIBAgITOgO1eaNDEi_BvGCTxQAEA7V5ozANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTI0MDIxODE1WhcNMjUwMzIzMDIxODE1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMlHGdnqKLeF2F4OsgAOcHFNUAjiLFp6FCxlxQOYg51Cc3zek-BAsGf89aUGTGMJCdHE1mTaw1q_PUWPCksYWp3NcCCoVinm2o1MURSwaWIrqlNASHAEvb_ADFMgn4n4hc2vShYq2affaCR2GFiEUOUzENxFaDejcbaTAkH8VDqATpE-0Cs90fYiHo7MZO2TBnVbpKAC5zeCrw4nRGPYQx-V6X7jiQGDXIR-_OU8LW2XNvrrCvoPU5tFdlWYUQXvCArDZBYyBTw35HqRZVJeV7Nb1lFYUow80NtfPKaa782C2Gu9NeJ9CKvnuEzn6BsK50U06J63QS9iYtewwl8f_okCAwEAAaOCBJI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A3J1U8CVb2BJnS-7HoqLGyzMCiATt8wdmmR_SedS_4O8MmQCfQIXlFzbDJwd_XO88li6NLIm1PdQb1FySilppD0ytbCxgvAXZhFpmSneQmzszyZoqfzBlpmp4j0fQo7lvXE6qn4w&h=CQkLgK1_hX7mRYjbxSBT1j1DwVRPwMv4d48qpGj2NDA + cache-control: + - no-cache + content-length: + - '3024' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:40 GMT + etag: + - '"3"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVMSubscriptionMaximum;1499,Microsoft.Compute/PutVMResource;11 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 50843AAEF3C042BFA38F9BC22B00D38F Ref B: TYO201151004029 Ref C: 2024-12-31T05:36:38Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-redeploy --enable-reboot + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/8f24e4df-be04-4d0d-b721-24236cafbe41?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712202011760446&c=MIIHpTCCBo2gAwIBAgITOgO1eaNDEi_BvGCTxQAEA7V5ozANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw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0YWqN3sYjYN-GBQMYMg1YMdzO7_Q-Mm2bT6ToQzKlQ8U_PWSHKQvJWHVz6OjdsyQku_l92cmgLYjEAsKHlKyDCUGz59BlajwSHMI_0DlBN2h773g9gi_Wn3K2PVudya1UlPloKAp4OM1m09oNeh0KByOgBBsgYVqwFpoHESoyDICFB_cnqZwNxw5ye-LGz4ePuRuzt9cKoe9ilJji_A2qUk1fJwdoxerf6Cm4EjYpfyGFVeXy4DodU8rwtg4rQt4YgjyxKtAqlFfMbJfqTqF4htWkY8wvqFKPXppJO8FYnc7A4R50cSPMF-Y70wHazRM1UXs0NWuK8_5R1Cw2Uo&s=knjxnT8YdyMBw1vjbaZpUQXt3hKKXndnrn4dZoEaMPTvovj4WBwQ1hMHCAcpZMiwHuAtXdA_7CNRuAYlCGmYbq7mS5TPL-hJy20DipRKmfSJcpbYi6dWreqhjKozSgrUuHsFGyNjKFCCQcDGCsl98F0rUEzwJZCPwr0H5acjH__BtAxfksDdokaV-NpbVAxHH7cctkq9uhYXgQA3J1U8CVb2BJnS-7HoqLGyzMCiATt8wdmmR_SedS_4O8MmQCfQIXlFzbDJwd_XO88li6NLIm1PdQb1FySilppD0ytbCxgvAXZhFpmSneQmzszyZoqfzBlpmp4j0fQo7lvXE6qn4w&h=CQkLgK1_hX7mRYjbxSBT1j1DwVRPwMv4d48qpGj2NDA + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:36:40.7647964+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"8f24e4df-be04-4d0d-b721-24236cafbe41\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:36:40 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14998 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E030ED352BF3476BBEB6EAD27E2D5F1E Ref B: TYO201151004029 Ref C: 2024-12-31T05:36:41Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-redeploy --enable-reboot + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/8f24e4df-be04-4d0d-b721-24236cafbe41?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712202011760446&c=MIIHpTCCBo2gAwIBAgITOgO1eaNDEi_BvGCTxQAEA7V5ozANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSU5GUkEgQ0EgMDEwHhcNMjQwOTI0MDIxODE1WhcNMjUwMzIzMDIxODE1WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMlHGdnqKLeF2F4OsgAOcHFNUAjiLFp6FCxlxQOYg51Cc3zek-BAsGf89aUGTGMJCdHE1mTaw1q_PUWPCksYWp3NcCCoVinm2o1MURSwaWIrqlNASHAEvb_ADFMgn4n4hc2vShYq2affaCR2GFiEUOUzENxFaDejcbaTAkH8VDqATpE-0Cs90fYiHo7MZO2TBnVbpKAC5zeCrw4nRGPYQx-V6X7jiQGDXIR-_OU8LW2XNvrrCvoPU5tFdl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ipRKmfSJcpbYi6dWreqhjKozSgrUuHsFGyNjKFCCQcDGCsl98F0rUEzwJZCPwr0H5acjH__BtAxfksDdokaV-NpbVAxHH7cctkq9uhYXgQA3J1U8CVb2BJnS-7HoqLGyzMCiATt8wdmmR_SedS_4O8MmQCfQIXlFzbDJwd_XO88li6NLIm1PdQb1FySilppD0ytbCxgvAXZhFpmSneQmzszyZoqfzBlpmp4j0fQo7lvXE6qn4w&h=CQkLgK1_hX7mRYjbxSBT1j1DwVRPwMv4d48qpGj2NDA + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:36:40.7647964+00:00\",\r\n \"endTime\": + \"2024-12-31T05:36:46.4679398+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"8f24e4df-be04-4d0d-b721-24236cafbe41\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;42,Microsoft.Compute/GetOperationSubscriptionMaximum;14996 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: B236B83788AE49E5BD790D5F81704761 Ref B: TYO201151004029 Ref C: 2024-12-31T05:37:11Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events --enable-redeploy --enable-reboot + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"035694e6-9daf-4766-9a92-511a05e5ccd2\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000002_disk1_1288aa13a2154f649a771d3d00b818fa\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:35:14.4671943+00:00\"\r\n },\r\n \"etag\": + \"\\\"3\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3025' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:12 GMT + etag: + - '"3"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23995,Microsoft.Compute/LowCostGetResource;31 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 074E3F4109AA4310915FF679EF682294 Ref B: TYO201151004029 Ref C: 2024-12-31T05:37:12Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001","name":"cli_test_vm_scheduled_events_policy_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","test":"test_vm_scheduled_events_policy","date":"2024-12-31T05:34:28Z","module":"vm","DateCreated":"2024-12-31T05:34:33Z","Creator":"v-jingszhang@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '500' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 3F1EBA0550D643CBB686E430F90DA1DC Ref B: TYO201151006062 Ref C: 2024-12-31T05:37:13Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '300' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15994,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 948B8016085D41DEA42EAB88FF6BBB5F Ref B: TYO201151002011 Ref C: 2024-12-31T05:37:14Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202401161?api-version=2024-07-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": + 32213303808\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12995,Microsoft.Compute/GetVMImageFromLocation30Min;73995 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 69EB4A0832F048EFB7B96A9BE245F620 Ref B: TYO201151006009 Ref C: 2024-12-31T05:37:16Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks?api-version=2022-01-01 + response: + body: + string: '{"value":[{"name":"vm000002VNET","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","etag":"W/\"65a34ecb-1b85-4003-a32b-1906f4f67185\"","type":"Microsoft.Network/virtualNetworks","location":"centraluseuap","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"8e43e6bf-8b3d-498f-88ff-566456af1421","addressSpace":{"addressPrefixes":["10.0.0.0/16"]},"subnets":[{"name":"vm000002Subnet","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet","etag":"W/\"65a34ecb-1b85-4003-a32b-1906f4f67185\"","properties":{"provisioningState":"Succeeded","addressPrefix":"10.0.0.0/24","ipConfigurations":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/CLI_TEST_VM_SCHEDULED_EVENTS_POLICY_OCZ7FRS5RYVIJNLEEX6BO7ATEL3KOM7W3KT2ECX/providers/Microsoft.Network/networkInterfaces/VMVPFH7ZDTVMNIC/ipConfigurations/IPCONFIGVMVPFH7ZDT"}],"delegations":[],"privateEndpointNetworkPolicies":"Disabled","privateLinkServiceNetworkPolicies":"Enabled"},"type":"Microsoft.Network/virtualNetworks/subnets"}],"virtualNetworkPeerings":[],"enableDdosProtection":false}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1343' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 9086f062-67fb-47c8-a8d0-4378f664ef99 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 252F1595A9924547AFAD81501B92F693 Ref B: TYO201151002052 Ref C: 2024-12-31T05:37:17Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '300' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:19 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15993,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43993 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A174E7928D1042479FE4D7E99F10DAB1 Ref B: TYO201100117023 Ref C: 2024-12-31T05:37:19Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202401161?api-version=2024-07-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": + 32213303808\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12994,Microsoft.Compute/GetVMImageFromLocation30Min;73994 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 108A3FFC2C504A37BE92D4262A2D330C Ref B: TYO201100114053 Ref C: 2024-12-31T05:37:20Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2024-07-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '300' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:22 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15992,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43992 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 90492A7C2C274B70BFC5D322E7628238 Ref B: TYO201151001060 Ref C: 2024-12-31T05:37:22Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202401161?api-version=2024-07-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Unmanaged\",\r\n \"disallowed\": {\r\n + \ \"vmDiskType\": \"None\"\r\n },\r\n \"automaticOSUpgradeProperties\": + {\r\n \"automaticOSUpgradeSupported\": true\r\n },\r\n \"imageDeprecationStatus\": + {\r\n \"imageState\": \"Active\"\r\n },\r\n \"features\": [\r\n + \ {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n \"value\": + \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI, NVMe\"\r\n },\r\n {\r\n \"name\": + \"IsHibernateSupported\",\r\n \"value\": \"True\"\r\n }\r\n ],\r\n + \ \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInBytes\": + 32213303808\r\n },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": + \"CentralUSEUAP\",\r\n \"name\": \"18.04.202401161\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202401161\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1039' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:23 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12993,Microsoft.Compute/GetVMImageFromLocation30Min;73993 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: CC026B6D22484E8DB53CE0C33910AC2D Ref B: TYO201100117017 Ref C: 2024-12-31T05:37:23Z' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": + [{"type": "Microsoft.Network/networkSecurityGroups", "name": "vm000003NSG", + "apiVersion": "2015-06-15", "location": "centraluseuap", "tags": {}, "dependsOn": + []}, {"apiVersion": "2022-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "vm000003PublicIP", "location": "centraluseuap", "tags": {}, "dependsOn": + [], "properties": {"publicIPAllocationMethod": "Static"}, "sku": {"name": "Standard"}}, + {"apiVersion": "2015-06-15", "type": "Microsoft.Network/networkInterfaces", + "name": "vm000003VMNic", "location": "centraluseuap", "tags": {}, "dependsOn": + ["Microsoft.Network/networkSecurityGroups/vm000003NSG", "Microsoft.Network/publicIpAddresses/vm000003PublicIP"], + "properties": {"ipConfigurations": [{"name": "ipconfigvm000003", "properties": + {"privateIPAllocationMethod": "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"}}}, + {"apiVersion": "2024-07-01", "type": "Microsoft.Compute/virtualMachines", "name": + "vm000003", "location": "centraluseuap", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm000003VMNic"], + "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic", + "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": + "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": + null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", + "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vm000003", + "adminUsername": "v-jingszhang", "linuxConfiguration": {"disablePasswordAuthentication": + true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt", + "path": "/home/v-jingszhang/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": + {}, "mode": "incremental"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + Content-Length: + - '3081' + Content-Type: + - application/json + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/vm_deploy_ngm2VcVvcst2LQ2JQNASsHgrDD6CZmOq","name":"vm_deploy_ngm2VcVvcst2LQ2JQNASsHgrDD6CZmOq","type":"Microsoft.Resources/deployments","properties":{"templateHash":"18323655617108142894","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2024-12-31T05:37:31.9270823Z","duration":"PT0.0001022S","correlationId":"8a8cbde0-4767-4b8a-a75c-432deda17a39","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}]}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/vm_deploy_ngm2VcVvcst2LQ2JQNASsHgrDD6CZmOq/operationStatuses/08584659834376337664?api-version=2022-09-01 + cache-control: + - no-cache + content-length: + - '2285' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:32 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-deployment-engine-version: + - 1.158.0 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 195C91746CFD4611B3E2E06A572E932D Ref B: TYO201100117025 Ref C: 2024-12-31T05:37:25Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584659834376337664?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:37:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0750B84964EC44A0827C0D491D535965 Ref B: TYO201100117025 Ref C: 2024-12-31T05:37:33Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584659834376337664?api-version=2022-09-01 + response: + body: + string: '{"status":"Running"}' + headers: + cache-control: + - no-cache + content-length: + - '20' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 07290AE65E65415AADAC62D245F8A81A Ref B: TYO201100117025 Ref C: 2024-12-31T05:38:04Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08584659834376337664?api-version=2022-09-01 + response: + body: + string: '{"status":"Succeeded"}' + headers: + cache-control: + - no-cache + content-length: + - '22' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E7117681EC1D42CCB8557391156710D2 Ref B: TYO201100117025 Ref C: 2024-12-31T05:38:35Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Resources/deployments/vm_deploy_ngm2VcVvcst2LQ2JQNASsHgrDD6CZmOq","name":"vm_deploy_ngm2VcVvcst2LQ2JQNASsHgrDD6CZmOq","type":"Microsoft.Resources/deployments","properties":{"templateHash":"18323655617108142894","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2024-12-31T05:38:05.2451618Z","duration":"PT33.3181817S","correlationId":"8a8cbde0-4767-4b8a-a75c-432deda17a39","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000003PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000003VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000003"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"}]}}' + headers: + cache-control: + - no-cache + content-length: + - '3034' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:35 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 693625CE9541416D8A0BFD56E8E5711E Ref B: TYO201100117025 Ref C: 2024-12-31T05:38:35Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?$expand=instanceView&api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n \"storageProfile\": + {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n + \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202401161\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"instanceView\": {\r\n \"computerName\": \"vm000003\",\r\n \"osName\": + \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n \"vmAgent\": {\r\n + \ \"vmAgentVersion\": \"2.13.0.2\",\r\n \"statuses\": [\r\n {\r\n + \ \"code\": \"ProvisioningState/succeeded\",\r\n \"level\": + \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \"message\": + \"Guest Agent is running\",\r\n \"time\": \"2024-12-31T05:38:17+00:00\"\r\n + \ }\r\n ],\r\n \"extensionHandlers\": []\r\n },\r\n + \ \"disks\": [\r\n {\r\n \"name\": \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n + \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2024-12-31T05:37:53.1714929+00:00\"\r\n + \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": + \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning + succeeded\",\r\n \"time\": \"2024-12-31T05:38:02.4996228+00:00\"\r\n + \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n + \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n + \ },\r\n \"etag\": \"\\\"1\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3982' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23999,Microsoft.Compute/LowCostGetResource;33 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: D01C1BCF450E46BDB0CABA521415E998 Ref B: TYO201151003025 Ref C: 2024-12-31T05:38:37Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic?api-version=2022-01-01 + response: + body: + string: '{"name":"vm000003VMNic","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic","etag":"W/\"850204d3-aaaa-471b-a717-b1a06fbbbafe\"","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"02f2e750-352f-43c8-a6eb-7ce95f91a847","ipConfigurations":[{"name":"ipconfigvm000003","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003","etag":"W/\"850204d3-aaaa-471b-a717-b1a06fbbbafe\"","type":"Microsoft.Network/networkInterfaces/ipConfigurations","properties":{"provisioningState":"Succeeded","privateIPAddress":"10.0.0.5","privateIPAllocationMethod":"Dynamic","publicIPAddress":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP"},"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"},"primary":true,"privateIPAddressVersion":"IPv4"}}],"dnsSettings":{"dnsServers":[],"appliedDnsServers":[],"internalDomainNameSuffix":"x5tehdr3rohutch5kzsfnlyueb.cdmx.internal.cloudapp.net"},"macAddress":"60-45-BD-75-8E-22","vnetEncryptionSupported":false,"enableIPForwarding":false,"networkSecurityGroup":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkSecurityGroups/vm000003NSG"},"primary":true,"virtualMachine":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003"},"hostedWorkloads":[],"tapConfigurations":[],"nicType":"Standard","allowPort25Out":true,"auxiliaryMode":"None"},"type":"Microsoft.Network/networkInterfaces","location":"centraluseuap","kind":"Regular"}' + headers: + cache-control: + - no-cache + content-length: + - '2146' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:38 GMT + etag: + - W/"850204d3-aaaa-471b-a717-b1a06fbbbafe" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 14194ec4-d01d-4560-873e-0259c3618284 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 68786F0EB8F747D498992E11A255152B Ref B: TYO201100113033 Ref C: 2024-12-31T05:38:38Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --nsg-rule + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP?api-version=2022-01-01 + response: + body: + string: '{"name":"vm000003PublicIP","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/publicIPAddresses/vm000003PublicIP","etag":"W/\"7e6e2f47-3813-41dc-b7ff-e54e3d3bd4bf\"","location":"centraluseuap","tags":{},"properties":{"provisioningState":"Succeeded","resourceGuid":"06a01236-a72f-4fc0-91fe-64feca39f893","ipAddress":"52.141.234.125","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ipConfiguration":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic/ipConfigurations/ipconfigvm000003"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' + headers: + cache-control: + - no-cache + content-length: + - '851' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:39 GMT + etag: + - W/"7e6e2f47-3813-41dc-b7ff-e54e3d3bd4bf" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-arm-service-request-id: + - 90a25855-a327-4457-b5db-ccb122068076 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8FF11397210A4A21A82BB55811148016 Ref B: TYO201100117049 Ref C: 2024-12-31T05:38:39Z' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n \"storageProfile\": + {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n + \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202401161\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"1\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2681' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:40 GMT + etag: + - '"1"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23998,Microsoft.Compute/LowCostGetResource;32 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 562F12D9107540B296B0FC4F2B479164 Ref B: TYO201100115009 Ref C: 2024-12-31T05:38:40Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n \"storageProfile\": + {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n + \ \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n + \ \"version\": \"latest\",\r\n \"exactVersion\": \"18.04.202401161\"\r\n + \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": + \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n \"createOption\": + \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": + {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"1\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '2681' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:41 GMT + etag: + - '"1"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23997,Microsoft.Compute/LowCostGetResource;31 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 815EFA8984684DD98F8B463890900A55 Ref B: TYO201100115007 Ref C: 2024-12-31T05:38:41Z' + status: + code: 200 + message: '' +- request: + body: '{"location": "centraluseuap", "tags": {}, "properties": {"hardwareProfile": + {"vmSize": "Standard_DS1_v2"}, "scheduledEventsPolicy": {"userInitiatedRedeploy": + {"automaticallyApprove": false}, "userInitiatedReboot": {"automaticallyApprove": + false}, "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": + {"enable": true}}}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36", "caching": "ReadWrite", "createOption": + "FromImage", "diskSizeGB": 30, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + []}, "osProfile": {"computerName": "vm000003", "adminUsername": "v-jingszhang", + "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": + [{"path": "/home/v-jingszhang/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}, "enableVMAgentPlatformUpdates": true}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + Content-Length: + - '1890' + Content-Type: + - application/json + ParameterSetName: + - -g -n --additional-events + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + false\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"2\\\"\"\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/e9626370-e151-4a7c-a3e8-6f5c2943ed30?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712203253111724&c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5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SPODOLM8JtEpWTmATvQ1JU4WpKXqFa4rqsvNF1tGFtaZQLg3Ko-KYygPQ-nz4dU9xrMahGnoIeroeUIBY6VzVtKBa1W5f1FDKYz0iQH-rv-bsxOLw9kMc1wx2pPf66FAHuvZwrkjNRvRaCmBUHzkwQtPftbBZtvcqWu6LOfolzoOBAX6IO-YhhXJmRg7gc-N98IPF5QoD7q-XyxhD9petlCBB6xEyZ_LsrUPOTv8HcTk1npiViK7-cSlezvRyohe8XKrygvy82nTSwA&h=pbDitMfFscJYViMgDJkIqFBcBckX9LJwlPoc8MqgWC0 + cache-control: + - no-cache + content-length: + - '3025' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:44 GMT + etag: + - '"2"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVMSubscriptionMaximum;1499,Microsoft.Compute/PutVMResource;10 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: C050EABAF04A44B8A24CD2259E261D39 Ref B: TYO201151002034 Ref C: 2024-12-31T05:38:42Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/e9626370-e151-4a7c-a3e8-6f5c2943ed30?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712203253111724&c=MIIHhzCCBm-gAwIBAgIT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PjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAFQ1zkLj2l7rlyrM4j2l8rtJkHitIxnUkLkyeLRrVxZPkfV1_ABjrmrKVHwks1TT5vv190Z1rSszJ8F3BMbapuqZk7TG_eHqRVKnkNYrwXEAn99VULWloNnmsKbnii5qgA26KvYkNcrxJ4L_9pCm3mT47A_mvHkzKnovgy4XLdvqRPL1QGC_Itw4Y4QCb11tEdDabhFYx2hY0zhM3voH4pW_42NbuG3xwNLFeA2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc&s=YtX6Bve1LhPb3yXAI9QUHk1yiBBq1OfWxXZ8ZQk62X-RaThDnoTZ3C9aCaWEZ3maCrBovNrSPODOLM8JtEpWTmATvQ1JU4WpKXqFa4rqsvNF1tGFtaZQLg3Ko-KYygPQ-nz4dU9xrMahGnoIeroeUIBY6VzVtKBa1W5f1FDKYz0iQH-rv-bsxOLw9kMc1wx2pPf66FAHuvZwrkjNRvRaCmBUHzkwQtPftbBZtvcqWu6LOfolzoOBAX6IO-YhhXJmRg7gc-N98IPF5QoD7q-XyxhD9petlCBB6xEyZ_LsrUPOTv8HcTk1npiViK7-cSlezvRyohe8XKrygvy82nTSwA&h=pbDitMfFscJYViMgDJkIqFBcBckX9LJwlPoc8MqgWC0 + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:38:44.9061207+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"e9626370-e151-4a7c-a3e8-6f5c2943ed30\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:38:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0CD90D706FF74EABA62F919F40BB1863 Ref B: TYO201151002034 Ref C: 2024-12-31T05:38:45Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/e9626370-e151-4a7c-a3e8-6f5c2943ed30?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712203253111724&c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vz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M8JtEpWTmATvQ1JU4WpKXqFa4rqsvNF1tGFtaZQLg3Ko-KYygPQ-nz4dU9xrMahGnoIeroeUIBY6VzVtKBa1W5f1FDKYz0iQH-rv-bsxOLw9kMc1wx2pPf66FAHuvZwrkjNRvRaCmBUHzkwQtPftbBZtvcqWu6LOfolzoOBAX6IO-YhhXJmRg7gc-N98IPF5QoD7q-XyxhD9petlCBB6xEyZ_LsrUPOTv8HcTk1npiViK7-cSlezvRyohe8XKrygvy82nTSwA&h=pbDitMfFscJYViMgDJkIqFBcBckX9LJwlPoc8MqgWC0 + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:38:44.9061207+00:00\",\r\n \"endTime\": + \"2024-12-31T05:38:51.2343009+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e9626370-e151-4a7c-a3e8-6f5c2943ed30\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;42,Microsoft.Compute/GetOperationSubscriptionMaximum;14997 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: BC25A0566F994A70A8688F24B4F4F516 Ref B: TYO201151002034 Ref C: 2024-12-31T05:39:15Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --additional-events + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + false\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"2\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3026' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:15 GMT + etag: + - '"2"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23993,Microsoft.Compute/LowCostGetResource;35 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: BABC17155CA94F44BE03791FBFF01019 Ref B: TYO201151002034 Ref C: 2024-12-31T05:39:16Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + false\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + false\r\n }\r\n },\r\n \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"2\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3026' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:17 GMT + etag: + - '"2"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23992,Microsoft.Compute/LowCostGetResource;34 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7B01507BCDB84648822CDB2A4DF9A2BC Ref B: TYO201100114011 Ref C: 2024-12-31T05:39:17Z' + status: + code: 200 + message: '' +- request: + body: '{"location": "centraluseuap", "tags": {}, "properties": {"hardwareProfile": + {"vmSize": "Standard_DS1_v2"}, "scheduledEventsPolicy": {"userInitiatedRedeploy": + {"automaticallyApprove": true}, "userInitiatedReboot": {"automaticallyApprove": + true}, "scheduledEventsAdditionalPublishingTargets": {"eventGridAndResourceGraph": + {"enable": true}}}, "storageProfile": {"osDisk": {"osType": "Linux", "name": + "vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36", "caching": "ReadWrite", "createOption": + "FromImage", "diskSizeGB": 30, "managedDisk": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36", + "storageAccountType": "Premium_LRS"}, "deleteOption": "Detach"}, "dataDisks": + []}, "osProfile": {"computerName": "vm000003", "adminUsername": "v-jingszhang", + "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": + [{"path": "/home/v-jingszhang/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt"}]}, + "provisionVMAgent": true, "patchSettings": {"patchMode": "ImageDefault", "assessmentMode": + "ImageDefault"}, "enableVMAgentPlatformUpdates": true}, "secrets": [], "allowExtensionOperations": + true, "requireGuestProvisionSignal": true}, "networkProfile": {"networkInterfaces": + [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic"}]}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + Content-Length: + - '1888' + Content-Type: + - application/json + ParameterSetName: + - -g -n --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + true\r\n }\r\n },\r\n \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"3\\\"\"\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/06bccd0c-e0d1-43ee-b7fe-2b59d88ab14f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712203618462302&c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQC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ache-control: + - no-cache + content-length: + - '3023' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:21 GMT + etag: + - '"3"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/PutVMSubscriptionMaximum;1499,Microsoft.Compute/PutVMResource;11 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 57562F7B39654C27B18E6622F0125174 Ref B: TYO201151002029 Ref C: 2024-12-31T05:39:18Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/06bccd0c-e0d1-43ee-b7fe-2b59d88ab14f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712203618462302&c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPAD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2LThOsGcf_4F8bzQ6Pm__uo-XrnBE13ERimgL86M-z9h6W2bQUcKXqAf_RhKjv5ai9GEnITD2aoXBO8tu85DelvTvuH12hn2s2xEeYNMURYXNCzYc&s=EFzb_TUeokpu_-33hq9MyC4_9BcuVCUiDq8f_8K2ZH9LK3teQdWyu6K-iYFWBjVomYu5m-xecTtOAuhiZAET1Qk9fuYBHb5VSsPX86qyQe3F7zRZiypQlq5AOVSTyGii0_K_kAc7fa0lVhGTyHn8KIe8FimypWEZvQutkWvTjbh2vzj5CdBCFTVUMdU6HvXVppmBPT7IW3I9VaDmZfBQvF71eZ8_zZ8nOsdxxrYyp8SbHQIy2lm8HWWJpg9ptTcUG2zLCvqhV_PPAdrgJaounwFhnle1xlRPJ3R0wzxCEDY_7-iqLIS1M2hOstBNK3Mg5qKiPU0iPnRzTYo-y-Pocw&h=abegui2tk2lq3sSpWMR6Yy8MRW1nmwSFrMLLuTX5Xyk + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:39:21.4219078+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"06bccd0c-e0d1-43ee-b7fe-2b59d88ab14f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;44,Microsoft.Compute/GetOperationSubscriptionMaximum;14996 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7A2CEE45B0494ED39818C3BF5858EFBC Ref B: TYO201151002029 Ref C: 2024-12-31T05:39:22Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/06bccd0c-e0d1-43ee-b7fe-2b59d88ab14f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2024-07-01&t=638712203618462302&c=MIIHhzCCBm-gAwIBAgITfAWHizdXQLRDd48J5AAABYeLNzANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjQwOTIyMTIwNDAzWhcNMjUwMzIxMTIwNDAzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3CpUYjuxooJSSrwK19FjzhBOC6rpM2nxEk8ZwpswjmQSs4371lD9cjpzoi1V66izrOAQO5dR4T7CBAdxC_T1La7B_GC0BLToEfDbOMLuij5eJKkGy743BYmNo5FXMcmO2f2PyZA8Q8FMkBzYwcpUlCBt0ofvjmFjb0o14-l_wkV8cVq6NA5rj5vzYRXrcBBDx0DXZzx0ey-DalD8BI5Efxzl0sFnA-qqtfi2y6thqMlNPWuGqiYFNmkko5caGs3a7hQy_mx3XdCDy2aWq0YXIqdiyYCA4MGA_vLQtjCUcC4EnHaLnPm-9OGFhKZHQZ2hQEFIYnnCNvsSRVaHBIatkCAwEAAaOCBHQwggRwMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtH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MR6Yy8MRW1nmwSFrMLLuTX5Xyk + response: + body: + string: "{\r\n \"startTime\": \"2024-12-31T05:39:21.4219078+00:00\",\r\n \"endTime\": + \"2024-12-31T05:39:30.8437886+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"06bccd0c-e0d1-43ee-b7fe-2b59d88ab14f\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '184' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperationResource;42,Microsoft.Compute/GetOperationSubscriptionMaximum;14999 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: CC6E2E01437240178A4FBB4FAF8A5BC3 Ref B: TYO201151002029 Ref C: 2024-12-31T05:39:52Z' + status: + code: 200 + message: '' +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm update + Connection: + - keep-alive + ParameterSetName: + - -g -n --enable-reboot --enable-redeploy + User-Agent: + - AZURECLI/2.67.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003?api-version=2024-07-01 + response: + body: + string: "{\r\n \"name\": \"vm000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/virtualMachines/vm000003\",\r\n + \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"hardwareProfile\": {\r\n \"vmSize\": + \"Standard_DS1_v2\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"scheduledEventsPolicy\": {\r\n \"scheduledEventsAdditionalPublishingTargets\": + {\r\n \"eventGridAndResourceGraph\": {\r\n \"enable\": true\r\n + \ }\r\n },\r\n \"userInitiatedRedeploy\": {\r\n \"automaticallyApprove\": + true\r\n },\r\n \"userInitiatedReboot\": {\r\n \"automaticallyApprove\": + true\r\n }\r\n },\r\n \"vmId\": \"eb3e47c9-9eaa-4cde-bf86-349ccc14c91b\",\r\n + \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": + \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": + \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": + \"18.04.202401161\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\",\r\n + \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n + \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Compute/disks/vm000003_disk1_3af1decc56244b2da8b67febcd6e6e36\"\r\n + \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": + 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": + {\r\n \"computerName\": \"vm000003\",\r\n \"adminUsername\": \"v-jingszhang\",\r\n + \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": + true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n + \ \"path\": \"/home/v-jingszhang/.ssh/authorized_keys\",\r\n \"keyData\": + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCey0/ipz0OxUGA6xunJY5HdhvlsyRf2JdpnRaH0UU5KsAiajLq5HifCzJAEpRvWXIIYKSrqNi+hSmKRXiGJaHnK0dm0QO8YvM/Ab+MZUZ0L9VRznMoLsexTgDEC6QidxP5VYxXQwzgvbK1kn1J+7QTmd9JzV4Q83EEIZM5VGp7DwuUzhSuUN4LNJ9TnsCpjZwDIqIIGo9kLRLov+CfPb50o/768pa4W87a7FDJc74gvu/Qh7K05ztWNABlqYk5QsSkLWosN/vCaR+Nlh6EroTUw679G0MLj2WD/P0vLbiy1Xgf2oZ4Q5vLOQfoU2SWNkzzmfpdu3o9+VWNQppUZPyt\"\r\n + \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": + true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n + \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": + true\r\n },\r\n \"secrets\": [],\r\n \"allowExtensionOperations\": + true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": + {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_scheduled_events_policy_000001/providers/Microsoft.Network/networkInterfaces/vm000003VMNic\"}]},\r\n + \ \"timeCreated\": \"2024-12-31T05:37:50.7808435+00:00\"\r\n },\r\n \"etag\": + \"\\\"3\\\"\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '3024' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 31 Dec 2024 05:39:52 GMT + etag: + - '"3"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-need-to-refresh-epl-cache: + - 'False' + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGetSubscriptionMaximum;23998,Microsoft.Compute/LowCostGetResource;32 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: C01E32F069D44D2093404FA2002ED784 Ref B: TYO201151002029 Ref C: 2024-12-31T05:39:52Z' + status: + code: 200 + message: '' +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index c07d9f58f11..8132f3aecca 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 @@ -8812,6 +8812,41 @@ def test_vmss_scheduled_events_policy(self, resource_group): self.check('scheduledEventsPolicy.userInitiatedReboot.automaticallyApprove', True) ]) + @ResourceGroupPreparer(name_prefix='cli_test_vm_scheduled_events_policy_', location='centraluseuap') + def test_vm_scheduled_events_policy(self, resource_group): + self.kwargs.update({ + 'vm1': self.create_random_name('vm', 10), + 'vm2': self.create_random_name('vm', 10) + }) + self.cmd('vm create -g {rg} -n {vm1} --image Canonical:UbuntuServer:18.04-LTS:latest --additional-events True --enable-reboot True --enable-redeploy True --nsg-rule NONE') + self.cmd('vm show -g {rg} -n {vm1}', checks=[ + self.check('scheduledEventsPolicy.scheduledEventsAdditionalPublishingTargets.eventGridAndResourceGraph.enable', True), + self.check('scheduledEventsPolicy.userInitiatedRedeploy.automaticallyApprove', True), + self.check('scheduledEventsPolicy.userInitiatedReboot.automaticallyApprove', True) + ]) + self.cmd('vm update -g {rg} -n {vm1} --additional-events False --enable-reboot False --enable-redeploy False', checks=[ + self.check('scheduledEventsPolicy.scheduledEventsAdditionalPublishingTargets.eventGridAndResourceGraph.enable', False), + self.check('scheduledEventsPolicy.userInitiatedRedeploy.automaticallyApprove', False), + self.check('scheduledEventsPolicy.userInitiatedReboot.automaticallyApprove', False) + ]) + self.cmd('vm update -g {rg} -n {vm1} --additional-events true --enable-redeploy true --enable-reboot False ', checks=[ + self.check('scheduledEventsPolicy.scheduledEventsAdditionalPublishingTargets.eventGridAndResourceGraph.enable', True), + self.check('scheduledEventsPolicy.userInitiatedRedeploy.automaticallyApprove', True), + self.check('scheduledEventsPolicy.userInitiatedReboot.automaticallyApprove', False) + ]) + + self.cmd('vm create -g {rg} -n {vm2} --image Canonical:UbuntuServer:18.04-LTS:latest --nsg-rule NONE') + self.cmd('vm show -g {rg} -n {vm2}', checks=[ + self.check('scheduledEventsPolicy', None) + ]) + self.cmd('vm update -g {rg} -n {vm2} --additional-events True ', checks=[ + self.check('scheduledEventsPolicy.scheduledEventsAdditionalPublishingTargets.eventGridAndResourceGraph.enable', True) + ]) + self.cmd('vm update -g {rg} -n {vm2} --enable-reboot True --enable-redeploy true', checks=[ + self.check('scheduledEventsPolicy.scheduledEventsAdditionalPublishingTargets.eventGridAndResourceGraph.enable', True), + self.check('scheduledEventsPolicy.userInitiatedRedeploy.automaticallyApprove', True), + self.check('scheduledEventsPolicy.userInitiatedReboot.automaticallyApprove', True) + ]) class VMPriorityEvictionBillingTest(ScenarioTest):