From 482ec78355e0a8ddf945be4ae3f716bdab4a1e90 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Fri, 24 Jun 2022 21:29:43 +0800 Subject: [PATCH 01/16] disk support uploading with security data --- .../azure/cli/command_modules/vm/_help.py | 12 + .../azure/cli/command_modules/vm/_params.py | 23 +- .../cli/command_modules/vm/_validators.py | 39 ++ .../azure/cli/command_modules/vm/custom.py | 36 +- .../recordings/test_disk_trusted_launch.yaml | 649 ++++++++++++++++-- .../recordings/test_vm_managed_disk.yaml | 600 ++++++++-------- .../vm/tests/latest/test_vm_commands.py | 21 +- 7 files changed, 1050 insertions(+), 330 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index f3c79df4f3f..664c0b103db 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -80,6 +80,15 @@ - name: Create a disk and associate it with a disk access resource. text: > az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --network-access-policy AllowPrivate --disk-access MyDiskAccessID + - name: Create a disk from the blob URI for VM guest state VHD. + text: > + az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --security-data-uri GuestStateDiskVhdUri --security-type TrustedLaunch --hyper-v-generation V2 + - name: Create a standard disk for uploading blobs. + text: > + az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --upload-type Upload + - name: Create an OS disk for uploading along with VM guest state. + text: > + az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --upload-type UploadWithSecurityData --security-type TrustedLaunch --hyper-v-generation V2 """ helps['disk delete'] = """ @@ -100,6 +109,9 @@ text: | az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group MyResourceGroup crafted: true + - name: Grant a resource read access to a disk to generate access SAS and security data access SAS + text: | + az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyDisk --resource-group MyResourceGroup --secure-vm-guest-state-sas """ helps['disk list'] = """ 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 cb70d689d00..a854627d704 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -21,7 +21,7 @@ from azure.cli.command_modules.vm._validators import ( validate_nsg_name, validate_vm_nics, validate_vm_nic, validate_vmss_disk, validate_asg_names_or_ids, validate_keyvault, _validate_proximity_placement_group, - validate_vm_name_for_monitor_metrics) + validate_vm_name_for_monitor_metrics, validate_secure_vm_guest_state_sas) from azure.cli.command_modules.vm._vm_utils import MSI_LOCAL_ID from azure.cli.command_modules.vm._image_builder import ScriptType @@ -147,8 +147,6 @@ def load_arguments(self, _): c.argument('duration_in_seconds', help='Time duration in seconds until the SAS access expires', type=int) if self.supported_api_version(min_api='2018-09-30', operation_group='disks'): c.argument('access_level', arg_type=get_enum_type(['Read', 'Write']), default='Read', help='access level') - c.argument('for_upload', arg_type=get_three_state_flag(), - help='Create the {0} for uploading blobs later on through storage commands. Run "az {0} grant-access --access-level Write" to retrieve the {0}\'s SAS token.'.format(scope)) c.argument('hyper_v_generation', arg_type=hyper_v_gen_sku, help='The hypervisor generation of the Virtual Machine. Applicable to OS disks only.') else: c.ignore('access_level', 'for_upload', 'hyper_v_generation') @@ -196,6 +194,23 @@ def load_arguments(self, _): c.argument('data_access_auth_mode', arg_type=get_enum_type(['AzureActiveDirectory', 'None']), min_api='2021-12-01', help='Specify the auth mode when exporting or uploading to a disk or snapshot.') # endregion + # region Disks + with self.argument_context('disk create', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: + c.argument('security_data_uri', min_api='2022-03-02', help='Please specify the blob URI of VHD to be imported into VM guest state') + c.argument('for_upload', arg_type=get_three_state_flag(), min_api='2018-09-30', + deprecate_info=c.deprecate(redirect='--upload-type', hide=True), + help='Create the disk for uploading blobs. Replaced by "--upload-type Upload"') + c.argument('upload_type', arg_type=get_enum_type(['Upload', 'UploadWithSecurityData']), min_api='2018-09-30', + help="Create the disk for uploading scenario. 'Upload' is for Standard disk only uploading. 'UploadWithSecurityData' is for OS Disk uploading along with VM Guest State. ") + # endregion + + # region Disks + with self.argument_context('disk grant-access', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: + c.argument('secure_vm_guest_state_sas', options_list=['--secure-vm-guest-state-sas', '-s'], min_api='2022-03-02', + action='store_true', validator=validate_secure_vm_guest_state_sas, + help="Get SAS on managed disk with VM guest state. It will be used by default when the create option of disk is 'secureOSUpload'") + # endregion + # region Snapshots with self.argument_context('snapshot', resource_type=ResourceType.MGMT_COMPUTE, operation_group='snapshots') as c: c.argument('snapshot_name', existing_snapshot_name, id_part='name', completer=get_resource_name_completion_list('Microsoft.Compute/snapshots')) @@ -207,6 +222,8 @@ def load_arguments(self, _): c.argument('copy_start', arg_type=get_three_state_flag(), min_api='2021-04-01', help='Create snapshot by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source.') c.argument('architecture', arg_type=get_enum_type(self.get_models('Architecture', operation_group='snapshots')), min_api='2021-12-01', help='CPU architecture.') + c.argument('for_upload', arg_type=get_three_state_flag(), min_api='2018-09-30', + help='Create the snapshot for uploading blobs later on through storage commands. Run "az snapshot grant-access --access-level Write" to retrieve the snapshot\'s SAS token.') # endregion # region Images diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index 96d479417a7..61c9e5c39c9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1755,6 +1755,8 @@ def process_disk_create_namespace(cmd, namespace): validate_tags(namespace) validate_edge_zone(cmd, namespace) _validate_gallery_image_reference(cmd, namespace) + _validate_security_data_uri(namespace) + _validate_upload_type(namespace) if namespace.source: usage_error = 'usage error: --source {SNAPSHOT | DISK | RESTOREPOINT} | ' \ '--source VHD_BLOB_URI [--source-storage-account-id ID]' @@ -1768,6 +1770,34 @@ def process_disk_create_namespace(cmd, namespace): raise ArgumentUsageError(usage_error) +def _validate_security_data_uri(namespace): + if not namespace.security_data_uri: + return + + if not namespace.security_type: + return RequiredArgumentMissingError( + 'Please specify --security-type when using the --security-data-uri parameter') + + if not namespace.hyper_v_generation or namespace.hyper_v_generation != 'V2': + return ArgumentUsageError( + "Please specify --hyper-v-generation as 'V2' when using the --security-data-uri parameter") + + +def _validate_upload_type(namespace): + if not namespace.upload_type and namespace.for_upload: + namespace.upload_type = 'Upload' + + if namespace.upload_type == 'UploadWithSecurityData': + + if not namespace.security_type: + return RequiredArgumentMissingError( + "Please specify --security-type when the value of --upload-type is 'UploadWithSecurityData'") + + if not namespace.hyper_v_generation or namespace.hyper_v_generation != 'V2': + return ArgumentUsageError( + "Please specify --hyper-v-generation as 'V2' the value of --upload-type is 'UploadWithSecurityData'") + + def process_snapshot_create_namespace(cmd, namespace): from azure.core.exceptions import HttpResponseError validate_tags(namespace) @@ -2268,3 +2298,12 @@ def _validate_community_gallery_legal_agreement_acceptance(cmd, namespace): if not prompt_y_n(msg, default="y"): import sys sys.exit(0) + + +def validate_secure_vm_guest_state_sas(cmd, namespace): + compute_client = _compute_client_factory(cmd.cli_ctx) + disk_info = compute_client.disks.get(namespace.resource_group_name, namespace.disk_name) + DiskCreateOption = cmd.get_models('DiskCreateOption') + + if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: + namespace.secure_vm_guest_state_sas = True 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 09f29dd0f65..2a375cc0ef9 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -179,12 +179,14 @@ def _get_sku_object(cmd, sku): return sku -def _grant_access(cmd, resource_group_name, name, duration_in_seconds, is_disk, access_level): +def _grant_access(cmd, resource_group_name, name, duration_in_seconds, is_disk, access_level, + secure_vm_guest_state_sas=None): AccessLevel, GrantAccessData = cmd.get_models('AccessLevel', 'GrantAccessData') client = _compute_client_factory(cmd.cli_ctx) op = client.disks if is_disk else client.snapshots - grant_access_data = GrantAccessData( - access=access_level or AccessLevel.read, duration_in_seconds=duration_in_seconds) + grant_access_data = GrantAccessData(access=access_level or AccessLevel.read, + duration_in_seconds=duration_in_seconds, + secure_vm_guest_state_sas=secure_vm_guest_state_sas) return op.begin_grant_access(resource_group_name, name, grant_access_data) @@ -297,7 +299,8 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p network_access_policy=None, disk_access=None, logical_sector_size=None, tier=None, enable_bursting=None, edge_zone=None, security_type=None, support_hibernation=None, public_network_access=None, accelerated_network=None, architecture=None, - data_access_auth_mode=None, gallery_image_reference_type=None): + data_access_auth_mode=None, gallery_image_reference_type=None, security_data_uri=None, + upload_type=None): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id @@ -311,8 +314,10 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p option = DiskCreateOption.copy elif source_restore_point: option = DiskCreateOption.restore - elif for_upload: + elif upload_type == 'Upload': option = DiskCreateOption.upload + elif upload_type == 'UploadWithSecurityData': + option = DiskCreateOption.upload_prepared_secure elif image_reference or gallery_image_reference: option = DiskCreateOption.from_image else: @@ -325,8 +330,9 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p subscription=subscription_id, resource_group=resource_group_name, namespace='Microsoft.Storage', type='storageAccounts', name=storage_account_name) - if upload_size_bytes is not None and for_upload is not True: - raise CLIError('usage error: --upload-size-bytes should be used together with --for-upload') + if upload_size_bytes is not None and not upload_type: + raise RequiredArgumentMissingError( + 'usage error: --upload-size-bytes should be used together with --upload-type') if image_reference is not None: if not is_valid_resource_id(image_reference): @@ -359,10 +365,13 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p source_resource_id=source_disk or source_snapshot or source_restore_point, storage_account_id=source_storage_account_id, upload_size_bytes=upload_size_bytes, - logical_sector_size=logical_sector_size) + logical_sector_size=logical_sector_size, + security_data_uri=security_data_uri) - if size_gb is None and upload_size_bytes is None and (option == DiskCreateOption.empty or for_upload): - raise CLIError('usage error: --size-gb or --upload-size-bytes required to create an empty disk') + if size_gb is None and upload_size_bytes is None and \ + (option == DiskCreateOption.empty or option == DiskCreateOption.upload): + raise RequiredArgumentMissingError( + 'usage error: --size-gb or --upload-size-bytes required to create an empty disk') if disk_encryption_set is not None and not is_valid_resource_id(disk_encryption_set): disk_encryption_set = resource_id( @@ -427,9 +436,10 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p return sdk_no_wait(no_wait, client.disks.begin_create_or_update, resource_group_name, disk_name, disk) -def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None): +def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None, + secure_vm_guest_state_sas=None): return _grant_access(cmd, resource_group_name, disk_name, duration_in_seconds, is_disk=True, - access_level=access_level) + access_level=access_level, secure_vm_guest_state_sas=secure_vm_guest_state_sas) def list_managed_disks(cmd, resource_group_name=None): @@ -579,7 +589,7 @@ def create_snapshot(cmd, resource_group_name, snapshot_name, location=None, size source_blob_uri=None, source_disk=None, source_snapshot=None, source_storage_account_id=None, hyper_v_generation=None, tags=None, no_wait=False, disk_encryption_set=None, encryption_type=None, network_access_policy=None, disk_access=None, edge_zone=None, - public_network_access=None, accelerated_network=None, architecture=None): + public_network_access=None, accelerated_network=None, architecture=None, ): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml index eb330b1e9b1..ebb807091b2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_trusted_launch_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001","name":"cli_test_disk_trusted_launch_000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:56:40Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001","name":"cli_test_disk_trusted_launch_000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-26T13:00:37Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:43 GMT + - Sun, 26 Jun 2022 13:00:43 GMT expires: - '-1' pragma: @@ -55,7 +55,7 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18_04-lts-gen2/versions/18.04.202004290?api-version=2022-03-01 response: @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:44 GMT + - Sun, 26 Jun 2022 13:00:44 GMT expires: - '-1' pragma: @@ -99,7 +99,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -124,12 +124,12 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 response: body: - string: "{\r\n \"name\": \"d1\",\r\n \"location\": \"southcentralus\",\r\n + string: "{\r\n \"name\": \"disk1\",\r\n \"location\": \"southcentralus\",\r\n \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n \ \"properties\": {\r\n \"osType\": \"Linux\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"supportsHibernation\": false,\r\n \"supportedCapabilities\": @@ -139,27 +139,27 @@ interactions: \ }\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n - \ {\r\n \"id\": \"9fed446d-d36f-473a-8ef7-0c1312a79d2a\",\r\n \"type\": - \"VmgsBlob\",\r\n \"name\": \"9fed446d-d36f-473a-8ef7-0c1312a79d2a_vmgs\",\r\n + \ {\r\n \"id\": \"96def64a-aec3-4833-82d4-ab9d034a490d\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"96def64a-aec3-4833-82d4-ab9d034a490d_vmgs\",\r\n \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\"\r\n \ }\r\n ]\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/e429298c-8b50-4209-81af-52358c7f2d21?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: - - '1237' + - '1240' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:51 GMT + - Sun, 26 Jun 2022 13:00:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/e429298c-8b50-4209-81af-52358c7f2d21?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -170,9 +170,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1199' status: code: 202 message: Accepted @@ -190,15 +190,164 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/e429298c-8b50-4209-81af-52358c7f2d21?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:56:51.1722522+00:00\",\r\n \"endTime\": - \"2022-06-13T08:56:52.0004005+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1\",\r\n + string: "{\r\n \"startTime\": \"2022-06-26T13:00:53.3146397+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"3ff0d5db-86ac-4721-92dc-b9e878bb9cb8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:00:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399996 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-reference --hyper-v-generation --security-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-26T13:00:53.3146397+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"3ff0d5db-86ac-4721-92dc-b9e878bb9cb8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399994 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-reference --hyper-v-generation --security-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-26T13:00:53.3146397+00:00\",\r\n \"endTime\": + \"2022-06-26T13:01:14.9254891+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"disk1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\"type\":\"Microsoft.Compute/disks\",\"location\":\"southcentralus\",\"tags\":{},\"sku\":{\"name\":\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"osType\":\"Linux\",\"hyperVGeneration\":\"V2\",\"supportsHibernation\":false,\"supportedCapabilities\":{\"acceleratedNetwork\":true,\"architecture\":\"x64\"},\"creationData\":{\"createOption\":\"FromImage\",\"imageReference\":{\"id\":\"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/southcentralus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18_04-lts-gen2/Versions/18.04.202004290\"}},\"diskSizeGB\":30,\"diskIOPSReadWrite\":120,\"diskMBpsReadWrite\":25,\"encryption\":{\"type\":\"EncryptionAtRestWithPlatformKey\"},\"networkAccessPolicy\":\"AllowAll\",\"securityProfile\":{\"securityType\":\"TrustedLaunch\"},\"publicNetworkAccess\":\"Enabled\",\"timeCreated\":\"2022-06-26T13:00:53.3458856+00:00\",\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\",\"diskSizeBytes\":32213303296,\"uniqueId\":\"56f39fed-bad3-464f-957a-3863b99dc177\",\"tier\":\"P4\"}}\r\n + \ },\r\n \"name\": \"3ff0d5db-86ac-4721-92dc-b9e878bb9cb8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1380' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399992 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-reference --hyper-v-generation --security-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n @@ -211,19 +360,19 @@ interactions: \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:56:51.234709+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-26T13:00:53.3458856+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n - \ \"uniqueId\": \"b5e6651b-bd6c-474f-a757-20ace94507d6\",\r\n \"tier\": - \"P4\"\r\n }\r\n}\r\n },\r\n \"name\": \"e429298c-8b50-4209-81af-52358c7f2d21\"\r\n}" + \ \"uniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\",\r\n \"tier\": + \"P4\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1655' + - '1437' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:53 GMT + - Sun, 26 Jun 2022 13:01:36 GMT expires: - '-1' pragma: @@ -240,7 +389,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 + - Microsoft.Compute/LowCostGet3Min;14997,Microsoft.Compute/LowCostGet30Min;119991 status: code: 200 message: OK @@ -248,22 +397,131 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - disk create + - disk show Connection: - keep-alive ParameterSetName: - - -g -n --image-reference --hyper-v-generation --security-type + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"FromImage\",\r\n \"imageReference\": {\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/southcentralus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18_04-lts-gen2/Versions/18.04.202004290\"\r\n + \ }\r\n },\r\n \"diskSizeGB\": 30,\r\n \"diskIOPSReadWrite\": + 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:00:53.3458856+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\",\r\n \"tier\": + \"P4\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1437' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14996,Microsoft.Compute/LowCostGet30Min;119990 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/disk1?api-version=2021-12-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/snapshots/disk1'' + under resource group ''cli_test_disk_trusted_launch_000001'' was not found. + For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '240' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 response: body: - string: "{\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1\",\r\n + string: "{\r\n \"name\": \"disk1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n @@ -276,19 +534,330 @@ interactions: \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:56:51.234709+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-26T13:00:53.3458856+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n - \ \"uniqueId\": \"b5e6651b-bd6c-474f-a757-20ace94507d6\",\r\n \"tier\": + \ \"uniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\",\r\n \"tier\": \"P4\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1430' + - '1437' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14995,Microsoft.Compute/LowCostGet30Min;119989 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_trusted_launch_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001","name":"cli_test_disk_trusted_launch_000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-26T13:00:37Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '356' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Copy", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + Content-Length: + - '325' + Content-Type: + - application/json + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1?api-version=2021-12-01 + response: + body: + string: "{\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": + {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Linux\",\r\n \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": + false,\r\n \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": + true,\r\n \"architecture\": \"x64\"\r\n },\r\n \"creationData\": + {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": + [\r\n {\r\n \"id\": \"33902e4e-1f84-43ef-9faf-cbc7e3b376ee\",\r\n + \ \"type\": \"VmgsBlob\",\r\n \"name\": \"33902e4e-1f84-43ef-9faf-cbc7e3b376ee_vmgs\",\r\n + \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n + \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sourceSubscriptionId\": \"214e84c6-4bb8-4a12-a9bd-1ae8bbaaab72\",\r\n + \ \"sourceEntityUri\": \"https://md-rqv0xl1pfqcz.z29.blob.storage.azure.net/cdtzrr1th244/96def64a-aec3-4833-82d4-ab9d034a490d_vmgs\",\r\n + \ \"sizeInBytes\": 4194304\r\n }\r\n ]\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/878b751f-3edf-4673-8392-6cf79a7ac002?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2021-12-01 + cache-control: + - no-cache + content-length: + - '1392' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/878b751f-3edf-4673-8392-6cf79a7ac002?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2021-12-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7999 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/878b751f-3edf-4673-8392-6cf79a7ac002?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2021-12-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-26T13:01:45.6306647+00:00\",\r\n \"endTime\": + \"2022-06-26T13:01:46.6306854+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"diskSizeGB\": 30,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:01:45.6462505+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"99eff1fe-9398-4c83-b7b7-8fa32e931d7e\"\r\n }\r\n}\r\n + \ },\r\n \"name\": \"878b751f-3edf-4673-8392-6cf79a7ac002\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1593' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399991 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1?api-version=2021-12-01 + response: + body: + string: "{\r\n \"name\": \"snapshot1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"diskSizeGB\": 30,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:01:45.6462505+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"99eff1fe-9398-4c83-b7b7-8fa32e931d7e\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1368' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14994,Microsoft.Compute/LowCostGet30Min;119988 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1?api-version=2021-12-01 + response: + body: + string: "{\r\n \"name\": \"snapshot1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"diskSizeGB\": 30,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:01:45.6462505+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"99eff1fe-9398-4c83-b7b7-8fa32e931d7e\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1368' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:53 GMT + - Sun, 26 Jun 2022 13:01:49 GMT expires: - '-1' pragma: @@ -305,7 +874,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14999,Microsoft.Compute/LowCostGet30Min;119999 + - Microsoft.Compute/LowCostGet3Min;14993,Microsoft.Compute/LowCostGet30Min;119987 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml index 4d939adeba8..241f063745f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:23:58 GMT + - Mon, 27 Jun 2022 03:06:34 GMT expires: - '-1' pragma: @@ -61,7 +61,7 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -74,7 +74,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/70a28d0d-f436-4380-973e-76648f6b3044?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d7c92d6e-d808-4eb5-80fd-5183a0a7da07?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -82,11 +82,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:04 GMT + - Mon, 27 Jun 2022 03:06:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/70a28d0d-f436-4380-973e-76648f6b3044?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d7c92d6e-d808-4eb5-80fd-5183a0a7da07?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -97,7 +97,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;996,Microsoft.Compute/CreateUpdateDisks30Min;7996 + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -117,13 +117,13 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/70a28d0d-f436-4380-973e-76648f6b3044?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d7c92d6e-d808-4eb5-80fd-5183a0a7da07?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:04.8998818+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:06:41.07858+00:00\",\r\n \"endTime\": + \"2022-06-27T03:06:41.2191856+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n @@ -134,19 +134,19 @@ interactions: 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 1073741824,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\",\r\n \"tier\": - \"P1\"\r\n }\r\n}\r\n },\r\n \"name\": \"70a28d0d-f436-4380-973e-76648f6b3044\"\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\",\r\n \"tier\": + \"P1\"\r\n }\r\n}\r\n },\r\n \"name\": \"d7c92d6e-d808-4eb5-80fd-5183a0a7da07\"\r\n}" headers: cache-control: - no-cache content-length: - - '1153' + - '1151' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:07 GMT + - Mon, 27 Jun 2022 03:06:43 GMT expires: - '-1' pragma: @@ -163,7 +163,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399996 + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 status: code: 200 message: OK @@ -181,7 +181,7 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -195,9 +195,9 @@ interactions: 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 1073741824,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\",\r\n \"tier\": + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\",\r\n \"tier\": \"P1\"\r\n }\r\n}" headers: cache-control: @@ -207,7 +207,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:07 GMT + - Mon, 27 Jun 2022 03:06:43 GMT expires: - '-1' pragma: @@ -224,7 +224,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4993,Microsoft.Compute/LowCostGet30Min;39993 + - Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39999 status: code: 200 message: OK @@ -242,7 +242,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -256,9 +256,9 @@ interactions: 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 1073741824,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\",\r\n \"tier\": + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\",\r\n \"tier\": \"P1\"\r\n }\r\n}" headers: cache-control: @@ -268,7 +268,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:08 GMT + - Mon, 27 Jun 2022 03:06:45 GMT expires: - '-1' pragma: @@ -285,7 +285,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;39992 + - Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;39998 status: code: 200 message: OK @@ -311,7 +311,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -326,7 +326,7 @@ interactions: true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/700292e9-5ce8-43a1-b5c8-0f95a88ddb87?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/e2d3b491-d094-471e-9c49-204860d16514?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -334,11 +334,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:09 GMT + - Mon, 27 Jun 2022 03:06:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/700292e9-5ce8-43a1-b5c8-0f95a88ddb87?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/e2d3b491-d094-471e-9c49-204860d16514?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -349,9 +349,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;994,Microsoft.Compute/CreateUpdateDisks30Min;7994 + - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -369,13 +369,13 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/700292e9-5ce8-43a1-b5c8-0f95a88ddb87?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/e2d3b491-d094-471e-9c49-204860d16514?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:09.18131+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:09.3063228+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:06:48.43801+00:00\",\r\n \"endTime\": + \"2022-06-27T03:06:48.5473678+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n @@ -386,10 +386,10 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}\r\n - \ },\r\n \"name\": \"700292e9-5ce8-43a1-b5c8-0f95a88ddb87\"\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}\r\n + \ },\r\n \"name\": \"e2d3b491-d094-471e-9c49-204860d16514\"\r\n}" headers: cache-control: - no-cache @@ -398,7 +398,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:11 GMT + - Mon, 27 Jun 2022 03:06:50 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399990 + - Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399997 status: code: 200 message: OK @@ -433,7 +433,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -447,9 +447,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -458,7 +458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:11 GMT + - Mon, 27 Jun 2022 03:06:50 GMT expires: - '-1' pragma: @@ -475,7 +475,67 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;39987 + - Microsoft.Compute/LowCostGet3Min;4995,Microsoft.Compute/LowCostGet30Min;39995 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -g -n --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"sku\": {\r\n \"name\": + \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": + {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 10737418240,\r\n + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '913' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 03:06:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4994,Microsoft.Compute/LowCostGet30Min;39994 status: code: 200 message: OK @@ -497,7 +557,7 @@ interactions: ParameterSetName: - -g -n --duration-in-seconds User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1/beginGetAccess?api-version=2022-03-02 response: @@ -505,17 +565,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: - '0' date: - - Mon, 13 Jun 2022 08:24:12 GMT + - Mon, 27 Jun 2022 03:06:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -546,15 +606,15 @@ interactions: ParameterSetName: - -g -n --duration-in-seconds User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:12.4939586+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:12.9158694+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hdd-gh4jzbrc0nhr.z18.blob.storage.azure.net/vkk2q43prnhc/abcd?sv=2018-03-28&sr=b&si=28ae9a2b-56ba-436e-91e1-d2ec5cfc94ec&sig=r74ZN6cJ5xjbDkmHVydWM4CrlyLH4cTymuz632ZxhFY%3D\"\r\n}\r\n - \ },\r\n \"name\": \"84a7486c-9299-47cb-baaa-54ad037e8934\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:06:54.1880239+00:00\",\r\n \"endTime\": + \"2022-06-27T03:06:54.6411625+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hdd-j2z3mgb3vdkd.z49.blob.storage.azure.net/j5kgggl2f4k4/abcd?sv=2018-03-28&sr=b&si=b6a15d3b-0257-4226-b0c6-4ce6e292a3e2&sig=5tCTZyAQQstEW4hCJFNwOIzPdwNCN6lPdWQsbG0lUlU%3D\"\r\n}\r\n + \ },\r\n \"name\": \"b1ae85e9-cb10-4aef-90d4-62c8449c941c\"\r\n}" headers: cache-control: - no-cache @@ -563,7 +623,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:42 GMT + - Mon, 27 Jun 2022 03:07:24 GMT expires: - '-1' pragma: @@ -580,7 +640,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49979,Microsoft.Compute/GetOperation30Min;399979 + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399994 status: code: 200 message: OK @@ -598,12 +658,12 @@ interactions: ParameterSetName: - -g -n --duration-in-seconds User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 response: body: - string: "{\r\n \"accessSAS\": \"https://md-hdd-gh4jzbrc0nhr.z18.blob.storage.azure.net/vkk2q43prnhc/abcd?sv=2018-03-28&sr=b&si=28ae9a2b-56ba-436e-91e1-d2ec5cfc94ec&sig=r74ZN6cJ5xjbDkmHVydWM4CrlyLH4cTymuz632ZxhFY%3D\"\r\n}" + string: "{\r\n \"accessSAS\": \"https://md-hdd-j2z3mgb3vdkd.z49.blob.storage.azure.net/j5kgggl2f4k4/abcd?sv=2018-03-28&sr=b&si=b6a15d3b-0257-4226-b0c6-4ce6e292a3e2&sig=5tCTZyAQQstEW4hCJFNwOIzPdwNCN6lPdWQsbG0lUlU%3D\"\r\n}" headers: cache-control: - no-cache @@ -612,7 +672,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:42 GMT + - Mon, 27 Jun 2022 03:07:24 GMT expires: - '-1' pragma: @@ -629,7 +689,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49978,Microsoft.Compute/GetOperation30Min;399978 + - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399993 status: code: 200 message: OK @@ -647,12 +707,12 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -661,7 +721,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:43 GMT + - Mon, 27 Jun 2022 03:07:25 GMT expires: - '-1' pragma: @@ -695,7 +755,7 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2022-03-02 response: @@ -704,12 +764,12 @@ interactions: {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"publicNetworkAccess\": \"Enabled\",\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d3e70a3a-d612-4fc7-9099-aac7bf9b175c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7c425189-49de-4741-84af-2422c7cd789f?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -717,11 +777,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:45 GMT + - Mon, 27 Jun 2022 03:07:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d3e70a3a-d612-4fc7-9099-aac7bf9b175c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7c425189-49de-4741-84af-2422c7cd789f?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -732,9 +792,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;991,Microsoft.Compute/CreateUpdateDisks30Min;7991 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -752,13 +812,13 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d3e70a3a-d612-4fc7-9099-aac7bf9b175c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7c425189-49de-4741-84af-2422c7cd789f?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:45.5268198+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:46.4174763+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:07:31.0788861+00:00\",\r\n \"endTime\": + \"2022-06-27T03:07:32.1570656+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n @@ -766,14 +826,14 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:45.5268198+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:31.0788861+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f1ad00f4-4dd7-4971-b11d-1b91d4c2eefd\",\r\n - \ \"tier\": \"P3\"\r\n }\r\n}\r\n },\r\n \"name\": \"d3e70a3a-d612-4fc7-9099-aac7bf9b175c\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"28f8a4f5-1d37-43b1-85fd-39d4594e6db7\",\r\n + \ \"tier\": \"P3\"\r\n }\r\n}\r\n },\r\n \"name\": \"7c425189-49de-4741-84af-2422c7cd789f\"\r\n}" headers: cache-control: - no-cache @@ -782,7 +842,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:47 GMT + - Mon, 27 Jun 2022 03:07:33 GMT expires: - '-1' pragma: @@ -799,7 +859,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49977,Microsoft.Compute/GetOperation30Min;399977 + - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399992 status: code: 200 message: OK @@ -817,7 +877,7 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2022-03-02 response: @@ -828,13 +888,13 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:45.5268198+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:31.0788861+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f1ad00f4-4dd7-4971-b11d-1b91d4c2eefd\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"28f8a4f5-1d37-43b1-85fd-39d4594e6db7\",\r\n \ \"tier\": \"P3\"\r\n }\r\n}" headers: cache-control: @@ -844,7 +904,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:47 GMT + - Mon, 27 Jun 2022 03:07:34 GMT expires: - '-1' pragma: @@ -861,7 +921,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4966,Microsoft.Compute/LowCostGet30Min;39966 + - Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;39991 status: code: 200 message: OK @@ -879,12 +939,12 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -893,7 +953,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:48 GMT + - Mon, 27 Jun 2022 03:07:35 GMT expires: - '-1' pragma: @@ -927,7 +987,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -940,7 +1000,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ad50edff-12f6-4f9c-8b25-051e85e5d626?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/239353a1-f977-41a0-9785-fcc5dcff7849?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 cache-control: - no-cache content-length: @@ -948,11 +1008,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:54 GMT + - Mon, 27 Jun 2022 03:07:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ad50edff-12f6-4f9c-8b25-051e85e5d626?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/239353a1-f977-41a0-9785-fcc5dcff7849?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 pragma: - no-cache server: @@ -963,7 +1023,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;998,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -983,13 +1043,13 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ad50edff-12f6-4f9c-8b25-051e85e5d626?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/239353a1-f977-41a0-9785-fcc5dcff7849?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:54.9803624+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:07:43.2195917+00:00\",\r\n \"endTime\": + \"2022-06-27T03:07:43.4227158+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"s1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westus\",\r\n @@ -999,19 +1059,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"ad50edff-12f6-4f9c-8b25-051e85e5d626\"\r\n}" + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"239353a1-f977-41a0-9785-fcc5dcff7849\"\r\n}" headers: cache-control: - no-cache content-length: - - '1108' + - '1107' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:56 GMT + - Mon, 27 Jun 2022 03:07:44 GMT expires: - '-1' pragma: @@ -1028,7 +1088,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49975,Microsoft.Compute/GetOperation30Min;399975 + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399990 status: code: 200 message: OK @@ -1046,7 +1106,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1059,19 +1119,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '883' + - '882' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:57 GMT + - Mon, 27 Jun 2022 03:07:45 GMT expires: - '-1' pragma: @@ -1088,7 +1148,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4963,Microsoft.Compute/LowCostGet30Min;39963 + - Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;39988 status: code: 200 message: OK @@ -1106,7 +1166,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1119,19 +1179,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '883' + - '882' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:58 GMT + - Mon, 27 Jun 2022 03:07:47 GMT expires: - '-1' pragma: @@ -1148,7 +1208,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4962,Microsoft.Compute/LowCostGet30Min;39962 + - Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;39987 status: code: 200 message: OK @@ -1173,7 +1233,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1188,7 +1248,7 @@ interactions: \ \"isArmResource\": true,\r\n \"faultDomain\": 0\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c8a353c5-9c30-4b42-a7a7-d737fd925166?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/1040f2ae-c3a7-45cc-a374-d0e5a2421aeb?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 cache-control: - no-cache content-length: @@ -1196,11 +1256,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:59 GMT + - Mon, 27 Jun 2022 03:07:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c8a353c5-9c30-4b42-a7a7-d737fd925166?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/1040f2ae-c3a7-45cc-a374-d0e5a2421aeb?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 pragma: - no-cache server: @@ -1211,9 +1271,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;997,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7997 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;998,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -1231,13 +1291,13 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c8a353c5-9c30-4b42-a7a7-d737fd925166?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/1040f2ae-c3a7-45cc-a374-d0e5a2421aeb?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:59.9806034+00:00\",\r\n \"endTime\": - \"2022-06-13T08:25:00.9025241+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:07:50.2352756+00:00\",\r\n \"endTime\": + \"2022-06-27T03:07:51.2509058+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"s1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westus\",\r\n @@ -1247,19 +1307,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"c8a353c5-9c30-4b42-a7a7-d737fd925166\"\r\n}" + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"1040f2ae-c3a7-45cc-a374-d0e5a2421aeb\"\r\n}" headers: cache-control: - no-cache content-length: - - '1110' + - '1109' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:52 GMT expires: - '-1' pragma: @@ -1276,7 +1336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49973,Microsoft.Compute/GetOperation30Min;399973 + - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399988 status: code: 200 message: OK @@ -1294,7 +1354,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1307,19 +1367,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:52 GMT expires: - '-1' pragma: @@ -1336,7 +1396,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4960,Microsoft.Compute/LowCostGet30Min;39960 + - Microsoft.Compute/LowCostGet3Min;4985,Microsoft.Compute/LowCostGet30Min;39985 status: code: 200 message: OK @@ -1354,7 +1414,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -1370,7 +1430,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:54 GMT expires: - '-1' pragma: @@ -1398,7 +1458,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -1412,9 +1472,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1423,7 +1483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:54 GMT expires: - '-1' pragma: @@ -1440,7 +1500,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4959,Microsoft.Compute/LowCostGet30Min;39959 + - Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;39983 status: code: 200 message: OK @@ -1458,12 +1518,12 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1472,7 +1532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:03 GMT + - Mon, 27 Jun 2022 03:07:55 GMT expires: - '-1' pragma: @@ -1506,7 +1566,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2021-12-01 response: @@ -1515,12 +1575,12 @@ interactions: \ \"name\": \"Premium_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \ \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"publicNetworkAccess\": \"Enabled\",\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dce3ceb1-2159-4d3a-bc48-878157f8d3f5?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/8aba5897-b8d7-4f25-9442-d3f59e5e032c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 cache-control: - no-cache content-length: @@ -1528,11 +1588,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:10 GMT + - Mon, 27 Jun 2022 03:08:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dce3ceb1-2159-4d3a-bc48-878157f8d3f5?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/8aba5897-b8d7-4f25-9442-d3f59e5e032c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 pragma: - no-cache server: @@ -1543,7 +1603,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;996,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7996 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;997,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1563,13 +1623,13 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dce3ceb1-2159-4d3a-bc48-878157f8d3f5?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/8aba5897-b8d7-4f25-9442-d3f59e5e032c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:25:11.6217524+00:00\",\r\n \"endTime\": - \"2022-06-13T08:25:12.262386+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:08:02.1728199+00:00\",\r\n \"endTime\": + \"2022-06-27T03:08:02.7978424+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"s2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westus\",\r\n @@ -1577,22 +1637,22 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n - \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:25:11.6217524+00:00\",\r\n + \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:08:02.1728199+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"cf55df67-6363-4808-9b33-5d8f8fe7368a\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"dce3ceb1-2159-4d3a-bc48-878157f8d3f5\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"76b67ab8-52f4-42ec-b6c5-93b4ae254d59\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"8aba5897-b8d7-4f25-9442-d3f59e5e032c\"\r\n}" headers: cache-control: - no-cache content-length: - - '1313' + - '1314' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:13 GMT + - Mon, 27 Jun 2022 03:08:04 GMT expires: - '-1' pragma: @@ -1609,7 +1669,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49971,Microsoft.Compute/GetOperation30Min;399971 + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399986 status: code: 200 message: OK @@ -1627,7 +1687,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2021-12-01 response: @@ -1638,12 +1698,12 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n - \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:25:11.6217524+00:00\",\r\n + \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:08:02.1728199+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"cf55df67-6363-4808-9b33-5d8f8fe7368a\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"76b67ab8-52f4-42ec-b6c5-93b4ae254d59\"\r\n \ }\r\n}" headers: cache-control: @@ -1653,7 +1713,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:13 GMT + - Mon, 27 Jun 2022 03:08:04 GMT expires: - '-1' pragma: @@ -1670,7 +1730,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4955,Microsoft.Compute/LowCostGet30Min;39955 + - Microsoft.Compute/LowCostGet3Min;4980,Microsoft.Compute/LowCostGet30Min;39980 status: code: 200 message: OK @@ -1688,7 +1748,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2022-03-01 response: @@ -1704,7 +1764,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:15 GMT + - Mon, 27 Jun 2022 03:08:06 GMT expires: - '-1' pragma: @@ -1732,7 +1792,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1745,19 +1805,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:15 GMT + - Mon, 27 Jun 2022 03:08:08 GMT expires: - '-1' pragma: @@ -1774,7 +1834,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4954,Microsoft.Compute/LowCostGet30Min;39954 + - Microsoft.Compute/LowCostGet3Min;4979,Microsoft.Compute/LowCostGet30Min;39979 status: code: 200 message: OK @@ -1792,7 +1852,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -1808,7 +1868,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:16 GMT + - Mon, 27 Jun 2022 03:08:08 GMT expires: - '-1' pragma: @@ -1836,7 +1896,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -1850,9 +1910,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1861,7 +1921,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:16 GMT + - Mon, 27 Jun 2022 03:08:08 GMT expires: - '-1' pragma: @@ -1871,14 +1931,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4953,Microsoft.Compute/LowCostGet30Min;39953 + - Microsoft.Compute/LowCostGet3Min;4977,Microsoft.Compute/LowCostGet30Min;39977 status: code: 200 message: OK @@ -1896,12 +1952,12 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1910,7 +1966,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:17 GMT + - Mon, 27 Jun 2022 03:08:09 GMT expires: - '-1' pragma: @@ -1948,7 +2004,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1?api-version=2022-03-01 response: @@ -1974,7 +2030,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/28c438fc-ee00-4232-9d87-e9a752537365?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/f7cf29d1-470d-44e7-8908-d9c940bbb60d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -1982,7 +2038,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:23 GMT + - Mon, 27 Jun 2022 03:08:17 GMT expires: - '-1' pragma: @@ -2015,14 +2071,14 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/28c438fc-ee00-4232-9d87-e9a752537365?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/f7cf29d1-470d-44e7-8908-d9c940bbb60d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:25:21.9958167+00:00\",\r\n \"endTime\": - \"2022-06-13T08:25:27.3083392+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"28c438fc-ee00-4232-9d87-e9a752537365\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:08:16.7859181+00:00\",\r\n \"endTime\": + \"2022-06-27T03:08:22.0363626+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"f7cf29d1-470d-44e7-8908-d9c940bbb60d\"\r\n}" headers: cache-control: - no-cache @@ -2031,7 +2087,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:53 GMT + - Mon, 27 Jun 2022 03:08:48 GMT expires: - '-1' pragma: @@ -2048,7 +2104,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29995 + - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29999 status: code: 200 message: OK @@ -2066,7 +2122,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1?api-version=2022-03-01 response: @@ -2098,7 +2154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:54 GMT + - Mon, 27 Jun 2022 03:08:48 GMT expires: - '-1' pragma: @@ -2133,7 +2189,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2022-03-01 response: @@ -2149,7 +2205,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:54 GMT + - Mon, 27 Jun 2022 03:08:51 GMT expires: - '-1' pragma: @@ -2177,7 +2233,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -2190,19 +2246,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:55 GMT + - Mon, 27 Jun 2022 03:08:52 GMT expires: - '-1' pragma: @@ -2219,7 +2275,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4936,Microsoft.Compute/LowCostGet30Min;39936 + - Microsoft.Compute/LowCostGet3Min;4971,Microsoft.Compute/LowCostGet30Min;39971 status: code: 200 message: OK @@ -2237,7 +2293,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -2253,7 +2309,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:56 GMT + - Mon, 27 Jun 2022 03:08:54 GMT expires: - '-1' pragma: @@ -2281,7 +2337,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -2295,9 +2351,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -2306,7 +2362,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:56 GMT + - Mon, 27 Jun 2022 03:08:54 GMT expires: - '-1' pragma: @@ -2323,7 +2379,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4934,Microsoft.Compute/LowCostGet30Min;39934 + - Microsoft.Compute/LowCostGet3Min;4970,Microsoft.Compute/LowCostGet30Min;39970 status: code: 200 message: OK @@ -2341,12 +2397,12 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2355,7 +2411,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:56 GMT + - Mon, 27 Jun 2022 03:08:55 GMT expires: - '-1' pragma: @@ -2393,7 +2449,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2?api-version=2022-03-01 response: @@ -2419,7 +2475,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8ff1566-b0f2-497a-8808-ebcf52141b9d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e13657c7-292a-4ea4-937e-fd8ee3d3bf0f?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -2427,7 +2483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:00 GMT + - Mon, 27 Jun 2022 03:08:59 GMT expires: - '-1' pragma: @@ -2442,7 +2498,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;38,Microsoft.Compute/CreateImages30Min;198 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -2460,14 +2516,14 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8ff1566-b0f2-497a-8808-ebcf52141b9d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e13657c7-292a-4ea4-937e-fd8ee3d3bf0f?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:25:59.7614681+00:00\",\r\n \"endTime\": - \"2022-06-13T08:26:04.8708686+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b8ff1566-b0f2-497a-8808-ebcf52141b9d\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:08:59.1304681+00:00\",\r\n \"endTime\": + \"2022-06-27T03:09:04.2242792+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e13657c7-292a-4ea4-937e-fd8ee3d3bf0f\"\r\n}" headers: cache-control: - no-cache @@ -2476,7 +2532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:31 GMT + - Mon, 27 Jun 2022 03:09:31 GMT expires: - '-1' pragma: @@ -2493,7 +2549,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29983 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29998 status: code: 200 message: OK @@ -2511,7 +2567,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2?api-version=2022-03-01 response: @@ -2543,7 +2599,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:31 GMT + - Mon, 27 Jun 2022 03:09:31 GMT expires: - '-1' pragma: @@ -2579,7 +2635,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2022-03-01 response: @@ -2595,7 +2651,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:32 GMT + - Mon, 27 Jun 2022 03:09:33 GMT expires: - '-1' pragma: @@ -2624,7 +2680,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -2637,19 +2693,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:33 GMT + - Mon, 27 Jun 2022 03:09:35 GMT expires: - '-1' pragma: @@ -2666,7 +2722,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4900,Microsoft.Compute/LowCostGet30Min;39900 + - Microsoft.Compute/LowCostGet3Min;4973,Microsoft.Compute/LowCostGet30Min;39965 status: code: 200 message: OK @@ -2685,7 +2741,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -2701,7 +2757,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:33 GMT + - Mon, 27 Jun 2022 03:09:36 GMT expires: - '-1' pragma: @@ -2730,7 +2786,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -2744,9 +2800,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -2755,7 +2811,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:33 GMT + - Mon, 27 Jun 2022 03:09:37 GMT expires: - '-1' pragma: @@ -2772,7 +2828,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4899,Microsoft.Compute/LowCostGet30Min;39899 + - Microsoft.Compute/LowCostGet3Min;4972,Microsoft.Compute/LowCostGet30Min;39964 status: code: 200 message: OK @@ -2791,12 +2847,12 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2805,7 +2861,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:34 GMT + - Mon, 27 Jun 2022 03:09:38 GMT expires: - '-1' pragma: @@ -2844,7 +2900,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3?api-version=2022-03-01 response: @@ -2870,7 +2926,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e57a8d5e-975c-4e11-8e81-04ea05d8787a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/35918092-f730-4218-8b22-3822db398776?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -2878,7 +2934,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:39 GMT + - Mon, 27 Jun 2022 03:09:45 GMT expires: - '-1' pragma: @@ -2893,7 +2949,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;37,Microsoft.Compute/CreateImages30Min;197 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -2912,14 +2968,14 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e57a8d5e-975c-4e11-8e81-04ea05d8787a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/35918092-f730-4218-8b22-3822db398776?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:26:38.6053191+00:00\",\r\n \"endTime\": - \"2022-06-13T08:26:43.7147144+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"e57a8d5e-975c-4e11-8e81-04ea05d8787a\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:09:44.8649377+00:00\",\r\n \"endTime\": + \"2022-06-27T03:09:49.9899067+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"35918092-f730-4218-8b22-3822db398776\"\r\n}" headers: cache-control: - no-cache @@ -2928,7 +2984,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:27:09 GMT + - Mon, 27 Jun 2022 03:10:17 GMT expires: - '-1' pragma: @@ -2945,7 +3001,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29974 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29997 status: code: 200 message: OK @@ -2964,7 +3020,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3?api-version=2022-03-01 response: @@ -2996,7 +3052,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:27:09 GMT + - Mon, 27 Jun 2022 03:10:17 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 7528c4bb791..9406a0fe240 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 @@ -7711,10 +7711,27 @@ def test_vm_trusted_launch_update(self, resource_group): self.check('securityProfile.uefiSettings.vTpmEnabled', True) ]) - # @unittest.skip('Service does not work') @ResourceGroupPreparer(name_prefix='cli_test_disk_trusted_launch_', location='southcentralus') def test_disk_trusted_launch(self): - self.cmd('disk create -g {rg} -n d1 --image-reference Canonical:UbuntuServer:18_04-lts-gen2:18.04.202004290 --hyper-v-generation V2 --security-type TrustedLaunch', checks=[ + + self.kwargs.update({ + 'disk': 'disk1', + 'snapshot': 'snapshot1' + }) + + self.kwargs['disk_id'] = self.cmd('disk create -g {rg} -n {disk} --image-reference Canonical:UbuntuServer:18_04-lts-gen2:18.04.202004290 --hyper-v-generation V2 --security-type TrustedLaunch', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch') + ]).get_output_in_json()['id'] + + self.cmd('disk show -g {rg} -n {disk}', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch') + ]) + + self.cmd('snapshot create -g {rg} -n {snapshot} --source {disk_id}', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch') + ]) + + self.cmd('snapshot show -g {rg} -n {snapshot}', checks=[ self.check('securityProfile.securityType', 'TrustedLaunch') ]) From 5aca528f611648bede1277f4d28c0a6efa7e70e5 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Mon, 27 Jun 2022 17:00:03 +0800 Subject: [PATCH 02/16] Add min api-version control --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- .../azure/cli/command_modules/vm/_validators.py | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index a854627d704..a5155702ecf 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -198,7 +198,7 @@ def load_arguments(self, _): with self.argument_context('disk create', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: c.argument('security_data_uri', min_api='2022-03-02', help='Please specify the blob URI of VHD to be imported into VM guest state') c.argument('for_upload', arg_type=get_three_state_flag(), min_api='2018-09-30', - deprecate_info=c.deprecate(redirect='--upload-type', hide=True), + deprecate_info=c.deprecate(target='--for-upload', redirect='--upload-type Upload', hide=True), help='Create the disk for uploading blobs. Replaced by "--upload-type Upload"') c.argument('upload_type', arg_type=get_enum_type(['Upload', 'UploadWithSecurityData']), min_api='2018-09-30', help="Create the disk for uploading scenario. 'Upload' is for Standard disk only uploading. 'UploadWithSecurityData' is for OS Disk uploading along with VM Guest State. ") diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index 61c9e5c39c9..3d28b5758cb 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1756,7 +1756,7 @@ def process_disk_create_namespace(cmd, namespace): validate_edge_zone(cmd, namespace) _validate_gallery_image_reference(cmd, namespace) _validate_security_data_uri(namespace) - _validate_upload_type(namespace) + _validate_upload_type(cmd, namespace) if namespace.source: usage_error = 'usage error: --source {SNAPSHOT | DISK | RESTOREPOINT} | ' \ '--source VHD_BLOB_URI [--source-storage-account-id ID]' @@ -1783,12 +1783,17 @@ def _validate_security_data_uri(namespace): "Please specify --hyper-v-generation as 'V2' when using the --security-data-uri parameter") -def _validate_upload_type(namespace): +def _validate_upload_type(cmd, namespace): if not namespace.upload_type and namespace.for_upload: namespace.upload_type = 'Upload' if namespace.upload_type == 'UploadWithSecurityData': + if not cmd.supported_api_version(min_api='2021-08-01', operation_group='disks'): + raise ArgumentUsageError( + "'UploadWithSecurityData' is not supported in the current profile. " + "Please upgrade your profile with 'az cloud set --profile newerProfile' and try again") + if not namespace.security_type: return RequiredArgumentMissingError( "Please specify --security-type when the value of --upload-type is 'UploadWithSecurityData'") From 9fad3c46562ca9737fd2c65e61bf0aabc5ed08d5 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Mon, 27 Jun 2022 17:24:11 +0800 Subject: [PATCH 03/16] Modify original verification --- src/azure-cli/azure/cli/command_modules/vm/custom.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 2a375cc0ef9..3dbcb5606c4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -368,10 +368,13 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p logical_sector_size=logical_sector_size, security_data_uri=security_data_uri) - if size_gb is None and upload_size_bytes is None and \ - (option == DiskCreateOption.empty or option == DiskCreateOption.upload): - raise RequiredArgumentMissingError( - 'usage error: --size-gb or --upload-size-bytes required to create an empty disk') + if size_gb is None and upload_size_bytes is None: + if option == DiskCreateOption.empty: + raise RequiredArgumentMissingError( + 'usage error: --size-gb or --upload-size-bytes required to create an empty disk') + if upload_type: + raise RequiredArgumentMissingError( + 'usage error: --size-gb or --upload-size-bytes required to create a disk for uploading') if disk_encryption_set is not None and not is_valid_resource_id(disk_encryption_set): disk_encryption_set = resource_id( From 82a21d3ce4a327999e8d04229c8fd3b7b2f1078a Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Tue, 28 Jun 2022 10:49:53 +0800 Subject: [PATCH 04/16] Hide the --secure-vm-guest-state-sas parameter and add more information in the help message --- .../azure/cli/command_modules/vm/_help.py | 3 --- .../azure/cli/command_modules/vm/_params.py | 11 ++--------- .../azure/cli/command_modules/vm/_validators.py | 9 --------- .../azure/cli/command_modules/vm/custom.py | 16 ++++++++++++---- 4 files changed, 14 insertions(+), 25 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 664c0b103db..576043f3662 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -109,9 +109,6 @@ text: | az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group MyResourceGroup crafted: true - - name: Grant a resource read access to a disk to generate access SAS and security data access SAS - text: | - az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyDisk --resource-group MyResourceGroup --secure-vm-guest-state-sas """ helps['disk list'] = """ 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 a5155702ecf..035754a4b1a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -21,7 +21,7 @@ from azure.cli.command_modules.vm._validators import ( validate_nsg_name, validate_vm_nics, validate_vm_nic, validate_vmss_disk, validate_asg_names_or_ids, validate_keyvault, _validate_proximity_placement_group, - validate_vm_name_for_monitor_metrics, validate_secure_vm_guest_state_sas) + validate_vm_name_for_monitor_metrics) from azure.cli.command_modules.vm._vm_utils import MSI_LOCAL_ID from azure.cli.command_modules.vm._image_builder import ScriptType @@ -201,14 +201,7 @@ def load_arguments(self, _): deprecate_info=c.deprecate(target='--for-upload', redirect='--upload-type Upload', hide=True), help='Create the disk for uploading blobs. Replaced by "--upload-type Upload"') c.argument('upload_type', arg_type=get_enum_type(['Upload', 'UploadWithSecurityData']), min_api='2018-09-30', - help="Create the disk for uploading scenario. 'Upload' is for Standard disk only uploading. 'UploadWithSecurityData' is for OS Disk uploading along with VM Guest State. ") - # endregion - - # region Disks - with self.argument_context('disk grant-access', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: - c.argument('secure_vm_guest_state_sas', options_list=['--secure-vm-guest-state-sas', '-s'], min_api='2022-03-02', - action='store_true', validator=validate_secure_vm_guest_state_sas, - help="Get SAS on managed disk with VM guest state. It will be used by default when the create option of disk is 'secureOSUpload'") + help="Create the disk for upload scenario. 'Upload' is for Standard disk only upload. 'UploadWithSecurityData' is for OS Disk upload along with VM Guest State. Please note the 'UploadWithSecurityData' is not valid for data disk upload, it only to be used for OS Disk upload at present.") # endregion # region Snapshots diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index 3d28b5758cb..63aaee95c49 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -2303,12 +2303,3 @@ def _validate_community_gallery_legal_agreement_acceptance(cmd, namespace): if not prompt_y_n(msg, default="y"): import sys sys.exit(0) - - -def validate_secure_vm_guest_state_sas(cmd, namespace): - compute_client = _compute_client_factory(cmd.cli_ctx) - disk_info = compute_client.disks.get(namespace.resource_group_name, namespace.disk_name) - DiskCreateOption = cmd.get_models('DiskCreateOption') - - if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: - namespace.secure_vm_guest_state_sas = True 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 3dbcb5606c4..f2e48759434 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -374,7 +374,7 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p 'usage error: --size-gb or --upload-size-bytes required to create an empty disk') if upload_type: raise RequiredArgumentMissingError( - 'usage error: --size-gb or --upload-size-bytes required to create a disk for uploading') + 'usage error: --size-gb or --upload-size-bytes required to create a disk for upload') if disk_encryption_set is not None and not is_valid_resource_id(disk_encryption_set): disk_encryption_set = resource_id( @@ -439,8 +439,16 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p return sdk_no_wait(no_wait, client.disks.begin_create_or_update, resource_group_name, disk_name, disk) -def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None, - secure_vm_guest_state_sas=None): +def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None): + + secure_vm_guest_state_sas = None + if cmd.supported_api_version(min_api='2021-08-01', operation_group='disks'): + compute_client = _compute_client_factory(cmd.cli_ctx) + disk_info = compute_client.disks.get(resource_group_name, disk_name) + DiskCreateOption = cmd.get_models('DiskCreateOption', operation_group='virtual_machines') + if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: + secure_vm_guest_state_sas = True + return _grant_access(cmd, resource_group_name, disk_name, duration_in_seconds, is_disk=True, access_level=access_level, secure_vm_guest_state_sas=secure_vm_guest_state_sas) @@ -592,7 +600,7 @@ def create_snapshot(cmd, resource_group_name, snapshot_name, location=None, size source_blob_uri=None, source_disk=None, source_snapshot=None, source_storage_account_id=None, hyper_v_generation=None, tags=None, no_wait=False, disk_encryption_set=None, encryption_type=None, network_access_policy=None, disk_access=None, edge_zone=None, - public_network_access=None, accelerated_network=None, architecture=None, ): + public_network_access=None, accelerated_network=None, architecture=None): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id From 0832cfe4d499ca279311753b2fc21bc6376aa093 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Tue, 28 Jun 2022 14:22:33 +0800 Subject: [PATCH 05/16] Hide the --secure-vm-guest-state-sas parameter and add more information in the help message --- src/azure-cli/azure/cli/command_modules/vm/custom.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 f2e48759434..3e0a1144051 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -185,8 +185,10 @@ def _grant_access(cmd, resource_group_name, name, duration_in_seconds, is_disk, client = _compute_client_factory(cmd.cli_ctx) op = client.disks if is_disk else client.snapshots grant_access_data = GrantAccessData(access=access_level or AccessLevel.read, - duration_in_seconds=duration_in_seconds, - secure_vm_guest_state_sas=secure_vm_guest_state_sas) + duration_in_seconds=duration_in_seconds) + if secure_vm_guest_state_sas: + grant_access_data.secure_vm_guest_state_sas = secure_vm_guest_state_sas + return op.begin_grant_access(resource_group_name, name, grant_access_data) @@ -445,7 +447,7 @@ def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, if cmd.supported_api_version(min_api='2021-08-01', operation_group='disks'): compute_client = _compute_client_factory(cmd.cli_ctx) disk_info = compute_client.disks.get(resource_group_name, disk_name) - DiskCreateOption = cmd.get_models('DiskCreateOption', operation_group='virtual_machines') + DiskCreateOption = cmd.get_models('DiskCreateOption', operation_group='disks') if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: secure_vm_guest_state_sas = True From f950e7ac0b5835ff1023e595e0e26be641a0558e Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Tue, 28 Jun 2022 17:40:12 +0800 Subject: [PATCH 06/16] Fix grant access data bug --- src/azure-cli/azure/cli/command_modules/vm/custom.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3e0a1144051..878190554ef 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -187,7 +187,7 @@ def _grant_access(cmd, resource_group_name, name, duration_in_seconds, is_disk, grant_access_data = GrantAccessData(access=access_level or AccessLevel.read, duration_in_seconds=duration_in_seconds) if secure_vm_guest_state_sas: - grant_access_data.secure_vm_guest_state_sas = secure_vm_guest_state_sas + grant_access_data.get_secure_vm_guest_state_sas = secure_vm_guest_state_sas return op.begin_grant_access(resource_group_name, name, grant_access_data) From fc6ed25c013f3e6dbdb8025ea71693ef5959948a Mon Sep 17 00:00:00 2001 From: songlu <442586197@qq.com> Date: Wed, 29 Jun 2022 14:50:16 +0800 Subject: [PATCH 07/16] test secure upload --- ..._trusted_launch_os_disk_secure_upload.yaml | 462 ++++++++++++++++++ .../vm/tests/latest/test_vm_commands.py | 15 + 2 files changed, 477 insertions(+) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml new file mode 100644 index 00000000000..6e99a78dbb1 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml @@ -0,0 +1,462 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T02:37:29Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '394' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"osType": "Windows", "hyperVGeneration": "V2", "creationData": + {"createOption": "UploadPreparedSecure", "uploadSizeBytes": 34359738880}, "securityProfile": + {"securityType": "TrustedLaunch"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + Content-Length: + - '282' + Content-Type: + - application/json + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n + \ \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Windows\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"creationData\": + {\r\n \"createOption\": \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": + 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": + \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n + \ {\r\n \"id\": \"ea051658-f076-4c82-a137-9389c540df1c\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"ea051658-f076-4c82-a137-9389c540df1c_vmgs\",\r\n + \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n + \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1102' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7992 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"endTime\": + \"2022-06-29T02:37:38.5908179+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk000002\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"eaf8e869-7a5c-4551-b4fa-3321180055ad\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1265' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399989 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1040' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119920 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1040' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119919 + status: + code: 200 + message: OK +- request: + body: '{"access": "Write", "durationInSeconds": 86400, "getSecureVMGuestStateSAS": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + Content-Length: + - '81' + Content-Type: + - application/json + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002/beginGetAccess?api-version=2022-03-02 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 29 Jun 2022 02:37:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7999 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T02:37:43.6065077+00:00\",\r\n \"endTime\": + \"2022-06-29T02:37:43.9971199+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}\r\n + \ },\r\n \"name\": \"9d7da018-0a3a-4758-a7da-0d86578c5cd1\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '693' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:38:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399986 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + response: + body: + string: "{\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '468' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:38:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399985 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 9406a0fe240..567940d7bb1 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 @@ -7735,6 +7735,21 @@ def test_disk_trusted_launch(self): self.check('securityProfile.securityType', 'TrustedLaunch') ]) + @ResourceGroupPreparer(name_prefix='cli_test_vm_trusted_launch_os_disk_secure_upload', location='southcentralus') + def test_vm_trusted_launch_os_disk_secure_upload(self): + self.kwargs.update({ + 'disk': self.create_random_name('disk', 10), + 'snapshot': self.create_random_name('snap', 10) + }) + self.cmd('disk create -n {disk} -g {rg} --os-type Windows --hyper-v-generation v2 --security-type TrustedLaunch --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch'), + self.check('creationData.createOption', 'UploadPreparedSecure'), + ]) + self.cmd('disk grant-access -n {disk} -g {rg} --access-level Write --duration-in-seconds 86400', checks=[ + self.exists('accessSas'), + self.exists('securityDataAccessSas') + ]) + @ResourceGroupPreparer(name_prefix='cli_test_vmss_trusted_launch_', location='southcentralus') def test_vmss_trusted(self, resource_group): self.cmd('vmss create -g {rg} -n vm --image canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest --security-type TrustedLaunch --admin-username azureuser --admin-password testPassword0 --disable-integrity-monitoring') From 7c83910f9f1af4864de326a70942d7c2baa146d7 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Thu, 30 Jun 2022 11:44:07 +0800 Subject: [PATCH 08/16] disk support uploading with security data --- .../azure/cli/command_modules/vm/_help.py | 9 + .../azure/cli/command_modules/vm/_params.py | 14 +- .../cli/command_modules/vm/_validators.py | 35 + .../azure/cli/command_modules/vm/custom.py | 47 +- .../recordings/test_disk_trusted_launch.yaml | 649 ++++++++++++++++-- .../recordings/test_vm_managed_disk.yaml | 600 ++++++++-------- ..._trusted_launch_os_disk_secure_upload.yaml | 462 +++++++++++++ .../vm/tests/latest/test_vm_commands.py | 36 +- 8 files changed, 1524 insertions(+), 328 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index c2119bd032a..5fc7c36b3e6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -80,6 +80,15 @@ - name: Create a disk and associate it with a disk access resource. text: > az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --network-access-policy AllowPrivate --disk-access MyDiskAccessID + - name: Create a disk from the blob URI for VM guest state VHD. + text: > + az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --security-data-uri GuestStateDiskVhdUri --security-type TrustedLaunch --hyper-v-generation V2 + - name: Create a standard disk for uploading blobs. + text: > + az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --upload-type Upload + - name: Create an OS disk for uploading along with VM guest state. + text: > + az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --upload-type UploadWithSecurityData --security-type TrustedLaunch --hyper-v-generation V2 """ helps['disk delete'] = """ 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 864baafd8c1..760ed8c4490 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -147,8 +147,6 @@ def load_arguments(self, _): c.argument('duration_in_seconds', help='Time duration in seconds until the SAS access expires', type=int) if self.supported_api_version(min_api='2018-09-30', operation_group='disks'): c.argument('access_level', arg_type=get_enum_type(['Read', 'Write']), default='Read', help='access level') - c.argument('for_upload', arg_type=get_three_state_flag(), - help='Create the {0} for uploading blobs later on through storage commands. Run "az {0} grant-access --access-level Write" to retrieve the {0}\'s SAS token.'.format(scope)) c.argument('hyper_v_generation', arg_type=hyper_v_gen_sku, help='The hypervisor generation of the Virtual Machine. Applicable to OS disks only.') else: c.ignore('access_level', 'for_upload', 'hyper_v_generation') @@ -197,6 +195,16 @@ def load_arguments(self, _): c.argument('data_access_auth_mode', arg_type=get_enum_type(['AzureActiveDirectory', 'None']), min_api='2021-12-01', help='Specify the auth mode when exporting or uploading to a disk or snapshot.') # endregion + # region Disks + with self.argument_context('disk create', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: + c.argument('security_data_uri', min_api='2022-03-02', help='Please specify the blob URI of VHD to be imported into VM guest state') + c.argument('for_upload', arg_type=get_three_state_flag(), min_api='2018-09-30', + deprecate_info=c.deprecate(target='--for-upload', redirect='--upload-type Upload', hide=True), + help='Create the disk for uploading blobs. Replaced by "--upload-type Upload"') + c.argument('upload_type', arg_type=get_enum_type(['Upload', 'UploadWithSecurityData']), min_api='2018-09-30', + help="Create the disk for upload scenario. 'Upload' is for Standard disk only upload. 'UploadWithSecurityData' is for OS Disk upload along with VM Guest State. Please note the 'UploadWithSecurityData' is not valid for data disk upload, it only to be used for OS Disk upload at present.") + # endregion + # region Snapshots with self.argument_context('snapshot', resource_type=ResourceType.MGMT_COMPUTE, operation_group='snapshots') as c: c.argument('snapshot_name', existing_snapshot_name, id_part='name', completer=get_resource_name_completion_list('Microsoft.Compute/snapshots')) @@ -208,6 +216,8 @@ def load_arguments(self, _): c.argument('copy_start', arg_type=get_three_state_flag(), min_api='2021-04-01', help='Create snapshot by using a deep copy process, where the resource creation is considered complete only after all data has been copied from the source.') c.argument('architecture', arg_type=get_enum_type(self.get_models('Architecture', operation_group='snapshots')), min_api='2021-12-01', help='CPU architecture.') + c.argument('for_upload', arg_type=get_three_state_flag(), min_api='2018-09-30', + help='Create the snapshot for uploading blobs later on through storage commands. Run "az snapshot grant-access --access-level Write" to retrieve the snapshot\'s SAS token.') # endregion # region Images diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index c3abb9c0ba1..e615bf894bf 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1755,6 +1755,8 @@ def process_disk_create_namespace(cmd, namespace): validate_tags(namespace) validate_edge_zone(cmd, namespace) _validate_gallery_image_reference(cmd, namespace) + _validate_security_data_uri(namespace) + _validate_upload_type(cmd, namespace) _validate_secure_vm_disk_encryption_set(namespace) _validate_hyper_v_generation(namespace) if namespace.source: @@ -1770,6 +1772,39 @@ def process_disk_create_namespace(cmd, namespace): raise ArgumentUsageError(usage_error) +def _validate_security_data_uri(namespace): + if not namespace.security_data_uri: + return + + if not namespace.security_type: + return RequiredArgumentMissingError( + 'Please specify --security-type when using the --security-data-uri parameter') + + if not namespace.hyper_v_generation or namespace.hyper_v_generation != 'V2': + return ArgumentUsageError( + "Please specify --hyper-v-generation as 'V2' when using the --security-data-uri parameter") + + +def _validate_upload_type(cmd, namespace): + if not namespace.upload_type and namespace.for_upload: + namespace.upload_type = 'Upload' + + if namespace.upload_type == 'UploadWithSecurityData': + + if not cmd.supported_api_version(min_api='2021-08-01', operation_group='disks'): + raise ArgumentUsageError( + "'UploadWithSecurityData' is not supported in the current profile. " + "Please upgrade your profile with 'az cloud set --profile newerProfile' and try again") + + if not namespace.security_type: + return RequiredArgumentMissingError( + "Please specify --security-type when the value of --upload-type is 'UploadWithSecurityData'") + + if not namespace.hyper_v_generation or namespace.hyper_v_generation != 'V2': + return ArgumentUsageError( + "Please specify --hyper-v-generation as 'V2' the value of --upload-type is 'UploadWithSecurityData'") + + def _validate_secure_vm_disk_encryption_set(namespace): if 'secure_vm_disk_encryption_set' not in namespace: return 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 1b413fa96a7..d84b8d0d03a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -179,12 +179,16 @@ def _get_sku_object(cmd, sku): return sku -def _grant_access(cmd, resource_group_name, name, duration_in_seconds, is_disk, access_level): +def _grant_access(cmd, resource_group_name, name, duration_in_seconds, is_disk, access_level, + secure_vm_guest_state_sas=None): AccessLevel, GrantAccessData = cmd.get_models('AccessLevel', 'GrantAccessData') client = _compute_client_factory(cmd.cli_ctx) op = client.disks if is_disk else client.snapshots - grant_access_data = GrantAccessData( - access=access_level or AccessLevel.read, duration_in_seconds=duration_in_seconds) + grant_access_data = GrantAccessData(access=access_level or AccessLevel.read, + duration_in_seconds=duration_in_seconds) + if secure_vm_guest_state_sas: + grant_access_data.get_secure_vm_guest_state_sas = secure_vm_guest_state_sas + return op.begin_grant_access(resource_group_name, name, grant_access_data) @@ -297,8 +301,9 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p network_access_policy=None, disk_access=None, logical_sector_size=None, tier=None, enable_bursting=None, edge_zone=None, security_type=None, support_hibernation=None, public_network_access=None, accelerated_network=None, architecture=None, - data_access_auth_mode=None, gallery_image_reference_type=None, - secure_vm_disk_encryption_set=None): + data_access_auth_mode=None, gallery_image_reference_type=None, security_data_uri=None, + upload_type=None, secure_vm_disk_encryption_set=None): + from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id @@ -312,8 +317,10 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p option = DiskCreateOption.copy elif source_restore_point: option = DiskCreateOption.restore - elif for_upload: + elif upload_type == 'Upload': option = DiskCreateOption.upload + elif upload_type == 'UploadWithSecurityData': + option = DiskCreateOption.upload_prepared_secure elif image_reference or gallery_image_reference: option = DiskCreateOption.from_image else: @@ -326,8 +333,9 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p subscription=subscription_id, resource_group=resource_group_name, namespace='Microsoft.Storage', type='storageAccounts', name=storage_account_name) - if upload_size_bytes is not None and for_upload is not True: - raise CLIError('usage error: --upload-size-bytes should be used together with --for-upload') + if upload_size_bytes is not None and not upload_type: + raise RequiredArgumentMissingError( + 'usage error: --upload-size-bytes should be used together with --upload-type') if image_reference is not None: if not is_valid_resource_id(image_reference): @@ -360,10 +368,16 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p source_resource_id=source_disk or source_snapshot or source_restore_point, storage_account_id=source_storage_account_id, upload_size_bytes=upload_size_bytes, - logical_sector_size=logical_sector_size) + logical_sector_size=logical_sector_size, + security_data_uri=security_data_uri) - if size_gb is None and upload_size_bytes is None and (option == DiskCreateOption.empty or for_upload): - raise CLIError('usage error: --size-gb or --upload-size-bytes required to create an empty disk') + if size_gb is None and upload_size_bytes is None: + if option == DiskCreateOption.empty: + raise RequiredArgumentMissingError( + 'usage error: --size-gb or --upload-size-bytes required to create an empty disk') + if upload_type: + raise RequiredArgumentMissingError( + 'usage error: --size-gb or --upload-size-bytes required to create a disk for upload') if disk_encryption_set is not None and not is_valid_resource_id(disk_encryption_set): disk_encryption_set = resource_id( @@ -436,8 +450,17 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None): + + secure_vm_guest_state_sas = None + if cmd.supported_api_version(min_api='2021-08-01', operation_group='disks'): + compute_client = _compute_client_factory(cmd.cli_ctx) + disk_info = compute_client.disks.get(resource_group_name, disk_name) + DiskCreateOption = cmd.get_models('DiskCreateOption', operation_group='disks') + if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: + secure_vm_guest_state_sas = True + return _grant_access(cmd, resource_group_name, disk_name, duration_in_seconds, is_disk=True, - access_level=access_level) + access_level=access_level, secure_vm_guest_state_sas=secure_vm_guest_state_sas) def list_managed_disks(cmd, resource_group_name=None): diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml index eb330b1e9b1..ebb807091b2 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_trusted_launch.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_trusted_launch_000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001","name":"cli_test_disk_trusted_launch_000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:56:40Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001","name":"cli_test_disk_trusted_launch_000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-26T13:00:37Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:43 GMT + - Sun, 26 Jun 2022 13:00:43 GMT expires: - '-1' pragma: @@ -55,7 +55,7 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18_04-lts-gen2/versions/18.04.202004290?api-version=2022-03-01 response: @@ -82,7 +82,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:44 GMT + - Sun, 26 Jun 2022 13:00:44 GMT expires: - '-1' pragma: @@ -99,7 +99,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73999 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73997 status: code: 200 message: OK @@ -124,12 +124,12 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 response: body: - string: "{\r\n \"name\": \"d1\",\r\n \"location\": \"southcentralus\",\r\n + string: "{\r\n \"name\": \"disk1\",\r\n \"location\": \"southcentralus\",\r\n \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n \ \"properties\": {\r\n \"osType\": \"Linux\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"supportsHibernation\": false,\r\n \"supportedCapabilities\": @@ -139,27 +139,27 @@ interactions: \ }\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n - \ {\r\n \"id\": \"9fed446d-d36f-473a-8ef7-0c1312a79d2a\",\r\n \"type\": - \"VmgsBlob\",\r\n \"name\": \"9fed446d-d36f-473a-8ef7-0c1312a79d2a_vmgs\",\r\n + \ {\r\n \"id\": \"96def64a-aec3-4833-82d4-ab9d034a490d\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"96def64a-aec3-4833-82d4-ab9d034a490d_vmgs\",\r\n \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\"\r\n \ }\r\n ]\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/e429298c-8b50-4209-81af-52358c7f2d21?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: - - '1237' + - '1240' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:51 GMT + - Sun, 26 Jun 2022 13:00:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/e429298c-8b50-4209-81af-52358c7f2d21?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -170,9 +170,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1199' status: code: 202 message: Accepted @@ -190,15 +190,164 @@ interactions: ParameterSetName: - -g -n --image-reference --hyper-v-generation --security-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/e429298c-8b50-4209-81af-52358c7f2d21?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:56:51.1722522+00:00\",\r\n \"endTime\": - \"2022-06-13T08:56:52.0004005+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d1\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1\",\r\n + string: "{\r\n \"startTime\": \"2022-06-26T13:00:53.3146397+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"3ff0d5db-86ac-4721-92dc-b9e878bb9cb8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:00:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399996 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-reference --hyper-v-generation --security-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-26T13:00:53.3146397+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"3ff0d5db-86ac-4721-92dc-b9e878bb9cb8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399994 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-reference --hyper-v-generation --security-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3ff0d5db-86ac-4721-92dc-b9e878bb9cb8?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-26T13:00:53.3146397+00:00\",\r\n \"endTime\": + \"2022-06-26T13:01:14.9254891+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"disk1\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\"type\":\"Microsoft.Compute/disks\",\"location\":\"southcentralus\",\"tags\":{},\"sku\":{\"name\":\"Premium_LRS\",\"tier\":\"Premium\"},\"properties\":{\"osType\":\"Linux\",\"hyperVGeneration\":\"V2\",\"supportsHibernation\":false,\"supportedCapabilities\":{\"acceleratedNetwork\":true,\"architecture\":\"x64\"},\"creationData\":{\"createOption\":\"FromImage\",\"imageReference\":{\"id\":\"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/southcentralus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18_04-lts-gen2/Versions/18.04.202004290\"}},\"diskSizeGB\":30,\"diskIOPSReadWrite\":120,\"diskMBpsReadWrite\":25,\"encryption\":{\"type\":\"EncryptionAtRestWithPlatformKey\"},\"networkAccessPolicy\":\"AllowAll\",\"securityProfile\":{\"securityType\":\"TrustedLaunch\"},\"publicNetworkAccess\":\"Enabled\",\"timeCreated\":\"2022-06-26T13:00:53.3458856+00:00\",\"provisioningState\":\"Succeeded\",\"diskState\":\"Unattached\",\"diskSizeBytes\":32213303296,\"uniqueId\":\"56f39fed-bad3-464f-957a-3863b99dc177\",\"tier\":\"P4\"}}\r\n + \ },\r\n \"name\": \"3ff0d5db-86ac-4721-92dc-b9e878bb9cb8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1380' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:36 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399992 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image-reference --hyper-v-generation --security-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n @@ -211,19 +360,19 @@ interactions: \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:56:51.234709+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-26T13:00:53.3458856+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n - \ \"uniqueId\": \"b5e6651b-bd6c-474f-a757-20ace94507d6\",\r\n \"tier\": - \"P4\"\r\n }\r\n}\r\n },\r\n \"name\": \"e429298c-8b50-4209-81af-52358c7f2d21\"\r\n}" + \ \"uniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\",\r\n \"tier\": + \"P4\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1655' + - '1437' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:53 GMT + - Sun, 26 Jun 2022 13:01:36 GMT expires: - '-1' pragma: @@ -240,7 +389,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 + - Microsoft.Compute/LowCostGet3Min;14997,Microsoft.Compute/LowCostGet30Min;119991 status: code: 200 message: OK @@ -248,22 +397,131 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate CommandName: - - disk create + - disk show Connection: - keep-alive ParameterSetName: - - -g -n --image-reference --hyper-v-generation --security-type + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": + \"Premium\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"FromImage\",\r\n \"imageReference\": {\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/southcentralus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18_04-lts-gen2/Versions/18.04.202004290\"\r\n + \ }\r\n },\r\n \"diskSizeGB\": 30,\r\n \"diskIOPSReadWrite\": + 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:00:53.3458856+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\",\r\n \"tier\": + \"P4\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1437' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14996,Microsoft.Compute/LowCostGet30Min;119990 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/disk1?api-version=2021-12-01 + response: + body: + string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.Compute/snapshots/disk1'' + under resource group ''cli_test_disk_trusted_launch_000001'' was not found. + For more details please go to https://aka.ms/ARMResourceNotFoundFix"}}' + headers: + cache-control: + - no-cache + content-length: + - '240' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - gateway + status: + code: 404 + message: Not Found +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1?api-version=2022-03-02 response: body: - string: "{\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/d1\",\r\n + string: "{\r\n \"name\": \"disk1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\",\r\n \"tier\": \"Premium\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n @@ -276,19 +534,330 @@ interactions: \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:56:51.234709+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-26T13:00:53.3458856+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n - \ \"uniqueId\": \"b5e6651b-bd6c-474f-a757-20ace94507d6\",\r\n \"tier\": + \ \"uniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\",\r\n \"tier\": \"P4\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '1430' + - '1437' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14995,Microsoft.Compute/LowCostGet30Min;119989 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_trusted_launch_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001","name":"cli_test_disk_trusted_launch_000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-26T13:00:37Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '356' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:39 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"hyperVGeneration": "V1", "creationData": {"createOption": "Copy", + "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + Content-Length: + - '325' + Content-Type: + - application/json + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1?api-version=2021-12-01 + response: + body: + string: "{\r\n \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": + {\r\n \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Linux\",\r\n \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": + false,\r\n \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": + true,\r\n \"architecture\": \"x64\"\r\n },\r\n \"creationData\": + {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"provisioningState\": + \"Updating\",\r\n \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": + [\r\n {\r\n \"id\": \"33902e4e-1f84-43ef-9faf-cbc7e3b376ee\",\r\n + \ \"type\": \"VmgsBlob\",\r\n \"name\": \"33902e4e-1f84-43ef-9faf-cbc7e3b376ee_vmgs\",\r\n + \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n + \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sourceSubscriptionId\": \"214e84c6-4bb8-4a12-a9bd-1ae8bbaaab72\",\r\n + \ \"sourceEntityUri\": \"https://md-rqv0xl1pfqcz.z29.blob.storage.azure.net/cdtzrr1th244/96def64a-aec3-4833-82d4-ab9d034a490d_vmgs\",\r\n + \ \"sizeInBytes\": 4194304\r\n }\r\n ]\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/878b751f-3edf-4673-8392-6cf79a7ac002?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2021-12-01 + cache-control: + - no-cache + content-length: + - '1392' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:45 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/878b751f-3edf-4673-8392-6cf79a7ac002?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2021-12-01 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7999 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/878b751f-3edf-4673-8392-6cf79a7ac002?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2021-12-01 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-26T13:01:45.6306647+00:00\",\r\n \"endTime\": + \"2022-06-26T13:01:46.6306854+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"snapshot1\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"diskSizeGB\": 30,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:01:45.6462505+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"99eff1fe-9398-4c83-b7b7-8fa32e931d7e\"\r\n }\r\n}\r\n + \ },\r\n \"name\": \"878b751f-3edf-4673-8392-6cf79a7ac002\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1593' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399991 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot create + Connection: + - keep-alive + ParameterSetName: + - -g -n --source + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1?api-version=2021-12-01 + response: + body: + string: "{\r\n \"name\": \"snapshot1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"diskSizeGB\": 30,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:01:45.6462505+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"99eff1fe-9398-4c83-b7b7-8fa32e931d7e\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1368' + content-type: + - application/json; charset=utf-8 + date: + - Sun, 26 Jun 2022 13:01:47 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14994,Microsoft.Compute/LowCostGet30Min;119988 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - snapshot show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1?api-version=2021-12-01 + response: + body: + string: "{\r\n \"name\": \"snapshot1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/snapshots/snapshot1\",\r\n + \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n + \ \"hyperVGeneration\": \"V1\",\r\n \"supportsHibernation\": false,\r\n + \ \"supportedCapabilities\": {\r\n \"acceleratedNetwork\": true,\r\n + \ \"architecture\": \"x64\"\r\n },\r\n \"creationData\": {\r\n \"createOption\": + \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_trusted_launch_000001/providers/Microsoft.Compute/disks/disk1\",\r\n + \ \"sourceUniqueId\": \"56f39fed-bad3-464f-957a-3863b99dc177\"\r\n },\r\n + \ \"diskSizeGB\": 30,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n + \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n + \ \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-26T13:01:45.6462505+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 32213303296,\r\n + \ \"uniqueId\": \"99eff1fe-9398-4c83-b7b7-8fa32e931d7e\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1368' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:56:53 GMT + - Sun, 26 Jun 2022 13:01:49 GMT expires: - '-1' pragma: @@ -305,7 +874,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14999,Microsoft.Compute/LowCostGet30Min;119999 + - Microsoft.Compute/LowCostGet3Min;14993,Microsoft.Compute/LowCostGet30Min;119987 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml index 4d939adeba8..241f063745f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_managed_disk.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:23:58 GMT + - Mon, 27 Jun 2022 03:06:34 GMT expires: - '-1' pragma: @@ -61,7 +61,7 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -74,7 +74,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/70a28d0d-f436-4380-973e-76648f6b3044?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d7c92d6e-d808-4eb5-80fd-5183a0a7da07?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -82,11 +82,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:04 GMT + - Mon, 27 Jun 2022 03:06:40 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/70a28d0d-f436-4380-973e-76648f6b3044?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d7c92d6e-d808-4eb5-80fd-5183a0a7da07?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -97,7 +97,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;996,Microsoft.Compute/CreateUpdateDisks30Min;7996 + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -117,13 +117,13 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/70a28d0d-f436-4380-973e-76648f6b3044?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d7c92d6e-d808-4eb5-80fd-5183a0a7da07?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:04.8998818+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:06:41.07858+00:00\",\r\n \"endTime\": + \"2022-06-27T03:06:41.2191856+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n @@ -134,19 +134,19 @@ interactions: 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 1073741824,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\",\r\n \"tier\": - \"P1\"\r\n }\r\n}\r\n },\r\n \"name\": \"70a28d0d-f436-4380-973e-76648f6b3044\"\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\",\r\n \"tier\": + \"P1\"\r\n }\r\n}\r\n },\r\n \"name\": \"d7c92d6e-d808-4eb5-80fd-5183a0a7da07\"\r\n}" headers: cache-control: - no-cache content-length: - - '1153' + - '1151' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:07 GMT + - Mon, 27 Jun 2022 03:06:43 GMT expires: - '-1' pragma: @@ -163,7 +163,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399996 + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399999 status: code: 200 message: OK @@ -181,7 +181,7 @@ interactions: ParameterSetName: - -g -n --size-gb --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -195,9 +195,9 @@ interactions: 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 1073741824,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\",\r\n \"tier\": + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\",\r\n \"tier\": \"P1\"\r\n }\r\n}" headers: cache-control: @@ -207,7 +207,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:07 GMT + - Mon, 27 Jun 2022 03:06:43 GMT expires: - '-1' pragma: @@ -224,7 +224,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4993,Microsoft.Compute/LowCostGet30Min;39993 + - Microsoft.Compute/LowCostGet3Min;4999,Microsoft.Compute/LowCostGet30Min;39999 status: code: 200 message: OK @@ -242,7 +242,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -256,9 +256,9 @@ interactions: 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 1073741824,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\",\r\n \"tier\": + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\",\r\n \"tier\": \"P1\"\r\n }\r\n}" headers: cache-control: @@ -268,7 +268,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:08 GMT + - Mon, 27 Jun 2022 03:06:45 GMT expires: - '-1' pragma: @@ -285,7 +285,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4992,Microsoft.Compute/LowCostGet30Min;39992 + - Microsoft.Compute/LowCostGet3Min;4998,Microsoft.Compute/LowCostGet30Min;39998 status: code: 200 message: OK @@ -311,7 +311,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -326,7 +326,7 @@ interactions: true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/700292e9-5ce8-43a1-b5c8-0f95a88ddb87?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/e2d3b491-d094-471e-9c49-204860d16514?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -334,11 +334,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:09 GMT + - Mon, 27 Jun 2022 03:06:47 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/700292e9-5ce8-43a1-b5c8-0f95a88ddb87?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/e2d3b491-d094-471e-9c49-204860d16514?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -349,9 +349,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;994,Microsoft.Compute/CreateUpdateDisks30Min;7994 + - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -369,13 +369,13 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/700292e9-5ce8-43a1-b5c8-0f95a88ddb87?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/e2d3b491-d094-471e-9c49-204860d16514?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:09.18131+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:09.3063228+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:06:48.43801+00:00\",\r\n \"endTime\": + \"2022-06-27T03:06:48.5473678+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n @@ -386,10 +386,10 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}\r\n - \ },\r\n \"name\": \"700292e9-5ce8-43a1-b5c8-0f95a88ddb87\"\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}\r\n + \ },\r\n \"name\": \"e2d3b491-d094-471e-9c49-204860d16514\"\r\n}" headers: cache-control: - no-cache @@ -398,7 +398,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:11 GMT + - Mon, 27 Jun 2022 03:06:50 GMT expires: - '-1' pragma: @@ -415,7 +415,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399990 + - Microsoft.Compute/GetOperation3Min;49997,Microsoft.Compute/GetOperation30Min;399997 status: code: 200 message: OK @@ -433,7 +433,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -447,9 +447,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -458,7 +458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:11 GMT + - Mon, 27 Jun 2022 03:06:50 GMT expires: - '-1' pragma: @@ -475,7 +475,67 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;39987 + - Microsoft.Compute/LowCostGet3Min;4995,Microsoft.Compute/LowCostGet30Min;39995 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -g -n --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"d1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n + \ \"tags\": {\r\n \"tag1\": \"d1\"\r\n },\r\n \"sku\": {\r\n \"name\": + \"Standard_LRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"properties\": + {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": {\r\n \"createOption\": + \"Empty\"\r\n },\r\n \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"Unattached\",\r\n \"diskSizeBytes\": 10737418240,\r\n + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '913' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 27 Jun 2022 03:06:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;4994,Microsoft.Compute/LowCostGet30Min;39994 status: code: 200 message: OK @@ -497,7 +557,7 @@ interactions: ParameterSetName: - -g -n --duration-in-seconds User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1/beginGetAccess?api-version=2022-03-02 response: @@ -505,17 +565,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: - '0' date: - - Mon, 13 Jun 2022 08:24:12 GMT + - Mon, 27 Jun 2022 03:06:53 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -546,15 +606,15 @@ interactions: ParameterSetName: - -g -n --duration-in-seconds User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:12.4939586+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:12.9158694+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hdd-gh4jzbrc0nhr.z18.blob.storage.azure.net/vkk2q43prnhc/abcd?sv=2018-03-28&sr=b&si=28ae9a2b-56ba-436e-91e1-d2ec5cfc94ec&sig=r74ZN6cJ5xjbDkmHVydWM4CrlyLH4cTymuz632ZxhFY%3D\"\r\n}\r\n - \ },\r\n \"name\": \"84a7486c-9299-47cb-baaa-54ad037e8934\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:06:54.1880239+00:00\",\r\n \"endTime\": + \"2022-06-27T03:06:54.6411625+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-hdd-j2z3mgb3vdkd.z49.blob.storage.azure.net/j5kgggl2f4k4/abcd?sv=2018-03-28&sr=b&si=b6a15d3b-0257-4226-b0c6-4ce6e292a3e2&sig=5tCTZyAQQstEW4hCJFNwOIzPdwNCN6lPdWQsbG0lUlU%3D\"\r\n}\r\n + \ },\r\n \"name\": \"b1ae85e9-cb10-4aef-90d4-62c8449c941c\"\r\n}" headers: cache-control: - no-cache @@ -563,7 +623,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:42 GMT + - Mon, 27 Jun 2022 03:07:24 GMT expires: - '-1' pragma: @@ -580,7 +640,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49979,Microsoft.Compute/GetOperation30Min;399979 + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399994 status: code: 200 message: OK @@ -598,12 +658,12 @@ interactions: ParameterSetName: - -g -n --duration-in-seconds User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/84a7486c-9299-47cb-baaa-54ad037e8934?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/b1ae85e9-cb10-4aef-90d4-62c8449c941c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 response: body: - string: "{\r\n \"accessSAS\": \"https://md-hdd-gh4jzbrc0nhr.z18.blob.storage.azure.net/vkk2q43prnhc/abcd?sv=2018-03-28&sr=b&si=28ae9a2b-56ba-436e-91e1-d2ec5cfc94ec&sig=r74ZN6cJ5xjbDkmHVydWM4CrlyLH4cTymuz632ZxhFY%3D\"\r\n}" + string: "{\r\n \"accessSAS\": \"https://md-hdd-j2z3mgb3vdkd.z49.blob.storage.azure.net/j5kgggl2f4k4/abcd?sv=2018-03-28&sr=b&si=b6a15d3b-0257-4226-b0c6-4ce6e292a3e2&sig=5tCTZyAQQstEW4hCJFNwOIzPdwNCN6lPdWQsbG0lUlU%3D\"\r\n}" headers: cache-control: - no-cache @@ -612,7 +672,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:42 GMT + - Mon, 27 Jun 2022 03:07:24 GMT expires: - '-1' pragma: @@ -629,7 +689,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49978,Microsoft.Compute/GetOperation30Min;399978 + - Microsoft.Compute/GetOperation3Min;49993,Microsoft.Compute/GetOperation30Min;399993 status: code: 200 message: OK @@ -647,12 +707,12 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -661,7 +721,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:43 GMT + - Mon, 27 Jun 2022 03:07:25 GMT expires: - '-1' pragma: @@ -695,7 +755,7 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2022-03-02 response: @@ -704,12 +764,12 @@ interactions: {},\r\n \"sku\": {\r\n \"name\": \"Premium_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"publicNetworkAccess\": \"Enabled\",\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d3e70a3a-d612-4fc7-9099-aac7bf9b175c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7c425189-49de-4741-84af-2422c7cd789f?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -717,11 +777,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:45 GMT + - Mon, 27 Jun 2022 03:07:31 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d3e70a3a-d612-4fc7-9099-aac7bf9b175c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7c425189-49de-4741-84af-2422c7cd789f?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -732,9 +792,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;991,Microsoft.Compute/CreateUpdateDisks30Min;7991 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -752,13 +812,13 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/d3e70a3a-d612-4fc7-9099-aac7bf9b175c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/7c425189-49de-4741-84af-2422c7cd789f?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:45.5268198+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:46.4174763+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:07:31.0788861+00:00\",\r\n \"endTime\": + \"2022-06-27T03:07:32.1570656+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"d2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"westus\",\r\n @@ -766,14 +826,14 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:45.5268198+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:31.0788861+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f1ad00f4-4dd7-4971-b11d-1b91d4c2eefd\",\r\n - \ \"tier\": \"P3\"\r\n }\r\n}\r\n },\r\n \"name\": \"d3e70a3a-d612-4fc7-9099-aac7bf9b175c\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"28f8a4f5-1d37-43b1-85fd-39d4594e6db7\",\r\n + \ \"tier\": \"P3\"\r\n }\r\n}\r\n },\r\n \"name\": \"7c425189-49de-4741-84af-2422c7cd789f\"\r\n}" headers: cache-control: - no-cache @@ -782,7 +842,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:47 GMT + - Mon, 27 Jun 2022 03:07:33 GMT expires: - '-1' pragma: @@ -799,7 +859,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49977,Microsoft.Compute/GetOperation30Min;399977 + - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399992 status: code: 200 message: OK @@ -817,7 +877,7 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d2?api-version=2022-03-02 response: @@ -828,13 +888,13 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"diskIOPSReadWrite\": 120,\r\n \"diskMBpsReadWrite\": 25,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:45.5268198+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:31.0788861+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"f1ad00f4-4dd7-4971-b11d-1b91d4c2eefd\",\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"28f8a4f5-1d37-43b1-85fd-39d4594e6db7\",\r\n \ \"tier\": \"P3\"\r\n }\r\n}" headers: cache-control: @@ -844,7 +904,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:47 GMT + - Mon, 27 Jun 2022 03:07:34 GMT expires: - '-1' pragma: @@ -861,7 +921,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4966,Microsoft.Compute/LowCostGet30Min;39966 + - Microsoft.Compute/LowCostGet3Min;4991,Microsoft.Compute/LowCostGet30Min;39991 status: code: 200 message: OK @@ -879,12 +939,12 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -893,7 +953,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:48 GMT + - Mon, 27 Jun 2022 03:07:35 GMT expires: - '-1' pragma: @@ -927,7 +987,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -940,7 +1000,7 @@ interactions: \ }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ad50edff-12f6-4f9c-8b25-051e85e5d626?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/239353a1-f977-41a0-9785-fcc5dcff7849?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 cache-control: - no-cache content-length: @@ -948,11 +1008,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:54 GMT + - Mon, 27 Jun 2022 03:07:42 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ad50edff-12f6-4f9c-8b25-051e85e5d626?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/239353a1-f977-41a0-9785-fcc5dcff7849?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 pragma: - no-cache server: @@ -963,7 +1023,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;998,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;999,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7999 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -983,13 +1043,13 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/ad50edff-12f6-4f9c-8b25-051e85e5d626?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/239353a1-f977-41a0-9785-fcc5dcff7849?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n \"endTime\": - \"2022-06-13T08:24:54.9803624+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:07:43.2195917+00:00\",\r\n \"endTime\": + \"2022-06-27T03:07:43.4227158+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"s1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westus\",\r\n @@ -999,19 +1059,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"ad50edff-12f6-4f9c-8b25-051e85e5d626\"\r\n}" + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"239353a1-f977-41a0-9785-fcc5dcff7849\"\r\n}" headers: cache-control: - no-cache content-length: - - '1108' + - '1107' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:56 GMT + - Mon, 27 Jun 2022 03:07:44 GMT expires: - '-1' pragma: @@ -1028,7 +1088,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49975,Microsoft.Compute/GetOperation30Min;399975 + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399990 status: code: 200 message: OK @@ -1046,7 +1106,7 @@ interactions: ParameterSetName: - -g -n --size-gb --sku --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1059,19 +1119,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '883' + - '882' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:57 GMT + - Mon, 27 Jun 2022 03:07:45 GMT expires: - '-1' pragma: @@ -1088,7 +1148,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4963,Microsoft.Compute/LowCostGet30Min;39963 + - Microsoft.Compute/LowCostGet3Min;4988,Microsoft.Compute/LowCostGet30Min;39988 status: code: 200 message: OK @@ -1106,7 +1166,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1119,19 +1179,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '883' + - '882' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:58 GMT + - Mon, 27 Jun 2022 03:07:47 GMT expires: - '-1' pragma: @@ -1148,7 +1208,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4962,Microsoft.Compute/LowCostGet30Min;39962 + - Microsoft.Compute/LowCostGet3Min;4987,Microsoft.Compute/LowCostGet30Min;39987 status: code: 200 message: OK @@ -1173,7 +1233,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1188,7 +1248,7 @@ interactions: \ \"isArmResource\": true,\r\n \"faultDomain\": 0\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c8a353c5-9c30-4b42-a7a7-d737fd925166?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/1040f2ae-c3a7-45cc-a374-d0e5a2421aeb?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 cache-control: - no-cache content-length: @@ -1196,11 +1256,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:24:59 GMT + - Mon, 27 Jun 2022 03:07:49 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c8a353c5-9c30-4b42-a7a7-d737fd925166?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/1040f2ae-c3a7-45cc-a374-d0e5a2421aeb?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 pragma: - no-cache server: @@ -1211,9 +1271,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;997,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7997 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;998,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7998 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -1231,13 +1291,13 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/c8a353c5-9c30-4b42-a7a7-d737fd925166?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/1040f2ae-c3a7-45cc-a374-d0e5a2421aeb?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:24:59.9806034+00:00\",\r\n \"endTime\": - \"2022-06-13T08:25:00.9025241+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:07:50.2352756+00:00\",\r\n \"endTime\": + \"2022-06-27T03:07:51.2509058+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"s1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westus\",\r\n @@ -1247,19 +1307,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"c8a353c5-9c30-4b42-a7a7-d737fd925166\"\r\n}" + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"1040f2ae-c3a7-45cc-a374-d0e5a2421aeb\"\r\n}" headers: cache-control: - no-cache content-length: - - '1110' + - '1109' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:52 GMT expires: - '-1' pragma: @@ -1276,7 +1336,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49973,Microsoft.Compute/GetOperation30Min;399973 + - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399988 status: code: 200 message: OK @@ -1294,7 +1354,7 @@ interactions: ParameterSetName: - -g -n --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1307,19 +1367,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:52 GMT expires: - '-1' pragma: @@ -1336,7 +1396,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4960,Microsoft.Compute/LowCostGet30Min;39960 + - Microsoft.Compute/LowCostGet3Min;4985,Microsoft.Compute/LowCostGet30Min;39985 status: code: 200 message: OK @@ -1354,7 +1414,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -1370,7 +1430,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:54 GMT expires: - '-1' pragma: @@ -1398,7 +1458,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -1412,9 +1472,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1423,7 +1483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:02 GMT + - Mon, 27 Jun 2022 03:07:54 GMT expires: - '-1' pragma: @@ -1440,7 +1500,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4959,Microsoft.Compute/LowCostGet30Min;39959 + - Microsoft.Compute/LowCostGet3Min;4983,Microsoft.Compute/LowCostGet30Min;39983 status: code: 200 message: OK @@ -1458,12 +1518,12 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1472,7 +1532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:03 GMT + - Mon, 27 Jun 2022 03:07:55 GMT expires: - '-1' pragma: @@ -1506,7 +1566,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2021-12-01 response: @@ -1515,12 +1575,12 @@ interactions: \ \"name\": \"Premium_LRS\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \ \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"publicNetworkAccess\": \"Enabled\",\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dce3ceb1-2159-4d3a-bc48-878157f8d3f5?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/8aba5897-b8d7-4f25-9442-d3f59e5e032c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 cache-control: - no-cache content-length: @@ -1528,11 +1588,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:10 GMT + - Mon, 27 Jun 2022 03:08:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dce3ceb1-2159-4d3a-bc48-878157f8d3f5?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/8aba5897-b8d7-4f25-9442-d3f59e5e032c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&monitor=true&api-version=2021-12-01 pragma: - no-cache server: @@ -1543,7 +1603,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;996,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7996 + - Microsoft.Compute/HighCostSnapshotCreateHydrate3Min;997,Microsoft.Compute/HighCostSnapshotCreateHydrate30Min;7997 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1563,13 +1623,13 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/dce3ceb1-2159-4d3a-bc48-878157f8d3f5?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/DiskOperations/8aba5897-b8d7-4f25-9442-d3f59e5e032c?p=42128af7-4c72-4222-9761-fb0d8e6cebdc&api-version=2021-12-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:25:11.6217524+00:00\",\r\n \"endTime\": - \"2022-06-13T08:25:12.262386+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-27T03:08:02.1728199+00:00\",\r\n \"endTime\": + \"2022-06-27T03:08:02.7978424+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"s2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2\",\r\n \ \"type\": \"Microsoft.Compute/snapshots\",\r\n \"location\": \"westus\",\r\n @@ -1577,22 +1637,22 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n - \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:25:11.6217524+00:00\",\r\n + \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:08:02.1728199+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"cf55df67-6363-4808-9b33-5d8f8fe7368a\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"dce3ceb1-2159-4d3a-bc48-878157f8d3f5\"\r\n}" + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"76b67ab8-52f4-42ec-b6c5-93b4ae254d59\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"8aba5897-b8d7-4f25-9442-d3f59e5e032c\"\r\n}" headers: cache-control: - no-cache content-length: - - '1313' + - '1314' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:13 GMT + - Mon, 27 Jun 2022 03:08:04 GMT expires: - '-1' pragma: @@ -1609,7 +1669,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49971,Microsoft.Compute/GetOperation30Min;399971 + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399986 status: code: 200 message: OK @@ -1627,7 +1687,7 @@ interactions: ParameterSetName: - -g -n --source --sku User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s2?api-version=2021-12-01 response: @@ -1638,12 +1698,12 @@ interactions: \"Premium\"\r\n },\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"creationData\": {\r\n \"createOption\": \"Copy\",\r\n \"sourceResourceId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1\",\r\n - \ \"sourceUniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n },\r\n + \ \"sourceUniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n },\r\n \ \"diskSizeGB\": 10,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n \ },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n - \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:25:11.6217524+00:00\",\r\n + \ \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:08:02.1728199+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"cf55df67-6363-4808-9b33-5d8f8fe7368a\"\r\n + \ \"diskSizeBytes\": 10737418240,\r\n \"uniqueId\": \"76b67ab8-52f4-42ec-b6c5-93b4ae254d59\"\r\n \ }\r\n}" headers: cache-control: @@ -1653,7 +1713,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:13 GMT + - Mon, 27 Jun 2022 03:08:04 GMT expires: - '-1' pragma: @@ -1670,7 +1730,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4955,Microsoft.Compute/LowCostGet30Min;39955 + - Microsoft.Compute/LowCostGet3Min;4980,Microsoft.Compute/LowCostGet30Min;39980 status: code: 200 message: OK @@ -1688,7 +1748,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2022-03-01 response: @@ -1704,7 +1764,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:15 GMT + - Mon, 27 Jun 2022 03:08:06 GMT expires: - '-1' pragma: @@ -1732,7 +1792,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -1745,19 +1805,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:15 GMT + - Mon, 27 Jun 2022 03:08:08 GMT expires: - '-1' pragma: @@ -1774,7 +1834,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4954,Microsoft.Compute/LowCostGet30Min;39954 + - Microsoft.Compute/LowCostGet3Min;4979,Microsoft.Compute/LowCostGet30Min;39979 status: code: 200 message: OK @@ -1792,7 +1852,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -1808,7 +1868,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:16 GMT + - Mon, 27 Jun 2022 03:08:08 GMT expires: - '-1' pragma: @@ -1836,7 +1896,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -1850,9 +1910,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -1861,7 +1921,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:16 GMT + - Mon, 27 Jun 2022 03:08:08 GMT expires: - '-1' pragma: @@ -1871,14 +1931,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4953,Microsoft.Compute/LowCostGet30Min;39953 + - Microsoft.Compute/LowCostGet3Min;4977,Microsoft.Compute/LowCostGet30Min;39977 status: code: 200 message: OK @@ -1896,12 +1952,12 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1910,7 +1966,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:17 GMT + - Mon, 27 Jun 2022 03:08:09 GMT expires: - '-1' pragma: @@ -1948,7 +2004,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1?api-version=2022-03-01 response: @@ -1974,7 +2030,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/28c438fc-ee00-4232-9d87-e9a752537365?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/f7cf29d1-470d-44e7-8908-d9c940bbb60d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -1982,7 +2038,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:23 GMT + - Mon, 27 Jun 2022 03:08:17 GMT expires: - '-1' pragma: @@ -2015,14 +2071,14 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/28c438fc-ee00-4232-9d87-e9a752537365?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/f7cf29d1-470d-44e7-8908-d9c940bbb60d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:25:21.9958167+00:00\",\r\n \"endTime\": - \"2022-06-13T08:25:27.3083392+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"28c438fc-ee00-4232-9d87-e9a752537365\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:08:16.7859181+00:00\",\r\n \"endTime\": + \"2022-06-27T03:08:22.0363626+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"f7cf29d1-470d-44e7-8908-d9c940bbb60d\"\r\n}" headers: cache-control: - no-cache @@ -2031,7 +2087,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:53 GMT + - Mon, 27 Jun 2022 03:08:48 GMT expires: - '-1' pragma: @@ -2048,7 +2104,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29995 + - Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29999 status: code: 200 message: OK @@ -2066,7 +2122,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i1?api-version=2022-03-01 response: @@ -2098,7 +2154,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:54 GMT + - Mon, 27 Jun 2022 03:08:48 GMT expires: - '-1' pragma: @@ -2133,7 +2189,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2022-03-01 response: @@ -2149,7 +2205,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:54 GMT + - Mon, 27 Jun 2022 03:08:51 GMT expires: - '-1' pragma: @@ -2177,7 +2233,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -2190,19 +2246,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:55 GMT + - Mon, 27 Jun 2022 03:08:52 GMT expires: - '-1' pragma: @@ -2219,7 +2275,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4936,Microsoft.Compute/LowCostGet30Min;39936 + - Microsoft.Compute/LowCostGet3Min;4971,Microsoft.Compute/LowCostGet30Min;39971 status: code: 200 message: OK @@ -2237,7 +2293,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -2253,7 +2309,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:56 GMT + - Mon, 27 Jun 2022 03:08:54 GMT expires: - '-1' pragma: @@ -2281,7 +2337,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -2295,9 +2351,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -2306,7 +2362,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:56 GMT + - Mon, 27 Jun 2022 03:08:54 GMT expires: - '-1' pragma: @@ -2323,7 +2379,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4934,Microsoft.Compute/LowCostGet30Min;39934 + - Microsoft.Compute/LowCostGet3Min;4970,Microsoft.Compute/LowCostGet30Min;39970 status: code: 200 message: OK @@ -2341,12 +2397,12 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2355,7 +2411,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:25:56 GMT + - Mon, 27 Jun 2022 03:08:55 GMT expires: - '-1' pragma: @@ -2393,7 +2449,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2?api-version=2022-03-01 response: @@ -2419,7 +2475,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8ff1566-b0f2-497a-8808-ebcf52141b9d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e13657c7-292a-4ea4-937e-fd8ee3d3bf0f?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -2427,7 +2483,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:00 GMT + - Mon, 27 Jun 2022 03:08:59 GMT expires: - '-1' pragma: @@ -2442,7 +2498,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;38,Microsoft.Compute/CreateImages30Min;198 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1198' status: code: 201 message: Created @@ -2460,14 +2516,14 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/b8ff1566-b0f2-497a-8808-ebcf52141b9d?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e13657c7-292a-4ea4-937e-fd8ee3d3bf0f?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:25:59.7614681+00:00\",\r\n \"endTime\": - \"2022-06-13T08:26:04.8708686+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b8ff1566-b0f2-497a-8808-ebcf52141b9d\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:08:59.1304681+00:00\",\r\n \"endTime\": + \"2022-06-27T03:09:04.2242792+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e13657c7-292a-4ea4-937e-fd8ee3d3bf0f\"\r\n}" headers: cache-control: - no-cache @@ -2476,7 +2532,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:31 GMT + - Mon, 27 Jun 2022 03:09:31 GMT expires: - '-1' pragma: @@ -2493,7 +2549,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14983,Microsoft.Compute/GetOperation30Min;29983 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29998 status: code: 200 message: OK @@ -2511,7 +2567,7 @@ interactions: ParameterSetName: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i2?api-version=2022-03-01 response: @@ -2543,7 +2599,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:31 GMT + - Mon, 27 Jun 2022 03:09:31 GMT expires: - '-1' pragma: @@ -2579,7 +2635,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/virtualMachines/s1?api-version=2022-03-01 response: @@ -2595,7 +2651,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:32 GMT + - Mon, 27 Jun 2022 03:09:33 GMT expires: - '-1' pragma: @@ -2624,7 +2680,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/s1?api-version=2021-12-01 response: @@ -2637,19 +2693,19 @@ interactions: \"Empty\"\r\n },\r\n \"diskSizeGB\": 1,\r\n \"encryption\": {\r\n \ \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"incremental\": false,\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": - \"Enabled\",\r\n \"timeCreated\": \"2022-06-13T08:24:54.8084678+00:00\",\r\n + \"Enabled\",\r\n \"timeCreated\": \"2022-06-27T03:07:43.235203+00:00\",\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"diskState\": \"Unattached\",\r\n - \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"4db14ad7-cc0e-489e-b35a-70bde2254921\"\r\n + \ \"diskSizeBytes\": 1073741824,\r\n \"uniqueId\": \"b96b182b-9d8f-4da3-a5f9-6bd54ee7a948\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '885' + - '884' content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:33 GMT + - Mon, 27 Jun 2022 03:09:35 GMT expires: - '-1' pragma: @@ -2666,7 +2722,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4900,Microsoft.Compute/LowCostGet30Min;39900 + - Microsoft.Compute/LowCostGet3Min;4973,Microsoft.Compute/LowCostGet30Min;39965 status: code: 200 message: OK @@ -2685,7 +2741,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/snapshots/d1?api-version=2021-12-01 response: @@ -2701,7 +2757,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:33 GMT + - Mon, 27 Jun 2022 03:09:36 GMT expires: - '-1' pragma: @@ -2730,7 +2786,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/disks/d1?api-version=2022-03-02 response: @@ -2744,9 +2800,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-13T08:24:04.7592462+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \"2022-06-27T03:06:41.0942056+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"diskState\": \"ActiveSAS\",\r\n \"diskSizeBytes\": 10737418240,\r\n - \ \"uniqueId\": \"c825557f-a07d-4f42-aaec-d90370556bde\"\r\n }\r\n}" + \ \"uniqueId\": \"6c218bbe-71fe-4cdb-83c9-cf02d54a3235\"\r\n }\r\n}" headers: cache-control: - no-cache @@ -2755,7 +2811,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:33 GMT + - Mon, 27 Jun 2022 03:09:37 GMT expires: - '-1' pragma: @@ -2772,7 +2828,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;4899,Microsoft.Compute/LowCostGet30Min;39899 + - Microsoft.Compute/LowCostGet3Min;4972,Microsoft.Compute/LowCostGet30Min;39964 status: code: 200 message: OK @@ -2791,12 +2847,12 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_managed_disk000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-13T08:23:52Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001","name":"cli_test_managed_disk000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-27T03:06:27Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2805,7 +2861,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:34 GMT + - Mon, 27 Jun 2022 03:09:38 GMT expires: - '-1' pragma: @@ -2844,7 +2900,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3?api-version=2022-03-01 response: @@ -2870,7 +2926,7 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e57a8d5e-975c-4e11-8e81-04ea05d8787a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/35918092-f730-4218-8b22-3822db398776?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 cache-control: - no-cache content-length: @@ -2878,7 +2934,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:26:39 GMT + - Mon, 27 Jun 2022 03:09:45 GMT expires: - '-1' pragma: @@ -2893,7 +2949,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;37,Microsoft.Compute/CreateImages30Min;197 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -2912,14 +2968,14 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/e57a8d5e-975c-4e11-8e81-04ea05d8787a?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/operations/35918092-f730-4218-8b22-3822db398776?p=571046f6-b640-41c1-86f7-f9f044b5adf9&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-13T08:26:38.6053191+00:00\",\r\n \"endTime\": - \"2022-06-13T08:26:43.7147144+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"e57a8d5e-975c-4e11-8e81-04ea05d8787a\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-27T03:09:44.8649377+00:00\",\r\n \"endTime\": + \"2022-06-27T03:09:49.9899067+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"35918092-f730-4218-8b22-3822db398776\"\r\n}" headers: cache-control: - no-cache @@ -2928,7 +2984,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:27:09 GMT + - Mon, 27 Jun 2022 03:10:17 GMT expires: - '-1' pragma: @@ -2945,7 +3001,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14974,Microsoft.Compute/GetOperation30Min;29974 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29997 status: code: 200 message: OK @@ -2964,7 +3020,7 @@ interactions: - -g -n --source --data-disk-sources --os-type --tags --storage-sku --os-disk-caching --data-disk-caching User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_managed_disk000001/providers/Microsoft.Compute/images/i3?api-version=2022-03-01 response: @@ -2996,7 +3052,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 13 Jun 2022 08:27:09 GMT + - Mon, 27 Jun 2022 03:10:17 GMT expires: - '-1' pragma: diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml new file mode 100644 index 00000000000..6e99a78dbb1 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml @@ -0,0 +1,462 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T02:37:29Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '394' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"osType": "Windows", "hyperVGeneration": "V2", "creationData": + {"createOption": "UploadPreparedSecure", "uploadSizeBytes": 34359738880}, "securityProfile": + {"securityType": "TrustedLaunch"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + Content-Length: + - '282' + Content-Type: + - application/json + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n + \ \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Windows\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"creationData\": + {\r\n \"createOption\": \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": + 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": + \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n + \ {\r\n \"id\": \"ea051658-f076-4c82-a137-9389c540df1c\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"ea051658-f076-4c82-a137-9389c540df1c_vmgs\",\r\n + \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n + \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1102' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7992 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"endTime\": + \"2022-06-29T02:37:38.5908179+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk000002\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"eaf8e869-7a5c-4551-b4fa-3321180055ad\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1265' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399989 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1040' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119920 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1040' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119919 + status: + code: 200 + message: OK +- request: + body: '{"access": "Write", "durationInSeconds": 86400, "getSecureVMGuestStateSAS": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + Content-Length: + - '81' + Content-Type: + - application/json + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002/beginGetAccess?api-version=2022-03-02 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 29 Jun 2022 02:37:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7999 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T02:37:43.6065077+00:00\",\r\n \"endTime\": + \"2022-06-29T02:37:43.9971199+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}\r\n + \ },\r\n \"name\": \"9d7da018-0a3a-4758-a7da-0d86578c5cd1\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '693' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:38:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399986 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + response: + body: + string: "{\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '468' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:38:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399985 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index d7e3a14908f..60e5c0f3a52 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 @@ -7941,13 +7941,45 @@ def test_vm_trusted_launch_update(self, resource_group): self.check('securityProfile.uefiSettings.vTpmEnabled', True) ]) - # @unittest.skip('Service does not work') @ResourceGroupPreparer(name_prefix='cli_test_disk_trusted_launch_', location='southcentralus') def test_disk_trusted_launch(self): - self.cmd('disk create -g {rg} -n d1 --image-reference Canonical:UbuntuServer:18_04-lts-gen2:18.04.202004290 --hyper-v-generation V2 --security-type TrustedLaunch', checks=[ + + self.kwargs.update({ + 'disk': 'disk1', + 'snapshot': 'snapshot1' + }) + + self.kwargs['disk_id'] = self.cmd('disk create -g {rg} -n {disk} --image-reference Canonical:UbuntuServer:18_04-lts-gen2:18.04.202004290 --hyper-v-generation V2 --security-type TrustedLaunch', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch') + ]).get_output_in_json()['id'] + + self.cmd('disk show -g {rg} -n {disk}', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch') + ]) + + self.cmd('snapshot create -g {rg} -n {snapshot} --source {disk_id}', checks=[ self.check('securityProfile.securityType', 'TrustedLaunch') ]) + self.cmd('snapshot show -g {rg} -n {snapshot}', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch') + ]) + + @ResourceGroupPreparer(name_prefix='cli_test_vm_trusted_launch_os_disk_secure_upload', location='southcentralus') + def test_vm_trusted_launch_os_disk_secure_upload(self): + self.kwargs.update({ + 'disk': self.create_random_name('disk', 10), + 'snapshot': self.create_random_name('snap', 10) + }) + self.cmd('disk create -n {disk} -g {rg} --os-type Windows --hyper-v-generation v2 --security-type TrustedLaunch --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch'), + self.check('creationData.createOption', 'UploadPreparedSecure'), + ]) + self.cmd('disk grant-access -n {disk} -g {rg} --access-level Write --duration-in-seconds 86400', checks=[ + self.exists('accessSas'), + self.exists('securityDataAccessSas') + ]) + @ResourceGroupPreparer(name_prefix='cli_test_vmss_trusted_launch_', location='southcentralus') def test_vmss_trusted(self, resource_group): self.cmd('vmss create -g {rg} -n vm --image canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest --security-type TrustedLaunch --admin-username azureuser --admin-password testPassword0 --disable-integrity-monitoring') From 3e9e9113eb6aec8273e1e5137aaa7ed613bb4741 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Thu, 30 Jun 2022 11:58:08 +0800 Subject: [PATCH 09/16] Fix the create option --- src/azure-cli/azure/cli/command_modules/vm/custom.py | 2 ++ 1 file changed, 2 insertions(+) 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 d84b8d0d03a..e69f1432550 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -317,6 +317,8 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p option = DiskCreateOption.copy elif source_restore_point: option = DiskCreateOption.restore + elif security_data_uri: + option = DiskCreateOption.import_secure elif upload_type == 'Upload': option = DiskCreateOption.upload elif upload_type == 'UploadWithSecurityData': From 043c7b13b1857561aa21e810331dbe288a5bf744 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Thu, 30 Jun 2022 12:17:39 +0800 Subject: [PATCH 10/16] Add verification for security_data_uri --- src/azure-cli/azure/cli/command_modules/vm/_validators.py | 4 ++++ src/azure-cli/azure/cli/command_modules/vm/custom.py | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index e615bf894bf..6cabbaf42b6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1784,6 +1784,10 @@ def _validate_security_data_uri(namespace): return ArgumentUsageError( "Please specify --hyper-v-generation as 'V2' when using the --security-data-uri parameter") + if not namespace.source: + return RequiredArgumentMissingError( + 'Please specify --source when using the --security-data-uri parameter') + def _validate_upload_type(cmd, namespace): if not namespace.upload_type and namespace.for_upload: 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 e69f1432550..23fe0d94dd4 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -311,14 +311,14 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p 'Disk', 'CreationData', 'DiskCreateOption', 'Encryption') location = location or _get_resource_group_location(cmd.cli_ctx, resource_group_name) - if source_blob_uri: + if security_data_uri: + option = DiskCreateOption.import_secure + elif source_blob_uri: option = DiskCreateOption.import_enum elif source_disk or source_snapshot: option = DiskCreateOption.copy elif source_restore_point: option = DiskCreateOption.restore - elif security_data_uri: - option = DiskCreateOption.import_secure elif upload_type == 'Upload': option = DiskCreateOption.upload elif upload_type == 'UploadWithSecurityData': From d332393a88b261e2b31e2255bef78531e4cec8d9 Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Thu, 30 Jun 2022 15:52:10 +0800 Subject: [PATCH 11/16] Expose secure_vm_guest_state_sas --- src/azure-cli/azure/cli/command_modules/vm/_help.py | 3 +++ src/azure-cli/azure/cli/command_modules/vm/_params.py | 9 ++++++++- .../azure/cli/command_modules/vm/_validators.py | 9 +++++++++ src/azure-cli/azure/cli/command_modules/vm/custom.py | 11 ++--------- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index 5fc7c36b3e6..25020855169 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -109,6 +109,9 @@ text: | az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyManagedDisk --resource-group MyResourceGroup crafted: true + - name: Grant a resource read access to a disk to generate access SAS and security data access SAS + text: | + az disk grant-access --access-level Read --duration-in-seconds 3600 --name MyDisk --resource-group MyResourceGroup --secure-vm-guest-state-sas """ helps['disk list'] = """ 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 760ed8c4490..69d6df94c5c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -21,7 +21,7 @@ from azure.cli.command_modules.vm._validators import ( validate_nsg_name, validate_vm_nics, validate_vm_nic, validate_vmss_disk, validate_asg_names_or_ids, validate_keyvault, _validate_proximity_placement_group, - validate_vm_name_for_monitor_metrics) + validate_vm_name_for_monitor_metrics, validate_secure_vm_guest_state_sas) from azure.cli.command_modules.vm._vm_utils import MSI_LOCAL_ID from azure.cli.command_modules.vm._image_builder import ScriptType @@ -167,6 +167,13 @@ def load_arguments(self, _): c.argument('secure_vm_disk_encryption_set', min_api='2021-08-01', help='Name or ID of disk encryption set created with ConfidentialVmEncryptedWithCustomerKey encryption type.') # endregion + # region Disks + with self.argument_context('disk grant-access', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: + c.argument('secure_vm_guest_state_sas', options_list=['--secure-vm-guest-state-sas', '-s'], min_api='2022-03-02', + action='store_true', validator=validate_secure_vm_guest_state_sas, + help="Get SAS on managed disk with VM guest state. It will be used by default when the create option of disk is 'secureOSUpload'") + # endregion + # region Disks with self.argument_context('disk', resource_type=ResourceType.MGMT_COMPUTE, operation_group='disks') as c: c.argument('zone', zone_type, min_api='2017-03-30', options_list=['--zone']) # TODO: --size-gb currently has claimed -z. We can do a breaking change later if we want to. diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index 6cabbaf42b6..e78016a7a1c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -2331,3 +2331,12 @@ def _validate_community_gallery_legal_agreement_acceptance(cmd, namespace): if not prompt_y_n(msg, default="y"): import sys sys.exit(0) + + +def validate_secure_vm_guest_state_sas(cmd, namespace): + compute_client = _compute_client_factory(cmd.cli_ctx) + disk_info = compute_client.disks.get(namespace.resource_group_name, namespace.disk_name) + DiskCreateOption = cmd.get_models('DiskCreateOption') + + if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: + namespace.secure_vm_guest_state_sas = True 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 23fe0d94dd4..5528ab9b60d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -451,15 +451,8 @@ def create_managed_disk(cmd, resource_group_name, disk_name, location=None, # p return sdk_no_wait(no_wait, client.disks.begin_create_or_update, resource_group_name, disk_name, disk) -def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None): - - secure_vm_guest_state_sas = None - if cmd.supported_api_version(min_api='2021-08-01', operation_group='disks'): - compute_client = _compute_client_factory(cmd.cli_ctx) - disk_info = compute_client.disks.get(resource_group_name, disk_name) - DiskCreateOption = cmd.get_models('DiskCreateOption', operation_group='disks') - if disk_info.creation_data and disk_info.creation_data.create_option == DiskCreateOption.upload_prepared_secure: - secure_vm_guest_state_sas = True +def grant_disk_access(cmd, resource_group_name, disk_name, duration_in_seconds, access_level=None, + secure_vm_guest_state_sas=None): return _grant_access(cmd, resource_group_name, disk_name, duration_in_seconds, is_disk=True, access_level=access_level, secure_vm_guest_state_sas=secure_vm_guest_state_sas) From 48ad61f018a8d8fc9d98e2a05c8d17de14c2b809 Mon Sep 17 00:00:00 2001 From: songlu <442586197@qq.com> Date: Thu, 30 Jun 2022 16:44:05 +0800 Subject: [PATCH 12/16] test --secure-vm-guest-state-sas and upload type --- ..._trusted_launch_os_disk_secure_upload.yaml | 988 +++++++++++++++++- .../vm/tests/latest/test_vm_commands.py | 42 +- 2 files changed, 982 insertions(+), 48 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml index 6e99a78dbb1..811b27953be 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T02:37:29Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T08:40:20Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:37:33 GMT + - Thu, 30 Jun 2022 08:40:24 GMT expires: - '-1' pragma: @@ -77,15 +77,15 @@ interactions: 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n - \ {\r\n \"id\": \"ea051658-f076-4c82-a137-9389c540df1c\",\r\n \"type\": - \"VmgsBlob\",\r\n \"name\": \"ea051658-f076-4c82-a137-9389c540df1c_vmgs\",\r\n + \ {\r\n \"id\": \"499d57dd-1f38-4498-ab19-7e01c9cbedc2\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"499d57dd-1f38-4498-ab19-7e01c9cbedc2_vmgs\",\r\n \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/f07ecadf-ecc5-4c13-813c-4ad356f7ce16?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -93,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:37:38 GMT + - Thu, 30 Jun 2022 08:40:32 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/f07ecadf-ecc5-4c13-813c-4ad356f7ce16?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -108,9 +108,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7992 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7991 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -131,11 +131,11 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/f07ecadf-ecc5-4c13-813c-4ad356f7ce16?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"endTime\": - \"2022-06-29T02:37:38.5908179+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-30T08:40:32.446354+00:00\",\r\n \"endTime\": + \"2022-06-30T08:40:32.5557423+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk000002\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n @@ -147,18 +147,18 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"eaf8e869-7a5c-4551-b4fa-3321180055ad\"\r\n}" + \"2022-06-30T08:40:32.446354+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"356d0fc7-8cb5-43a9-9dc2-ebb1f7eda357\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"f07ecadf-ecc5-4c13-813c-4ad356f7ce16\"\r\n}" headers: cache-control: - no-cache content-length: - - '1265' + - '1263' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:37:40 GMT + - Thu, 30 Jun 2022 08:40:34 GMT expires: - '-1' pragma: @@ -175,7 +175,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399989 + - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399959 status: code: 200 message: OK @@ -209,18 +209,18 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \"2022-06-30T08:40:32.446354+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"356d0fc7-8cb5-43a9-9dc2-ebb1f7eda357\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '1040' + - '1039' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:37:40 GMT + - Thu, 30 Jun 2022 08:40:35 GMT expires: - '-1' pragma: @@ -237,7 +237,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119920 + - Microsoft.Compute/LowCostGet3Min;14965,Microsoft.Compute/LowCostGet30Min;119785 status: code: 200 message: OK @@ -270,18 +270,18 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \"2022-06-30T08:40:32.446354+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"356d0fc7-8cb5-43a9-9dc2-ebb1f7eda357\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '1040' + - '1039' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:37:42 GMT + - Thu, 30 Jun 2022 08:40:35 GMT expires: - '-1' pragma: @@ -298,7 +298,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119919 + - Microsoft.Compute/LowCostGet3Min;14964,Microsoft.Compute/LowCostGet30Min;119784 status: code: 200 message: OK @@ -329,17 +329,913 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 30 Jun 2022 08:40:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskHydrate3Min;997,Microsoft.Compute/HighCostDiskHydrate30Min;7993 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-30T08:40:37.7120066+00:00\",\r\n \"endTime\": + \"2022-06-30T08:40:38.2276289+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/qs40mndhznlm/abcd?sv=2018-03-28&sr=b&si=e93ceb7e-8d28-4eb0-99a0-a32eb4cf151b&sig=BnTo5pUQW28e7d5yELXwX8XJtR29Um4MxRlg5hwlPTA%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/rcfdjff0mddw/499d57dd-1f38-4498-ab19-7e01c9cbedc2_vmgs?sv=2018-03-28&sr=b&si=c2ef8ade-707a-43dc-a701-d19f2f06d66d&sig=dMzqzgSEV3Nt5DoxUbhe9xuqAUJqwqSwvnt0Jg8Fs18%3D\"\r\n}\r\n + \ },\r\n \"name\": \"6f21dc81-b0ef-4778-b477-59ff52fc6d89\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '687' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399956 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + response: + body: + string: "{\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/qs40mndhznlm/abcd?sv=2018-03-28&sr=b&si=e93ceb7e-8d28-4eb0-99a0-a32eb4cf151b&sig=BnTo5pUQW28e7d5yELXwX8XJtR29Um4MxRlg5hwlPTA%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/rcfdjff0mddw/499d57dd-1f38-4498-ab19-7e01c9cbedc2_vmgs?sv=2018-03-28&sr=b&si=c2ef8ade-707a-43dc-a701-d19f2f06d66d&sig=dMzqzgSEV3Nt5DoxUbhe9xuqAUJqwqSwvnt0Jg8Fs18%3D\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '462' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399955 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T08:40:20Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '394' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"osType": "Windows", "hyperVGeneration": "V2", "creationData": + {"createOption": "UploadPreparedSecure", "uploadSizeBytes": 34359738880}, "securityProfile": + {"securityType": "TrustedLaunch"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + Content-Length: + - '282' + Content-Type: + - application/json + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003\",\r\n + \ \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n + \ \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Windows\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"creationData\": + {\r\n \"createOption\": \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": + 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": + \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n + \ {\r\n \"id\": \"8cc34f46-f39a-4b7c-8ec9-9c28599076ce\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"8cc34f46-f39a-4b7c-8ec9-9c28599076ce_vmgs\",\r\n + \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n + \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6b3c8620-fced-47c4-86c0-c5e2dd6e9735?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1104' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:15 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6b3c8620-fced-47c4-86c0-c5e2dd6e9735?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7990 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6b3c8620-fced-47c4-86c0-c5e2dd6e9735?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-30T08:41:16.1033462+00:00\",\r\n \"endTime\": + \"2022-06-30T08:41:16.2283126+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk1000003\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-30T08:41:16.1189288+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"683f4914-c8bd-4912-881d-a763ea3d2d82\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"6b3c8620-fced-47c4-86c0-c5e2dd6e9735\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1267' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49985,Microsoft.Compute/GetOperation30Min;399954 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-30T08:41:16.1189288+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"683f4914-c8bd-4912-881d-a763ea3d2d82\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1042' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14961,Microsoft.Compute/LowCostGet30Min;119775 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds --secure-vm-guest-state-sas + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk1000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-30T08:41:16.1189288+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"683f4914-c8bd-4912-881d-a763ea3d2d82\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1042' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14960,Microsoft.Compute/LowCostGet30Min;119774 + status: + code: 200 + message: OK +- request: + body: '{"access": "Write", "durationInSeconds": 86400, "getSecureVMGuestStateSAS": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + Content-Length: + - '81' + Content-Type: + - application/json + ParameterSetName: + - -n -g --access-level --duration-in-seconds --secure-vm-guest-state-sas + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003/beginGetAccess?api-version=2022-03-02 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 30 Jun 2022 08:41:19 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskHydrate3Min;996,Microsoft.Compute/HighCostDiskHydrate30Min;7992 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds --secure-vm-guest-state-sas + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-30T08:41:20.5721372+00:00\",\r\n \"endTime\": + \"2022-06-30T08:41:20.8533871+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/klxc5lt0b35c/abcd?sv=2018-03-28&sr=b&si=17e16cdd-1e9e-4868-add2-21c77c83a864&sig=iB0Ox7GnbCi8%2BumqQcugCMoQTDvSAAAeeLUYeYJJHUk%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/bm2mmgb3jdth/8cc34f46-f39a-4b7c-8ec9-9c28599076ce_vmgs?sv=2018-03-28&sr=b&si=555baaa7-3e3a-4bca-9472-63399e1f12bf&sig=A8bxvzo%2FHALaDGZd1Y4k7FY43%2BOSyhInf%2Fjzw7emjUM%3D\"\r\n}\r\n + \ },\r\n \"name\": \"3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '695' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399951 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds --secure-vm-guest-state-sas + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + response: + body: + string: "{\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/klxc5lt0b35c/abcd?sv=2018-03-28&sr=b&si=17e16cdd-1e9e-4868-add2-21c77c83a864&sig=iB0Ox7GnbCi8%2BumqQcugCMoQTDvSAAAeeLUYeYJJHUk%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/bm2mmgb3jdth/8cc34f46-f39a-4b7c-8ec9-9c28599076ce_vmgs?sv=2018-03-28&sr=b&si=555baaa7-3e3a-4bca-9472-63399e1f12bf&sig=A8bxvzo%2FHALaDGZd1Y4k7FY43%2BOSyhInf%2Fjzw7emjUM%3D\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '470' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:50 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49983,Microsoft.Compute/GetOperation30Min;399950 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --upload-type --upload-size-bytes --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T08:40:20Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '394' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"osType": "Windows", "hyperVGeneration": "V2", "creationData": + {"createOption": "Upload", "uploadSizeBytes": 34359738880}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + Content-Length: + - '214' + Content-Type: + - application/json + ParameterSetName: + - -n -g --os-type --hyper-v-generation --upload-type --upload-size-bytes --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk2000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004\",\r\n + \ \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n + \ \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Windows\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"creationData\": + {\r\n \"createOption\": \"Upload\",\r\n \"uploadSizeBytes\": 34359738880\r\n + \ },\r\n \"provisioningState\": \"Updating\",\r\n \"isArmResource\": + true\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/8cf367e5-c99b-48f5-9307-559d0e0e942c?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '552' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:41:58 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/8cf367e5-c99b-48f5-9307-559d0e0e942c?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;996,Microsoft.Compute/CreateUpdateDisks30Min;7989 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --upload-type --upload-size-bytes --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/8cf367e5-c99b-48f5-9307-559d0e0e942c?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"endTime\": + \"2022-06-30T08:41:59.3692751+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk2000004\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"Upload\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"25600c92-14d7-4ac6-9071-3f7531be9276\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"8cf367e5-c99b-48f5-9307-559d0e0e942c\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1180' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:42:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399949 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --upload-type --upload-size-bytes --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk2000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"Upload\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"25600c92-14d7-4ac6-9071-3f7531be9276\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:42:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14965,Microsoft.Compute/LowCostGet30Min;119768 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk2000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"Upload\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n \"diskIOPSReadWrite\": + 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": + \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"25600c92-14d7-4ac6-9071-3f7531be9276\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '955' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 08:42:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14964,Microsoft.Compute/LowCostGet30Min;119767 + status: + code: 200 + message: OK +- request: + body: '{"access": "Write", "durationInSeconds": 86400}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004/beginGetAccess?api-version=2022-03-02 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: - '0' date: - - Wed, 29 Jun 2022 02:37:43 GMT + - Thu, 30 Jun 2022 08:42:04 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -350,7 +1246,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7999 + - Microsoft.Compute/HighCostDiskHydrate3Min;997,Microsoft.Compute/HighCostDiskHydrate30Min;7991 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -372,23 +1268,22 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-29T02:37:43.6065077+00:00\",\r\n \"endTime\": - \"2022-06-29T02:37:43.9971199+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n - \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}\r\n - \ },\r\n \"name\": \"9d7da018-0a3a-4758-a7da-0d86578c5cd1\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-30T08:42:04.5411456+00:00\",\r\n \"endTime\": + \"2022-06-30T08:42:04.7755442+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/nqlg5whgkgtr/abcd?sv=2018-03-28&sr=b&si=b1435ad5-df79-493a-b52f-3e7fea05783e&sig=DvV%2F1WEcDqKDDoqLy34svnXXlGc4n8mVUKlzNMWGfWw%3D\"\r\n}\r\n + \ },\r\n \"name\": \"4ad19b01-b9d5-4787-bc8b-8ccb5da7f914\"\r\n}" headers: cache-control: - no-cache content-length: - - '693' + - '435' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:38:13 GMT + - Thu, 30 Jun 2022 08:42:34 GMT expires: - '-1' pragma: @@ -405,7 +1300,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399986 + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399946 status: code: 200 message: OK @@ -425,20 +1320,19 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 response: body: - string: "{\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n - \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}" + string: "{\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/nqlg5whgkgtr/abcd?sv=2018-03-28&sr=b&si=b1435ad5-df79-493a-b52f-3e7fea05783e&sig=DvV%2F1WEcDqKDDoqLy34svnXXlGc4n8mVUKlzNMWGfWw%3D\"\r\n}" headers: cache-control: - no-cache content-length: - - '468' + - '210' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Jun 2022 02:38:14 GMT + - Thu, 30 Jun 2022 08:42:34 GMT expires: - '-1' pragma: @@ -455,7 +1349,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399985 + - Microsoft.Compute/GetOperation3Min;49985,Microsoft.Compute/GetOperation30Min;399945 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 60e5c0f3a52..ac9f7bd60e9 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 @@ -7965,11 +7965,34 @@ def test_disk_trusted_launch(self): self.check('securityProfile.securityType', 'TrustedLaunch') ]) + @unittest.skip('vhd is not supported') + @ResourceGroupPreparer(name_prefix='cli_test_vm_trusted_launch_os_disk_secure_import', location='southcentralus') + def test_vm_trusted_launch_os_disk_secure_import(self): + self.kwargs.update({ + 'disk': 'seccuredisk', + 'vm': self.create_random_name('vm', 10), + }) + self.cmd('vm create -g {rg} -n {vm} --admin-username azrureuser --image ubuntults' + ' --admin-password testPassword01! --use-unmanaged-disk --authentication-type password --nsg-rule NONE')# + + blob_uri = self.cmd('vm show -g {rg} -n {vm}', checks=self.check('length(storageProfile.dataDisks)', 0)).get_output_in_json()['storageProfile']['osDisk']['vhd']['uri'] + self.kwargs.update({ + 'blob_uri': blob_uri, + 'vhd_uri': blob_uri[0:blob_uri.rindex('/') + 1] + 'seccuredisk.vhd' + }) + self.cmd('vm unmanaged-disk attach -g {rg} --vm-name {vm} -n {disk} --vhd {vhd_uri} --new --caching ReadWrite') + self.cmd('disk create -n {disk} -g {rg} --hyper-v-generation v2 --security-type TrustedLaunch --source {vhd_uri}' + ' --sku standard_lrs --security-data-uri {blob_uri}', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch'), + self.check('creationData.securityDataUri', '{blob_uri}') + ]) + @ResourceGroupPreparer(name_prefix='cli_test_vm_trusted_launch_os_disk_secure_upload', location='southcentralus') def test_vm_trusted_launch_os_disk_secure_upload(self): self.kwargs.update({ 'disk': self.create_random_name('disk', 10), - 'snapshot': self.create_random_name('snap', 10) + 'disk1': self.create_random_name('disk1', 10), + 'disk2': self.create_random_name('disk2', 10) }) self.cmd('disk create -n {disk} -g {rg} --os-type Windows --hyper-v-generation v2 --security-type TrustedLaunch --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs', checks=[ self.check('securityProfile.securityType', 'TrustedLaunch'), @@ -7980,6 +8003,23 @@ def test_vm_trusted_launch_os_disk_secure_upload(self): self.exists('securityDataAccessSas') ]) + self.cmd('disk create -n {disk1} -g {rg} --os-type Windows --hyper-v-generation v2 --security-type TrustedLaunch --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch'), + self.check('creationData.createOption', 'UploadPreparedSecure') + ]) + self.cmd('disk grant-access -n {disk1} -g {rg} --access-level Write --duration-in-seconds 86400 --secure-vm-guest-state-sas', checks=[ + self.exists('accessSas'), + self.exists('securityDataAccessSas') + ]) + + self.cmd('disk create -n {disk2} -g {rg} --os-type Windows --hyper-v-generation v2 --upload-type Upload --upload-size-bytes 34359738880 --sku standard_lrs', checks=[ + self.check('creationData.createOption', 'Upload'), + ]) + self.cmd('disk grant-access -n {disk2} -g {rg} --access-level Write --duration-in-seconds 86400', checks=[ + self.exists('accessSas'), + ]) + + @ResourceGroupPreparer(name_prefix='cli_test_vmss_trusted_launch_', location='southcentralus') def test_vmss_trusted(self, resource_group): self.cmd('vmss create -g {rg} -n vm --image canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest --security-type TrustedLaunch --admin-username azureuser --admin-password testPassword0 --disable-integrity-monitoring') From 6220b5c75449b62502b30535b8c323307bf55dbf Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Thu, 30 Jun 2022 17:46:44 +0800 Subject: [PATCH 13/16] Add configuration in CredScanSuppression --- scripts/ci/credscan/CredScanSuppressions.json | 6 ++++++ .../azure/cli/command_modules/vm/_validators.py | 10 +++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/scripts/ci/credscan/CredScanSuppressions.json b/scripts/ci/credscan/CredScanSuppressions.json index 7e5fa8902e6..33ef042fb0e 100644 --- a/scripts/ci/credscan/CredScanSuppressions.json +++ b/scripts/ci/credscan/CredScanSuppressions.json @@ -553,6 +553,12 @@ "src\\azure-cli\\azure\\cli\\command_modules\\container\\tests\\latest\\recordings\\test_container_create_with_acr.yaml" ], "_justification": "[Container] one-off password used in test, not persisted" + }, + { + "file": [ + "src\\azure-cli\\azure\\cli\\command_modules\\vm\\tests\\latest\\recordings\\test_vm_trusted_launch_os_disk_secure_upload.yaml" + ], + "_justification": "[VM] the SAS tokens come from the temporary test resources" } ] } diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index e78016a7a1c..2e2f71e5744 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1777,15 +1777,15 @@ def _validate_security_data_uri(namespace): return if not namespace.security_type: - return RequiredArgumentMissingError( + raise RequiredArgumentMissingError( 'Please specify --security-type when using the --security-data-uri parameter') if not namespace.hyper_v_generation or namespace.hyper_v_generation != 'V2': - return ArgumentUsageError( + raise ArgumentUsageError( "Please specify --hyper-v-generation as 'V2' when using the --security-data-uri parameter") if not namespace.source: - return RequiredArgumentMissingError( + raise RequiredArgumentMissingError( 'Please specify --source when using the --security-data-uri parameter') @@ -1801,11 +1801,11 @@ def _validate_upload_type(cmd, namespace): "Please upgrade your profile with 'az cloud set --profile newerProfile' and try again") if not namespace.security_type: - return RequiredArgumentMissingError( + raise RequiredArgumentMissingError( "Please specify --security-type when the value of --upload-type is 'UploadWithSecurityData'") if not namespace.hyper_v_generation or namespace.hyper_v_generation != 'V2': - return ArgumentUsageError( + raise ArgumentUsageError( "Please specify --hyper-v-generation as 'V2' the value of --upload-type is 'UploadWithSecurityData'") From b0143e1609ff4930c00f8fefb60649a975bf69ad Mon Sep 17 00:00:00 2001 From: songlu <442586197@qq.com> Date: Thu, 30 Jun 2022 18:04:22 +0800 Subject: [PATCH 14/16] validation test --- ..._trusted_launch_os_disk_secure_upload.yaml | 266 +++++++++--------- .../vm/tests/latest/test_vm_commands.py | 24 +- 2 files changed, 156 insertions(+), 134 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml index 811b27953be..40701a2f315 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml @@ -19,7 +19,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T08:40:20Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T10:01:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -28,7 +28,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:40:24 GMT + - Thu, 30 Jun 2022 10:01:11 GMT expires: - '-1' pragma: @@ -77,15 +77,15 @@ interactions: 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n - \ {\r\n \"id\": \"499d57dd-1f38-4498-ab19-7e01c9cbedc2\",\r\n \"type\": - \"VmgsBlob\",\r\n \"name\": \"499d57dd-1f38-4498-ab19-7e01c9cbedc2_vmgs\",\r\n + \ {\r\n \"id\": \"118f6587-59ff-44e6-a62c-a8c23470c370\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"118f6587-59ff-44e6-a62c-a8c23470c370_vmgs\",\r\n \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/f07ecadf-ecc5-4c13-813c-4ad356f7ce16?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/13996d4d-2f5c-4ab9-9a5f-22c1a00201b1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -93,11 +93,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:40:32 GMT + - Thu, 30 Jun 2022 10:01:15 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/f07ecadf-ecc5-4c13-813c-4ad356f7ce16?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/13996d4d-2f5c-4ab9-9a5f-22c1a00201b1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -108,9 +108,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7991 + - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7993 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' status: code: 202 message: Accepted @@ -131,11 +131,11 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/f07ecadf-ecc5-4c13-813c-4ad356f7ce16?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/13996d4d-2f5c-4ab9-9a5f-22c1a00201b1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-30T08:40:32.446354+00:00\",\r\n \"endTime\": - \"2022-06-30T08:40:32.5557423+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-30T10:01:16.393733+00:00\",\r\n \"endTime\": + \"2022-06-30T10:01:16.5186843+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk000002\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n @@ -147,9 +147,9 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:40:32.446354+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"356d0fc7-8cb5-43a9-9dc2-ebb1f7eda357\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"f07ecadf-ecc5-4c13-813c-4ad356f7ce16\"\r\n}" + \"2022-06-30T10:01:16.393733+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"f0e7308b-6ec6-4760-8cf4-4dd8227ddafd\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"13996d4d-2f5c-4ab9-9a5f-22c1a00201b1\"\r\n}" headers: cache-control: - no-cache @@ -158,7 +158,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:40:34 GMT + - Thu, 30 Jun 2022 10:01:18 GMT expires: - '-1' pragma: @@ -175,7 +175,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399959 + - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399963 status: code: 200 message: OK @@ -209,8 +209,8 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:40:32.446354+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"356d0fc7-8cb5-43a9-9dc2-ebb1f7eda357\"\r\n + \"2022-06-30T10:01:16.393733+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"f0e7308b-6ec6-4760-8cf4-4dd8227ddafd\"\r\n \ }\r\n}" headers: cache-control: @@ -220,7 +220,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:40:35 GMT + - Thu, 30 Jun 2022 10:01:18 GMT expires: - '-1' pragma: @@ -237,7 +237,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14965,Microsoft.Compute/LowCostGet30Min;119785 + - Microsoft.Compute/LowCostGet3Min;14955,Microsoft.Compute/LowCostGet30Min;119643 status: code: 200 message: OK @@ -270,8 +270,8 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:40:32.446354+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"356d0fc7-8cb5-43a9-9dc2-ebb1f7eda357\"\r\n + \"2022-06-30T10:01:16.393733+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"f0e7308b-6ec6-4760-8cf4-4dd8227ddafd\"\r\n \ }\r\n}" headers: cache-control: @@ -281,7 +281,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:40:35 GMT + - Thu, 30 Jun 2022 10:01:20 GMT expires: - '-1' pragma: @@ -298,7 +298,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14964,Microsoft.Compute/LowCostGet30Min;119784 + - Microsoft.Compute/LowCostGet3Min;14954,Microsoft.Compute/LowCostGet30Min;119642 status: code: 200 message: OK @@ -329,17 +329,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/95d46a0b-b00c-4773-9310-7dadb2fb1d91?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: - '0' date: - - Thu, 30 Jun 2022 08:40:37 GMT + - Thu, 30 Jun 2022 10:01:20 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/95d46a0b-b00c-4773-9310-7dadb2fb1d91?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -350,7 +350,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;997,Microsoft.Compute/HighCostDiskHydrate30Min;7993 + - Microsoft.Compute/HighCostDiskHydrate3Min;998,Microsoft.Compute/HighCostDiskHydrate30Min;7993 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -372,23 +372,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/95d46a0b-b00c-4773-9310-7dadb2fb1d91?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-30T08:40:37.7120066+00:00\",\r\n \"endTime\": - \"2022-06-30T08:40:38.2276289+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/qs40mndhznlm/abcd?sv=2018-03-28&sr=b&si=e93ceb7e-8d28-4eb0-99a0-a32eb4cf151b&sig=BnTo5pUQW28e7d5yELXwX8XJtR29Um4MxRlg5hwlPTA%3D\",\r\n - \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/rcfdjff0mddw/499d57dd-1f38-4498-ab19-7e01c9cbedc2_vmgs?sv=2018-03-28&sr=b&si=c2ef8ade-707a-43dc-a701-d19f2f06d66d&sig=dMzqzgSEV3Nt5DoxUbhe9xuqAUJqwqSwvnt0Jg8Fs18%3D\"\r\n}\r\n - \ },\r\n \"name\": \"6f21dc81-b0ef-4778-b477-59ff52fc6d89\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-30T10:01:21.0656006+00:00\",\r\n \"endTime\": + \"2022-06-30T10:01:21.487479+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/43db2k0bkprf/abcd?sv=2018-03-28&sr=b&si=0a8e3355-6346-4655-a164-51a8c895e941&sig=LD4gPYbLiSDOyyUqsjIOp6HMZwUa%2FN9h7YQTShHOy44%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/np3qbkngnp5b/118f6587-59ff-44e6-a62c-a8c23470c370_vmgs?sv=2018-03-28&sr=b&si=456ab090-eaa5-4d7b-bc3c-6497af78a624&sig=27t91gU4c7%2FuYcllTUNgCAynTDZ%2BcI1dGh4bdoYjflU%3D\"\r\n}\r\n + \ },\r\n \"name\": \"95d46a0b-b00c-4773-9310-7dadb2fb1d91\"\r\n}" headers: cache-control: - no-cache content-length: - - '687' + - '690' content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:08 GMT + - Thu, 30 Jun 2022 10:01:51 GMT expires: - '-1' pragma: @@ -405,7 +405,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399956 + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399960 status: code: 200 message: OK @@ -425,20 +425,20 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6f21dc81-b0ef-4778-b477-59ff52fc6d89?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/95d46a0b-b00c-4773-9310-7dadb2fb1d91?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 response: body: - string: "{\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/qs40mndhznlm/abcd?sv=2018-03-28&sr=b&si=e93ceb7e-8d28-4eb0-99a0-a32eb4cf151b&sig=BnTo5pUQW28e7d5yELXwX8XJtR29Um4MxRlg5hwlPTA%3D\",\r\n - \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/rcfdjff0mddw/499d57dd-1f38-4498-ab19-7e01c9cbedc2_vmgs?sv=2018-03-28&sr=b&si=c2ef8ade-707a-43dc-a701-d19f2f06d66d&sig=dMzqzgSEV3Nt5DoxUbhe9xuqAUJqwqSwvnt0Jg8Fs18%3D\"\r\n}" + string: "{\r\n \"accessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/43db2k0bkprf/abcd?sv=2018-03-28&sr=b&si=0a8e3355-6346-4655-a164-51a8c895e941&sig=LD4gPYbLiSDOyyUqsjIOp6HMZwUa%2FN9h7YQTShHOy44%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/np3qbkngnp5b/118f6587-59ff-44e6-a62c-a8c23470c370_vmgs?sv=2018-03-28&sr=b&si=456ab090-eaa5-4d7b-bc3c-6497af78a624&sig=27t91gU4c7%2FuYcllTUNgCAynTDZ%2BcI1dGh4bdoYjflU%3D\"\r\n}" headers: cache-control: - no-cache content-length: - - '462' + - '466' content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:08 GMT + - Thu, 30 Jun 2022 10:01:51 GMT expires: - '-1' pragma: @@ -455,7 +455,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399955 + - Microsoft.Compute/GetOperation3Min;49989,Microsoft.Compute/GetOperation30Min;399959 status: code: 200 message: OK @@ -479,7 +479,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T08:40:20Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T10:01:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -488,7 +488,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:08 GMT + - Thu, 30 Jun 2022 10:01:51 GMT expires: - '-1' pragma: @@ -537,15 +537,15 @@ interactions: 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n - \ {\r\n \"id\": \"8cc34f46-f39a-4b7c-8ec9-9c28599076ce\",\r\n \"type\": - \"VmgsBlob\",\r\n \"name\": \"8cc34f46-f39a-4b7c-8ec9-9c28599076ce_vmgs\",\r\n + \ {\r\n \"id\": \"64e3addd-ba16-476f-9bf4-dfaab55598e1\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"64e3addd-ba16-476f-9bf4-dfaab55598e1_vmgs\",\r\n \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6b3c8620-fced-47c4-86c0-c5e2dd6e9735?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/cd15f0e3-c739-47a0-9cfc-9b67c64e904a?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -553,11 +553,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:15 GMT + - Thu, 30 Jun 2022 10:01:57 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6b3c8620-fced-47c4-86c0-c5e2dd6e9735?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/cd15f0e3-c739-47a0-9cfc-9b67c64e904a?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -568,9 +568,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7990 + - Microsoft.Compute/CreateUpdateDisks3Min;998,Microsoft.Compute/CreateUpdateDisks30Min;7992 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -591,11 +591,11 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/6b3c8620-fced-47c4-86c0-c5e2dd6e9735?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/cd15f0e3-c739-47a0-9cfc-9b67c64e904a?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-30T08:41:16.1033462+00:00\",\r\n \"endTime\": - \"2022-06-30T08:41:16.2283126+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-30T10:01:56.9252076+00:00\",\r\n \"endTime\": + \"2022-06-30T10:01:57.0658682+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk1000003\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk1000003\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n @@ -607,9 +607,9 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:41:16.1189288+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"683f4914-c8bd-4912-881d-a763ea3d2d82\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"6b3c8620-fced-47c4-86c0-c5e2dd6e9735\"\r\n}" + \"2022-06-30T10:01:56.9252076+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"8a4b6b70-7de0-4e2e-8a70-2d0992a7eb05\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"cd15f0e3-c739-47a0-9cfc-9b67c64e904a\"\r\n}" headers: cache-control: - no-cache @@ -618,7 +618,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:18 GMT + - Thu, 30 Jun 2022 10:01:59 GMT expires: - '-1' pragma: @@ -635,7 +635,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49985,Microsoft.Compute/GetOperation30Min;399954 + - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399958 status: code: 200 message: OK @@ -669,8 +669,8 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:41:16.1189288+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"683f4914-c8bd-4912-881d-a763ea3d2d82\"\r\n + \"2022-06-30T10:01:56.9252076+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"8a4b6b70-7de0-4e2e-8a70-2d0992a7eb05\"\r\n \ }\r\n}" headers: cache-control: @@ -680,7 +680,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:18 GMT + - Thu, 30 Jun 2022 10:01:59 GMT expires: - '-1' pragma: @@ -697,7 +697,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14961,Microsoft.Compute/LowCostGet30Min;119775 + - Microsoft.Compute/LowCostGet3Min;14954,Microsoft.Compute/LowCostGet30Min;119628 status: code: 200 message: OK @@ -730,8 +730,8 @@ interactions: {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:41:16.1189288+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"683f4914-c8bd-4912-881d-a763ea3d2d82\"\r\n + \"2022-06-30T10:01:56.9252076+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"8a4b6b70-7de0-4e2e-8a70-2d0992a7eb05\"\r\n \ }\r\n}" headers: cache-control: @@ -741,7 +741,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:19 GMT + - Thu, 30 Jun 2022 10:02:00 GMT expires: - '-1' pragma: @@ -758,7 +758,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14960,Microsoft.Compute/LowCostGet30Min;119774 + - Microsoft.Compute/LowCostGet3Min;14963,Microsoft.Compute/LowCostGet30Min;119626 status: code: 200 message: OK @@ -789,17 +789,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/55a32632-8eaf-4797-bd62-d3161d1eb728?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: - '0' date: - - Thu, 30 Jun 2022 08:41:19 GMT + - Thu, 30 Jun 2022 10:02:01 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/55a32632-8eaf-4797-bd62-d3161d1eb728?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -810,7 +810,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskHydrate3Min;996,Microsoft.Compute/HighCostDiskHydrate30Min;7992 + - Microsoft.Compute/HighCostDiskHydrate3Min;998,Microsoft.Compute/HighCostDiskHydrate30Min;7992 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -832,23 +832,23 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/55a32632-8eaf-4797-bd62-d3161d1eb728?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-30T08:41:20.5721372+00:00\",\r\n \"endTime\": - \"2022-06-30T08:41:20.8533871+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/klxc5lt0b35c/abcd?sv=2018-03-28&sr=b&si=17e16cdd-1e9e-4868-add2-21c77c83a864&sig=iB0Ox7GnbCi8%2BumqQcugCMoQTDvSAAAeeLUYeYJJHUk%3D\",\r\n - \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/bm2mmgb3jdth/8cc34f46-f39a-4b7c-8ec9-9c28599076ce_vmgs?sv=2018-03-28&sr=b&si=555baaa7-3e3a-4bca-9472-63399e1f12bf&sig=A8bxvzo%2FHALaDGZd1Y4k7FY43%2BOSyhInf%2Fjzw7emjUM%3D\"\r\n}\r\n - \ },\r\n \"name\": \"3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-30T10:02:01.5501944+00:00\",\r\n \"endTime\": + \"2022-06-30T10:02:01.8470964+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/3pd3tnq1sgtw/abcd?sv=2018-03-28&sr=b&si=7a1e5b7c-1171-48c6-a05f-65c5c2b6b010&sig=HGFdcLcK2meI2v%2Bg0YHYc4qIqX8UOlmfh%2FcikM6Ux5g%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/d1jm0w5j1f0f/64e3addd-ba16-476f-9bf4-dfaab55598e1_vmgs?sv=2018-03-28&sr=b&si=2a5a0e09-9ac6-4b4f-9d07-c1ccc9ac957c&sig=m3BrlKJ2AZnlfoo4XYMZp5hk%2BLo6mbqN9IDZCpFjnxE%3D\"\r\n}\r\n + \ },\r\n \"name\": \"55a32632-8eaf-4797-bd62-d3161d1eb728\"\r\n}" headers: cache-control: - no-cache content-length: - - '695' + - '691' content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:50 GMT + - Thu, 30 Jun 2022 10:02:31 GMT expires: - '-1' pragma: @@ -865,7 +865,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49984,Microsoft.Compute/GetOperation30Min;399951 + - Microsoft.Compute/GetOperation3Min;49988,Microsoft.Compute/GetOperation30Min;399955 status: code: 200 message: OK @@ -885,20 +885,20 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/3daae2cd-ff8f-487a-a8e6-ae1dd76c16d0?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/55a32632-8eaf-4797-bd62-d3161d1eb728?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 response: body: - string: "{\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/klxc5lt0b35c/abcd?sv=2018-03-28&sr=b&si=17e16cdd-1e9e-4868-add2-21c77c83a864&sig=iB0Ox7GnbCi8%2BumqQcugCMoQTDvSAAAeeLUYeYJJHUk%3D\",\r\n - \ \"securityDataAccessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/bm2mmgb3jdth/8cc34f46-f39a-4b7c-8ec9-9c28599076ce_vmgs?sv=2018-03-28&sr=b&si=555baaa7-3e3a-4bca-9472-63399e1f12bf&sig=A8bxvzo%2FHALaDGZd1Y4k7FY43%2BOSyhInf%2Fjzw7emjUM%3D\"\r\n}" + string: "{\r\n \"accessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/3pd3tnq1sgtw/abcd?sv=2018-03-28&sr=b&si=7a1e5b7c-1171-48c6-a05f-65c5c2b6b010&sig=HGFdcLcK2meI2v%2Bg0YHYc4qIqX8UOlmfh%2FcikM6Ux5g%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/d1jm0w5j1f0f/64e3addd-ba16-476f-9bf4-dfaab55598e1_vmgs?sv=2018-03-28&sr=b&si=2a5a0e09-9ac6-4b4f-9d07-c1ccc9ac957c&sig=m3BrlKJ2AZnlfoo4XYMZp5hk%2BLo6mbqN9IDZCpFjnxE%3D\"\r\n}" headers: cache-control: - no-cache content-length: - - '470' + - '466' content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:50 GMT + - Thu, 30 Jun 2022 10:02:32 GMT expires: - '-1' pragma: @@ -915,7 +915,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49983,Microsoft.Compute/GetOperation30Min;399950 + - Microsoft.Compute/GetOperation3Min;49987,Microsoft.Compute/GetOperation30Min;399954 status: code: 200 message: OK @@ -938,7 +938,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T08:40:20Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T10:01:10Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -947,7 +947,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:52 GMT + - Thu, 30 Jun 2022 10:02:32 GMT expires: - '-1' pragma: @@ -995,7 +995,7 @@ interactions: true\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/8cf367e5-c99b-48f5-9307-559d0e0e942c?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/d8f8e57a-d977-4558-99b4-a46847bc0eac?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -1003,11 +1003,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:41:58 GMT + - Thu, 30 Jun 2022 10:02:38 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/8cf367e5-c99b-48f5-9307-559d0e0e942c?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/d8f8e57a-d977-4558-99b4-a46847bc0eac?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -1018,7 +1018,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateDisks3Min;996,Microsoft.Compute/CreateUpdateDisks30Min;7989 + - Microsoft.Compute/CreateUpdateDisks3Min;997,Microsoft.Compute/CreateUpdateDisks30Min;7991 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -1040,11 +1040,11 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/8cf367e5-c99b-48f5-9307-559d0e0e942c?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/d8f8e57a-d977-4558-99b4-a46847bc0eac?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"endTime\": - \"2022-06-30T08:41:59.3692751+00:00\",\r\n \"status\": \"Succeeded\",\r\n + string: "{\r\n \"startTime\": \"2022-06-30T10:02:38.7379606+00:00\",\r\n \"endTime\": + \"2022-06-30T10:02:38.8629217+00:00\",\r\n \"status\": \"Succeeded\",\r\n \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk2000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk2000004\",\r\n \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n @@ -1055,9 +1055,9 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"25600c92-14d7-4ac6-9071-3f7531be9276\"\r\n - \ }\r\n}\r\n },\r\n \"name\": \"8cf367e5-c99b-48f5-9307-559d0e0e942c\"\r\n}" + \"2022-06-30T10:02:38.7379606+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"2fc0bfe5-229e-4ade-86b9-f1d0cc523b71\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"d8f8e57a-d977-4558-99b4-a46847bc0eac\"\r\n}" headers: cache-control: - no-cache @@ -1066,7 +1066,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:42:00 GMT + - Thu, 30 Jun 2022 10:02:40 GMT expires: - '-1' pragma: @@ -1076,10 +1076,14 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399949 + - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399953 status: code: 200 message: OK @@ -1111,8 +1115,8 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"25600c92-14d7-4ac6-9071-3f7531be9276\"\r\n + \"2022-06-30T10:02:38.7379606+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"2fc0bfe5-229e-4ade-86b9-f1d0cc523b71\"\r\n \ }\r\n}" headers: cache-control: @@ -1122,7 +1126,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:42:01 GMT + - Thu, 30 Jun 2022 10:02:40 GMT expires: - '-1' pragma: @@ -1132,10 +1136,14 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14965,Microsoft.Compute/LowCostGet30Min;119768 + - Microsoft.Compute/LowCostGet3Min;14949,Microsoft.Compute/LowCostGet30Min;119607 status: code: 200 message: OK @@ -1167,8 +1175,8 @@ interactions: 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": \"AllowAll\",\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": - \"2022-06-30T08:41:59.2442844+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"25600c92-14d7-4ac6-9071-3f7531be9276\"\r\n + \"2022-06-30T10:02:38.7379606+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"2fc0bfe5-229e-4ade-86b9-f1d0cc523b71\"\r\n \ }\r\n}" headers: cache-control: @@ -1178,7 +1186,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:42:02 GMT + - Thu, 30 Jun 2022 10:02:42 GMT expires: - '-1' pragma: @@ -1188,14 +1196,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14964,Microsoft.Compute/LowCostGet30Min;119767 + - Microsoft.Compute/LowCostGet3Min;14948,Microsoft.Compute/LowCostGet30Min;119606 status: code: 200 message: OK @@ -1225,17 +1229,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/b3c3a22a-d688-4b67-a92b-cb6dd3bde78b?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 cache-control: - no-cache content-length: - '0' date: - - Thu, 30 Jun 2022 08:42:04 GMT + - Thu, 30 Jun 2022 10:02:43 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/b3c3a22a-d688-4b67-a92b-cb6dd3bde78b?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -1248,7 +1252,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/HighCostDiskHydrate3Min;997,Microsoft.Compute/HighCostDiskHydrate30Min;7991 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 202 message: Accepted @@ -1268,22 +1272,22 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/b3c3a22a-d688-4b67-a92b-cb6dd3bde78b?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-06-30T08:42:04.5411456+00:00\",\r\n \"endTime\": - \"2022-06-30T08:42:04.7755442+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/nqlg5whgkgtr/abcd?sv=2018-03-28&sr=b&si=b1435ad5-df79-493a-b52f-3e7fea05783e&sig=DvV%2F1WEcDqKDDoqLy34svnXXlGc4n8mVUKlzNMWGfWw%3D\"\r\n}\r\n - \ },\r\n \"name\": \"4ad19b01-b9d5-4787-bc8b-8ccb5da7f914\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-30T10:02:43.8785824+00:00\",\r\n \"endTime\": + \"2022-06-30T10:02:44.1129825+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/rpbpnjwstwmn/abcd?sv=2018-03-28&sr=b&si=8f851692-2f55-4598-b021-f9fd8272771e&sig=mQpTqt88i85NR3nrG%2FJ18PSpo251LjhRg6vLJ8blVL4%3D\"\r\n}\r\n + \ },\r\n \"name\": \"b3c3a22a-d688-4b67-a92b-cb6dd3bde78b\"\r\n}" headers: cache-control: - no-cache content-length: - - '435' + - '434' content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:42:34 GMT + - Thu, 30 Jun 2022 10:03:13 GMT expires: - '-1' pragma: @@ -1300,7 +1304,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49986,Microsoft.Compute/GetOperation30Min;399946 + - Microsoft.Compute/GetOperation3Min;49983,Microsoft.Compute/GetOperation30Min;399950 status: code: 200 message: OK @@ -1320,19 +1324,19 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/4ad19b01-b9d5-4787-bc8b-8ccb5da7f914?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/b3c3a22a-d688-4b67-a92b-cb6dd3bde78b?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 response: body: - string: "{\r\n \"accessSAS\": \"https://md-impexp-jnc5kmmdgxn2.z27.blob.storage.azure.net/nqlg5whgkgtr/abcd?sv=2018-03-28&sr=b&si=b1435ad5-df79-493a-b52f-3e7fea05783e&sig=DvV%2F1WEcDqKDDoqLy34svnXXlGc4n8mVUKlzNMWGfWw%3D\"\r\n}" + string: "{\r\n \"accessSAS\": \"https://md-impexp-zjc1sxkkbxb5.z7.blob.storage.azure.net/rpbpnjwstwmn/abcd?sv=2018-03-28&sr=b&si=8f851692-2f55-4598-b021-f9fd8272771e&sig=mQpTqt88i85NR3nrG%2FJ18PSpo251LjhRg6vLJ8blVL4%3D\"\r\n}" headers: cache-control: - no-cache content-length: - - '210' + - '209' content-type: - application/json; charset=utf-8 date: - - Thu, 30 Jun 2022 08:42:34 GMT + - Thu, 30 Jun 2022 10:03:14 GMT expires: - '-1' pragma: @@ -1349,7 +1353,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49985,Microsoft.Compute/GetOperation30Min;399945 + - Microsoft.Compute/GetOperation3Min;49982,Microsoft.Compute/GetOperation30Min;399949 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index ac9f7bd60e9..d99c6ad5bab 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 @@ -7972,7 +7972,7 @@ def test_vm_trusted_launch_os_disk_secure_import(self): 'disk': 'seccuredisk', 'vm': self.create_random_name('vm', 10), }) - self.cmd('vm create -g {rg} -n {vm} --admin-username azrureuser --image ubuntults' + self.cmd('vm create -g {rg} -n {vm} --admin-username azrureuser --image MicrosoftWindowsServer:windows-cvm:2022-datacenter-cvm:latest --security-type ConfidentialVM' ' --admin-password testPassword01! --use-unmanaged-disk --authentication-type password --nsg-rule NONE')# blob_uri = self.cmd('vm show -g {rg} -n {vm}', checks=self.check('length(storageProfile.dataDisks)', 0)).get_output_in_json()['storageProfile']['osDisk']['vhd']['uri'] @@ -7981,12 +7981,23 @@ def test_vm_trusted_launch_os_disk_secure_import(self): 'vhd_uri': blob_uri[0:blob_uri.rindex('/') + 1] + 'seccuredisk.vhd' }) self.cmd('vm unmanaged-disk attach -g {rg} --vm-name {vm} -n {disk} --vhd {vhd_uri} --new --caching ReadWrite') - self.cmd('disk create -n {disk} -g {rg} --hyper-v-generation v2 --security-type TrustedLaunch --source {vhd_uri}' - ' --sku standard_lrs --security-data-uri {blob_uri}', checks=[ + self.cmd('disk create -n {disk} -g {rg} --hyper-v-generation v2 --security-type TrustedLaunch --source {vhd_uri} --sku standard_lrs --security-data-uri {blob_uri}', checks=[ self.check('securityProfile.securityType', 'TrustedLaunch'), self.check('creationData.securityDataUri', '{blob_uri}') ]) + message = 'Please specify --security-type when using the --security-data-uri parameter' + with self.assertRaisesRegex(RequiredArgumentMissingError, message): + self.cmd('disk create -n {disk} -g {rg} --hyper-v-generation v2 --source {vhd_uri} --sku standard_lrs --security-data-uri {blob_uri}') + + message = "Please specify --hyper-v-generation as 'V2' when using the --security-data-uri parameter" + with self.assertRaisesRegex(ArgumentUsageError, message): + self.cmd('disk create -n {disk} -g {rg} --hyper-v-generation v1 --source {vhd_uri} --security-type TrustedLaunch --sku standard_lrs --security-data-uri {blob_uri}') + + message = 'Please specify --source when using the --security-data-uri parameter' + with self.assertRaisesRegex(RequiredArgumentMissingError, message): + self.cmd('disk create -n {disk} -g {rg} --hyper-v-generation v2 --security-type TrustedLaunch --sku standard_lrs --security-data-uri {blob_uri}') + @ResourceGroupPreparer(name_prefix='cli_test_vm_trusted_launch_os_disk_secure_upload', location='southcentralus') def test_vm_trusted_launch_os_disk_secure_upload(self): self.kwargs.update({ @@ -8019,6 +8030,13 @@ def test_vm_trusted_launch_os_disk_secure_upload(self): self.exists('accessSas'), ]) + message = "Please specify --security-type when the value of --upload-type is 'UploadWithSecurityData'" + with self.assertRaisesRegex(RequiredArgumentMissingError, message): + self.cmd('disk create -n {disk2} -g {rg} --os-type Windows --hyper-v-generation v2 --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs') + + message = "Please specify --hyper-v-generation as 'V2' the value of --upload-type is 'UploadWithSecurityData'" + with self.assertRaisesRegex(ArgumentUsageError, message): + self.cmd('disk create -n {disk2} -g {rg} --os-type Windows --hyper-v-generation v1 --security-type TrustedLaunch --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs') @ResourceGroupPreparer(name_prefix='cli_test_vmss_trusted_launch_', location='southcentralus') def test_vmss_trusted(self, resource_group): From d8bf54ff08ac5fdd55a897342daf594b47603f5a Mon Sep 17 00:00:00 2001 From: zhoxing-ms Date: Thu, 30 Jun 2022 18:19:58 +0800 Subject: [PATCH 15/16] Fix CI issue --- src/azure-cli/azure/cli/command_modules/vm/_validators.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_validators.py b/src/azure-cli/azure/cli/command_modules/vm/_validators.py index 2e2f71e5744..9cc205b19cc 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -1773,7 +1773,7 @@ def process_disk_create_namespace(cmd, namespace): def _validate_security_data_uri(namespace): - if not namespace.security_data_uri: + if 'security_data_uri' not in namespace or not namespace.security_data_uri: return if not namespace.security_type: @@ -1790,6 +1790,9 @@ def _validate_security_data_uri(namespace): def _validate_upload_type(cmd, namespace): + if 'upload_type' not in namespace: + return + if not namespace.upload_type and namespace.for_upload: namespace.upload_type = 'Upload' From 94cb3f608b60eb3851149fa5bbf9977d4fa2780b Mon Sep 17 00:00:00 2001 From: songlu <442586197@qq.com> Date: Thu, 30 Jun 2022 21:05:24 +0800 Subject: [PATCH 16/16] validation test --- .../test_os_disk_security_encryption.yaml | 649 +++++++++++++----- .../vm/tests/latest/test_vm_commands.py | 9 +- 2 files changed, 491 insertions(+), 167 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml index c81c4f05154..b69e85ca4f8 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_os_disk_security_encryption.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-05-31T02:49:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T11:37:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:49:37 GMT + - Thu, 30 Jun 2022 11:37:53 GMT expires: - '-1' pragma: @@ -71,7 +71,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:49:38 GMT + - Thu, 30 Jun 2022 11:37:54 GMT expires: - '-1' pragma: @@ -114,11 +114,11 @@ interactions: content-type: - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 date: - - Tue, 31 May 2022 02:49:39 GMT + - Thu, 30 Jun 2022 11:37:55 GMT odata-version: - '4.0' request-id: - - e6d4298f-a24a-49f8-9552-362c48211298 + - 578c0435-529f-4e26-b8f7-86173a5ef374 strict-transport-security: - max-age=31536000 transfer-encoding: @@ -126,7 +126,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00002335"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035DD"}}' x-ms-resource-unit: - '1' status: @@ -161,7 +161,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002?api-version=2021-06-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-05-31T02:49:44.891Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-05-31T02:49:44.891Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net","provisioningState":"RegisteringDns","publicNetworkAccess":"Enabled"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-06-30T11:38:01.856Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-30T11:38:01.856Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net","provisioningState":"RegisteringDns","publicNetworkAccess":"Enabled"}}' headers: cache-control: - no-cache @@ -170,7 +170,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:49:47 GMT + - Thu, 30 Jun 2022 11:38:07 GMT expires: - '-1' pragma: @@ -188,7 +188,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.5.396.0 + - 1.5.413.0 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-powered-by: @@ -215,7 +215,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002?api-version=2021-06-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-05-31T02:49:44.891Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-05-31T02:49:44.891Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-06-30T11:38:01.856Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-30T11:38:01.856Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' headers: cache-control: - no-cache @@ -224,7 +224,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:50:18 GMT + - Thu, 30 Jun 2022 11:38:37 GMT expires: - '-1' pragma: @@ -242,7 +242,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.5.396.0 + - 1.5.413.0 x-powered-by: - ASP.NET status: @@ -277,7 +277,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:50:19 GMT + - Thu, 30 Jun 2022 11:38:39 GMT expires: - '-1' pragma: @@ -294,7 +294,7 @@ interactions: x-ms-keyvault-region: - centraluseuap x-ms-keyvault-service-version: - - 1.9.422.1 + - 1.9.444.2 x-powered-by: - ASP.NET status: @@ -319,7 +319,7 @@ interactions: uri: https://vault000002.vault.azure.net/keys/key000003/create?api-version=7.3 response: body: - string: '{"key":{"kid":"https://vault000002.vault.azure.net/keys/key000003/76efa76109434ed4bd02d51c23d7e2fb","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"5l3kkcECDwTq16qf2IKrBy2mBU4jXysL-eAPaoSJEA3VO68-i5geboi8mDKGnSM5l3NilwBzvnG0A-VRh9iFVSC3LG-kSFxTgFzJ1-3hMwMGdPXefbJDmrwuaDgi-JshsJCwgHh7wlG-WgDZ1F3dEMJeG9X3hR3zLd0bFdDpWKfFYCU8ifR4zW8LUvsCOb1ICr-sXZVr4hP5m6FfiBz_9OpchPdQloWIQdhlr3spF-WyczbSrbmzX3Ms89932DjVwWBKKDav4ly5ThbNUbUl1Igx4y0ESOMHfWwzdr2HmIwxF-w_B2b2AASMROJ_6Fn-JzfanLa7MfPM1E2S_QgCpQ","e":"AQAB"},"attributes":{"enabled":true,"created":1653965420,"updated":1653965420,"recoveryLevel":"Recoverable","recoverableDays":90}}' + string: '{"key":{"kid":"https://vault000002.vault.azure.net/keys/key000003/e3182fae2dd24edf844e25caf4846dfe","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"qG-gKAcb74ouUEeDi1iMwmSCB8gkfMtmDQg_o5tD76I43ZyD4mSEzXbVT56raenEWY1BNmjSg6QIkQ6XWox5OP7MeVN7CP2wzOE0DI8blv59r4AvjWgG0AjKxANGE8EYOpVFD0PH_K1qjCgWKzr1FoJhTDAZJGbGmvStzKkGa2Kb8H7Oa-BbxkT_AoLJ5oQKOdArZDRtMNVxtqeQAxUBlljIUj73BaPSFhPc60qjv4vc1HtUO_aPitTk2iPgEGovEtKv4YAtZz0fzseVbpAg5KyI76PycC5taYq7OUs0dqHWb66iUWClQnnHPsE4bLTfCzXbT9GB506Pt67VXQvIdQ","e":"AQAB"},"attributes":{"enabled":true,"created":1656589120,"updated":1656589120,"recoveryLevel":"Recoverable","recoverableDays":90}}' headers: cache-control: - no-cache @@ -328,7 +328,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:50:20 GMT + - Thu, 30 Jun 2022 11:38:39 GMT expires: - '-1' pragma: @@ -342,7 +342,7 @@ interactions: x-ms-keyvault-region: - centraluseuap x-ms-keyvault-service-version: - - 1.9.422.1 + - 1.9.444.2 x-powered-by: - ASP.NET status: @@ -367,7 +367,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-05-31T02:49:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T11:37:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -376,7 +376,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:50:21 GMT + - Thu, 30 Jun 2022 11:38:41 GMT expires: - '-1' pragma: @@ -394,7 +394,7 @@ interactions: body: '{"location": "centraluseuap", "identity": {"type": "SystemAssigned"}, "properties": {"encryptionType": "ConfidentialVmEncryptedWithCustomerKey", "activeKey": {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002"}, - "keyUrl": "https://vault000002.vault.azure.net/keys/key000003/76efa76109434ed4bd02d51c23d7e2fb"}}}' + "keyUrl": "https://vault000002.vault.azure.net/keys/key000003/e3182fae2dd24edf844e25caf4846dfe"}}}' headers: Accept: - application/json @@ -411,7 +411,7 @@ interactions: ParameterSetName: - -g -n --key-url --source-vault --encryption-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004?api-version=2022-03-02 response: @@ -419,12 +419,12 @@ interactions: string: "{\r\n \"location\": \"centraluseuap\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \ \"sourceVault\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault000002.vault.azure.net/keys/key000003/76efa76109434ed4bd02d51c23d7e2fb\"\r\n + \ },\r\n \"keyUrl\": \"https://vault000002.vault.azure.net/keys/key000003/e3182fae2dd24edf844e25caf4846dfe\"\r\n \ },\r\n \"encryptionType\": \"ConfidentialVmEncryptedWithCustomerKey\",\r\n \ \"provisioningState\": \"Updating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/DiskOperations/44841827-f85f-4c82-b0de-3ddbf721a25b?p=157f1a74-df5f-47b0-a815-476d8af3dce4&api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/DiskOperations/c5c4bc40-cde9-4d29-9334-5a9845f662bf?p=157f1a74-df5f-47b0-a815-476d8af3dce4&api-version=2022-03-02 cache-control: - no-cache content-length: @@ -432,11 +432,11 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:50:31 GMT + - Thu, 30 Jun 2022 11:38:48 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/DiskOperations/44841827-f85f-4c82-b0de-3ddbf721a25b?p=157f1a74-df5f-47b0-a815-476d8af3dce4&monitor=true&api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/DiskOperations/c5c4bc40-cde9-4d29-9334-5a9845f662bf?p=157f1a74-df5f-47b0-a815-476d8af3dce4&monitor=true&api-version=2022-03-02 pragma: - no-cache server: @@ -447,7 +447,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/HighCostDiskEncryptionSet3Min;99,Microsoft.Compute/HighCostDiskEncryptionSet30Min;296 + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;98,Microsoft.Compute/HighCostDiskEncryptionSet30Min;295 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -467,24 +467,24 @@ interactions: ParameterSetName: - -g -n --key-url --source-vault --encryption-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/DiskOperations/44841827-f85f-4c82-b0de-3ddbf721a25b?p=157f1a74-df5f-47b0-a815-476d8af3dce4&api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/DiskOperations/c5c4bc40-cde9-4d29-9334-5a9845f662bf?p=157f1a74-df5f-47b0-a815-476d8af3dce4&api-version=2022-03-02 response: body: - string: "{\r\n \"startTime\": \"2022-05-31T02:50:31.2973873+00:00\",\r\n \"endTime\": - \"2022-05-31T02:50:31.3754953+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"properties\": {\r\n \"output\": {\"name\":\"des1000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"b43b6542-7642-409f-8b2a-27659e9b327e\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002\"},\"keyUrl\":\"https://vault000002.vault.azure.net/keys/key000003/76efa76109434ed4bd02d51c23d7e2fb\"},\"encryptionType\":\"ConfidentialVmEncryptedWithCustomerKey\",\"provisioningState\":\"Succeeded\"}}\r\n - \ },\r\n \"name\": \"44841827-f85f-4c82-b0de-3ddbf721a25b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-30T11:38:48.751145+00:00\",\r\n \"endTime\": + \"2022-06-30T11:38:48.8136874+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"centraluseuap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"11cc4425-9c8b-417f-9f48-57967907f677\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002\"},\"keyUrl\":\"https://vault000002.vault.azure.net/keys/key000003/e3182fae2dd24edf844e25caf4846dfe\"},\"encryptionType\":\"ConfidentialVmEncryptedWithCustomerKey\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"c5c4bc40-cde9-4d29-9334-5a9845f662bf\"\r\n}" headers: cache-control: - no-cache content-length: - - '1029' + - '1028' content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:00 GMT + - Thu, 30 Jun 2022 11:39:18 GMT expires: - '-1' pragma: @@ -501,7 +501,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399995 + - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399984 status: code: 200 message: OK @@ -519,7 +519,7 @@ interactions: ParameterSetName: - -g -n --key-url --source-vault --encryption-type User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004?api-version=2022-03-02 response: @@ -527,10 +527,10 @@ interactions: string: "{\r\n \"name\": \"des1000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"centraluseuap\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"b43b6542-7642-409f-8b2a-27659e9b327e\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"11cc4425-9c8b-417f-9f48-57967907f677\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault000002.vault.azure.net/keys/key000003/76efa76109434ed4bd02d51c23d7e2fb\"\r\n + \ },\r\n \"keyUrl\": \"https://vault000002.vault.azure.net/keys/key000003/e3182fae2dd24edf844e25caf4846dfe\"\r\n \ },\r\n \"encryptionType\": \"ConfidentialVmEncryptedWithCustomerKey\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: @@ -541,7 +541,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:01 GMT + - Thu, 30 Jun 2022 11:39:19 GMT expires: - '-1' pragma: @@ -558,7 +558,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14993,Microsoft.Compute/LowCostGet30Min;119971 + - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119980 status: code: 200 message: OK @@ -576,7 +576,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004?api-version=2022-03-02 response: @@ -584,10 +584,10 @@ interactions: string: "{\r\n \"name\": \"des1000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004\",\r\n \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"centraluseuap\",\r\n \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": - \"b43b6542-7642-409f-8b2a-27659e9b327e\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \"11cc4425-9c8b-417f-9f48-57967907f677\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002\"\r\n - \ },\r\n \"keyUrl\": \"https://vault000002.vault.azure.net/keys/key000003/76efa76109434ed4bd02d51c23d7e2fb\"\r\n + \ },\r\n \"keyUrl\": \"https://vault000002.vault.azure.net/keys/key000003/e3182fae2dd24edf844e25caf4846dfe\"\r\n \ },\r\n \"encryptionType\": \"ConfidentialVmEncryptedWithCustomerKey\",\r\n \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: @@ -598,7 +598,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:02 GMT + - Thu, 30 Jun 2022 11:39:20 GMT expires: - '-1' pragma: @@ -615,7 +615,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119970 + - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119979 status: code: 200 message: OK @@ -638,16 +638,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.KeyVault/vaults/bez-kv","name":"bez-kv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"key":"value"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgekqy3wfedqj4dnzziqlanw3ibaisofsz6xlh5bsdcnxyjexa3urmhyincvvzcb7bu/providers/Microsoft.KeyVault/vaults/sfrp-cli-kv-yfivvc4dy56i","name":"sfrp-cli-kv-yfivvc4dy56i","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgprt2pgwgmw7uu6esq34k76gdppoc2gnajxvzxn5iy4baxvgcm3iwl6dq4usgbnbc2/providers/Microsoft.KeyVault/vaults/clitestrgprt2pgwgmw7u","name":"clitestrgprt2pgwgmw7u","type":"Microsoft.KeyVault/vaults","location":"westus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/python-devops-key","name":"python-devops-key","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/SDKAutoPipelineSecrets","name":"SDKAutoPipelineSecrets","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.KeyVault/vaults/ystestkv","name":"ystestkv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab7701","name":"zblab7701","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.KeyVault/vaults/bez-kv","name":"bez-kv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.KeyVault/vaults/bez-kv0630","name":"bez-kv0630","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/bez-rg/providers/Microsoft.KeyVault/vaults/bez-kv063001","name":"bez-kv063001","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryptionmobizjjdkuxnc5ahzm4svb4alynqiqrwttgmhw5/providers/Microsoft.KeyVault/vaults/vaultkg7na5pire","name":"vaultkg7na5pire","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rgsdwb6jvhygm3ulj5eeyrl25jxr5papjlsjz6t4pyqwddxlxcpnn2awyiegfs5dess/providers/Microsoft.KeyVault/vaults/sfrp-cli-kv-tvdk7o7i2fmx","name":"sfrp-cli-kv-tvdk7o7i2fmx","type":"Microsoft.KeyVault/vaults","location":"eastasia","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.KeyVault/vaults/hangkey","name":"hangkey","type":"Microsoft.KeyVault/vaults","location":"koreasouth","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/python-devops-key","name":"python-devops-key","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/SDKAutoPipelineSecrets","name":"SDKAutoPipelineSecrets","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.KeyVault/vaults/ystestkv","name":"ystestkv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab12844","name":"zblab12844","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab17977","name":"zblab17977","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab7701","name":"zblab7701","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblabc2183480","name":"zblabc2183480","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}}]}' headers: cache-control: - no-cache content-length: - - '2117' + - '3677' content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:03 GMT + - Thu, 30 Jun 2022 11:39:21 GMT expires: - '-1' pragma: @@ -680,7 +680,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002?api-version=2021-06-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-05-31T02:49:44.891Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-05-31T02:49:44.891Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-06-30T11:38:01.856Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-30T11:38:01.856Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' headers: cache-control: - no-cache @@ -689,7 +689,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:05 GMT + - Thu, 30 Jun 2022 11:39:22 GMT expires: - '-1' pragma: @@ -707,7 +707,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.5.396.0 + - 1.5.413.0 x-powered-by: - ASP.NET status: @@ -719,8 +719,8 @@ interactions: "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "d44a2991-98c6-47c3-b59b-2b30d72cfcc2", "permissions": {"keys": ["all"], "secrets": ["all"], "certificates": ["all"], "storage": ["all"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": - "b43b6542-7642-409f-8b2a-27659e9b327e", "permissions": {"keys": ["wrapKey", - "get", "unwrapKey"]}}], "vaultUri": "https://vault000002.vault.azure.net/", + "11cc4425-9c8b-417f-9f48-57967907f677", "permissions": {"keys": ["wrapKey", + "unwrapKey", "get"]}}], "vaultUri": "https://vault000002.vault.azure.net/", "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": 90, "enablePurgeProtection": true, "provisioningState": "Succeeded", "publicNetworkAccess": "Enabled"}}' @@ -745,7 +745,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002?api-version=2021-06-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-05-31T02:49:44.891Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-05-31T02:51:05.855Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"b43b6542-7642-409f-8b2a-27659e9b327e","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","name":"vault000002","type":"Microsoft.KeyVault/vaults","location":"centraluseuap","tags":{},"systemData":{"createdBy":"v-jingszhang@microsoft.com","createdByType":"User","createdAt":"2022-06-30T11:38:01.856Z","lastModifiedBy":"v-jingszhang@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-30T11:39:23.518Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"11cc4425-9c8b-417f-9f48-57967907f677","permissions":{"keys":["wrapKey","unwrapKey","get"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":90,"enablePurgeProtection":true,"vaultUri":"https://vault000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' headers: cache-control: - no-cache @@ -754,7 +754,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:05 GMT + - Thu, 30 Jun 2022 11:39:23 GMT expires: - '-1' pragma: @@ -772,7 +772,7 @@ interactions: x-content-type-options: - nosniff x-ms-keyvault-service-version: - - 1.5.396.0 + - 1.5.413.0 x-ms-ratelimit-remaining-subscription-writes: - '1199' x-powered-by: @@ -796,11 +796,11 @@ interactions: User-Agent: - python/3.8.10 (Windows-10-10.0.22000-SP0) AZURECLI/2.37.0 method: GET - uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames/any(c:c%20eq%20'b43b6542-7642-409f-8b2a-27659e9b327e') + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%2711cc4425-9c8b-417f-9f48-57967907f677%27%29 response: body: string: '{"error":{"code":"Authorization_RequestDenied","message":"Insufficient - privileges to complete the operation.","innerError":{"date":"2022-05-31T02:51:23","request-id":"b303c891-eb02-4595-87d3-dd45ea4342c5","client-request-id":"b303c891-eb02-4595-87d3-dd45ea4342c5"}}}' + privileges to complete the operation.","innerError":{"date":"2022-06-30T11:39:39","request-id":"43d62a4e-2fde-405d-b96b-5b5352d48cea","client-request-id":"43d62a4e-2fde-405d-b96b-5b5352d48cea"}}}' headers: cache-control: - no-cache @@ -809,9 +809,9 @@ interactions: content-type: - application/json date: - - Tue, 31 May 2022 02:51:22 GMT + - Thu, 30 Jun 2022 11:39:39 GMT request-id: - - b303c891-eb02-4595-87d3-dd45ea4342c5 + - 43d62a4e-2fde-405d-b96b-5b5352d48cea strict-transport-security: - max-age=31536000 transfer-encoding: @@ -819,7 +819,7 @@ interactions: vary: - Accept-Encoding x-ms-ags-diagnostic: - - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"SI2PEPF00000BCF"}}' + - '{"ServerInfo":{"DataCenter":"Southeast Asia","Slice":"E","Ring":"5","ScaleUnit":"002","RoleInstance":"SG1PEPF000035E2"}}' x-ms-resource-unit: - '1' status: @@ -839,7 +839,7 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.8.10 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 + - python/3.8.10 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 accept-language: - en-US @@ -857,7 +857,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:23 GMT + - Thu, 30 Jun 2022 11:39:40 GMT expires: - '-1' pragma: @@ -877,7 +877,7 @@ interactions: message: OK - request: body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7", - "principalId": "b43b6542-7642-409f-8b2a-27659e9b327e"}}' + "principalId": "11cc4425-9c8b-417f-9f48-57967907f677"}}' headers: Accept: - application/json @@ -896,7 +896,7 @@ interactions: ParameterSetName: - --assignee --role --scope User-Agent: - - python/3.8.10 (Windows-10-10.0.22000-SP0) msrest/0.6.21 msrest_azure/0.6.4 + - python/3.8.10 (Windows-10-10.0.22000-SP0) msrest/0.7.0 msrest_azure/0.6.4 azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.37.0 accept-language: - en-US @@ -904,7 +904,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001?api-version=2020-04-01-preview response: body: - string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"b43b6542-7642-409f-8b2a-27659e9b327e","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","condition":null,"conditionVersion":null,"createdOn":"2022-05-31T02:51:23.9328173Z","updatedOn":"2022-05-31T02:51:24.4171494Z","createdBy":null,"updatedBy":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7","principalId":"11cc4425-9c8b-417f-9f48-57967907f677","principalType":"ServicePrincipal","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002","condition":null,"conditionVersion":null,"createdOn":"2022-06-30T11:39:40.8478409Z","updatedOn":"2022-06-30T11:39:42.1759822Z","createdBy":null,"updatedBy":"d44a2991-98c6-47c3-b59b-2b30d72cfcc2","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.KeyVault/vaults/vault000002/providers/Microsoft.Authorization/roleAssignments/88888888-0000-0000-0000-000000000001","type":"Microsoft.Authorization/roleAssignments","name":"88888888-0000-0000-0000-000000000001"}' headers: cache-control: - no-cache @@ -913,7 +913,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:28 GMT + - Thu, 30 Jun 2022 11:39:47 GMT expires: - '-1' pragma: @@ -925,7 +925,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -949,7 +949,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-05-31T02:49:32Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T11:37:48Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -958,7 +958,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:29 GMT + - Thu, 30 Jun 2022 11:39:47 GMT expires: - '-1' pragma: @@ -987,13 +987,13 @@ interactions: - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm --enable-secure-boot --os-disk-security-encryption-type --os-disk-secure-vm-disk-encryption-set User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions?$top=1&$orderby=name%20desc&api-version=2022-03-01 response: body: - string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"20348.707.220505\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.707.220505\"\r\n + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"20348.768.220609\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.768.220609\"\r\n \ }\r\n]" headers: cache-control: @@ -1003,7 +1003,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:32 GMT + - Thu, 30 Jun 2022 11:39:50 GMT expires: - '-1' pragma: @@ -1020,7 +1020,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43997 + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 status: code: 200 message: OK @@ -1039,9 +1039,9 @@ interactions: - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm --enable-secure-boot --os-disk-security-encryption-type --os-disk-secure-vm-disk-encryption-set User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions/20348.707.220505?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions/20348.768.220609?api-version=2022-03-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V2\",\r\n \"architecture\": @@ -1057,7 +1057,7 @@ interactions: \ \"value\": \"False\"\r\n }\r\n ],\r\n \"osDiskImage\": {\r\n \"operatingSystem\": \"Windows\",\r\n \"sizeInGb\": 30\r\n \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"CentralUSEUAP\",\r\n - \ \"name\": \"20348.707.220505\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.707.220505\"\r\n}" + \ \"name\": \"20348.768.220609\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.768.220609\"\r\n}" headers: cache-control: - no-cache @@ -1066,7 +1066,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:34 GMT + - Thu, 30 Jun 2022 11:39:52 GMT expires: - '-1' pragma: @@ -1083,7 +1083,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73998 + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73995 status: code: 200 message: OK @@ -1116,7 +1116,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:34 GMT + - Thu, 30 Jun 2022 11:39:53 GMT expires: - '-1' pragma: @@ -1189,18 +1189,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/vm_deploy_Uz1T8VFsJx06yrfRFyVi80AK3gbctKP4","name":"vm_deploy_Uz1T8VFsJx06yrfRFyVi80AK3gbctKP4","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1228307168060353538","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-05-31T02:51:42.7602615Z","duration":"PT0.0000887S","correlationId":"1e47d864-c01e-40a8-8490-1dbecf257e5d","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_os_disk_security_encryption000001/providers/Microsoft.Network/virtualNetworks/vm1000005VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1000005VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1000005PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1000005"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/vm_deploy_FlTnQZXWGNU3XRI2o2550CAU3uSzFqK0","name":"vm_deploy_FlTnQZXWGNU3XRI2o2550CAU3uSzFqK0","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13542900534722226663","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-06-30T11:40:01.2849778Z","duration":"PT0.0004588S","correlationId":"4ba363a0-009a-4958-842f-e2e28e1335c3","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_os_disk_security_encryption000001/providers/Microsoft.Network/virtualNetworks/vm1000005VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1000005VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1000005PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1000005"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/vm_deploy_Uz1T8VFsJx06yrfRFyVi80AK3gbctKP4/operationStatuses/08585476413858650536?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/vm_deploy_FlTnQZXWGNU3XRI2o2550CAU3uSzFqK0/operationStatuses/08585450176880914716?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2657' + - '2658' content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:51:43 GMT + - Thu, 30 Jun 2022 11:40:02 GMT expires: - '-1' pragma: @@ -1231,7 +1231,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1243,7 +1243,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:52:14 GMT + - Thu, 30 Jun 2022 11:40:33 GMT expires: - '-1' pragma: @@ -1274,7 +1274,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1286,7 +1286,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:52:45 GMT + - Thu, 30 Jun 2022 11:41:03 GMT expires: - '-1' pragma: @@ -1317,7 +1317,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1329,7 +1329,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:53:15 GMT + - Thu, 30 Jun 2022 11:41:33 GMT expires: - '-1' pragma: @@ -1360,7 +1360,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1372,7 +1372,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:53:46 GMT + - Thu, 30 Jun 2022 11:42:05 GMT expires: - '-1' pragma: @@ -1403,7 +1403,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1415,7 +1415,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:54:16 GMT + - Thu, 30 Jun 2022 11:42:35 GMT expires: - '-1' pragma: @@ -1446,7 +1446,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1458,7 +1458,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:54:47 GMT + - Thu, 30 Jun 2022 11:43:05 GMT expires: - '-1' pragma: @@ -1489,7 +1489,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1501,7 +1501,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:55:17 GMT + - Thu, 30 Jun 2022 11:43:36 GMT expires: - '-1' pragma: @@ -1532,7 +1532,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1544,7 +1544,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:55:48 GMT + - Thu, 30 Jun 2022 11:44:07 GMT expires: - '-1' pragma: @@ -1575,7 +1575,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1587,7 +1587,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:56:19 GMT + - Thu, 30 Jun 2022 11:44:37 GMT expires: - '-1' pragma: @@ -1618,7 +1618,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1630,7 +1630,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:56:49 GMT + - Thu, 30 Jun 2022 11:45:07 GMT expires: - '-1' pragma: @@ -1661,7 +1661,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1673,7 +1673,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:57:21 GMT + - Thu, 30 Jun 2022 11:45:39 GMT expires: - '-1' pragma: @@ -1704,7 +1704,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1716,7 +1716,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:57:51 GMT + - Thu, 30 Jun 2022 11:46:10 GMT expires: - '-1' pragma: @@ -1747,7 +1747,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1759,7 +1759,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:58:22 GMT + - Thu, 30 Jun 2022 11:46:40 GMT expires: - '-1' pragma: @@ -1790,7 +1790,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1802,7 +1802,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:58:52 GMT + - Thu, 30 Jun 2022 11:47:10 GMT expires: - '-1' pragma: @@ -1833,7 +1833,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1845,7 +1845,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:59:22 GMT + - Thu, 30 Jun 2022 11:47:40 GMT expires: - '-1' pragma: @@ -1876,7 +1876,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1888,7 +1888,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 02:59:53 GMT + - Thu, 30 Jun 2022 11:48:12 GMT expires: - '-1' pragma: @@ -1919,7 +1919,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1931,7 +1931,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:00:24 GMT + - Thu, 30 Jun 2022 11:48:42 GMT expires: - '-1' pragma: @@ -1962,7 +1962,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -1974,7 +1974,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:00:54 GMT + - Thu, 30 Jun 2022 11:49:12 GMT expires: - '-1' pragma: @@ -2005,7 +2005,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -2017,7 +2017,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:26 GMT + - Thu, 30 Jun 2022 11:49:43 GMT expires: - '-1' pragma: @@ -2048,7 +2048,7 @@ interactions: User-Agent: - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585476413858650536?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585450176880914716?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -2060,7 +2060,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:56 GMT + - Thu, 30 Jun 2022 11:50:14 GMT expires: - '-1' pragma: @@ -2094,16 +2094,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/vm_deploy_Uz1T8VFsJx06yrfRFyVi80AK3gbctKP4","name":"vm_deploy_Uz1T8VFsJx06yrfRFyVi80AK3gbctKP4","type":"Microsoft.Resources/deployments","properties":{"templateHash":"1228307168060353538","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-05-31T03:01:39.4691002Z","duration":"PT9M56.7089274S","correlationId":"1e47d864-c01e-40a8-8490-1dbecf257e5d","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_os_disk_security_encryption000001/providers/Microsoft.Network/virtualNetworks/vm1000005VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1000005VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1000005PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1000005"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/virtualNetworks/vm1000005VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Resources/deployments/vm_deploy_FlTnQZXWGNU3XRI2o2550CAU3uSzFqK0","name":"vm_deploy_FlTnQZXWGNU3XRI2o2550CAU3uSzFqK0","type":"Microsoft.Resources/deployments","properties":{"templateHash":"13542900534722226663","parameters":{"adminPassword":{"type":"SecureString"}},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-06-30T11:49:56.4112776Z","duration":"PT9M55.1267586S","correlationId":"4ba363a0-009a-4958-842f-e2e28e1335c3","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_os_disk_security_encryption000001/providers/Microsoft.Network/virtualNetworks/vm1000005VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm1000005VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm1000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm1000005PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm1000005VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm1000005"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/virtualNetworks/vm1000005VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3589' + - '3590' content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:56 GMT + - Thu, 30 Jun 2022 11:50:14 GMT expires: - '-1' pragma: @@ -2132,26 +2132,26 @@ interactions: - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm --enable-secure-boot --os-disk-security-encryption-type --os-disk-secure-vm-disk-encryption-set User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005?$expand=instanceView&api-version=2022-03-01 response: body: string: "{\r\n \"name\": \"vm1000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"59c2baec-1215-4270-883d-3fc0854105f7\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"fafd1ada-2879-4ed7-9e72-c49e65b21141\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DC2as_v5\"\r\n \ },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2022-datacenter-smalldisk-g2\",\r\n \"version\": \"latest\",\r\n - \ \"exactVersion\": \"20348.707.220505\"\r\n },\r\n \"osDisk\": - {\r\n \"osType\": \"Windows\",\r\n \"name\": \"vm1000005_OsDisk_1_c7d797bc7bfa41979bcbfe11e5506afe\",\r\n + \ \"exactVersion\": \"20348.768.220609\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Windows\",\r\n \"name\": \"vm1000005_OsDisk_1_23dfe1e602c94fc9afdd1efe7ab6e880\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"securityProfile\": {\r\n \"securityEncryptionType\": \"DiskWithVMGuestState\",\r\n \"diskEncryptionSet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004\"\r\n \ }\r\n },\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/disks/vm1000005_OsDisk_1_c7d797bc7bfa41979bcbfe11e5506afe\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/disks/vm1000005_OsDisk_1_23dfe1e602c94fc9afdd1efe7ab6e880\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1000005\",\r\n \"adminUsername\": \"testuser\",\r\n @@ -2169,19 +2169,19 @@ interactions: \ {\r\n \"code\": \"ProvisioningState/Unavailable\",\r\n \ \"level\": \"Warning\",\r\n \"displayStatus\": \"Not Ready\",\r\n \"message\": \"VM status blob is found but not yet - populated.\",\r\n \"time\": \"2022-05-31T03:01:58+00:00\"\r\n }\r\n + populated.\",\r\n \"time\": \"2022-06-30T11:50:15+00:00\"\r\n }\r\n \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": - \"vm1000005_OsDisk_1_c7d797bc7bfa41979bcbfe11e5506afe\",\r\n \"statuses\": + \"vm1000005_OsDisk_1_23dfe1e602c94fc9afdd1efe7ab6e880\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-05-31T03:01:10.1918892+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-06-30T11:49:34.1279533+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V2\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-05-31T03:01:29.9419846+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-06-30T11:49:49.5655626+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/stopped\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM stopped\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-05-31T02:52:13.7824634+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-06-30T11:40:33.6249352+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2191,7 +2191,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:57 GMT + - Thu, 30 Jun 2022 11:50:15 GMT expires: - '-1' pragma: @@ -2208,7 +2208,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31969 + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31981 status: code: 200 message: OK @@ -2233,12 +2233,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm1000005VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic\",\r\n - \ \"etag\": \"W/\\\"9108ca81-3ea8-4c25-8c31-381f602e4733\\\"\",\r\n \"location\": - \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"4e6dd1d3-15d9-4dc5-a4c3-3d483f34dc33\",\r\n - \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm1000005\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic/ipConfigurations/ipconfigvm1000005\",\r\n - \ \"etag\": \"W/\\\"9108ca81-3ea8-4c25-8c31-381f602e4733\\\"\",\r\n + \ \"etag\": \"W/\\\"141bbc3b-a5d6-4e69-a02b-9c18402201d0\\\"\",\r\n \"tags\": + {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"resourceGuid\": \"40c1640c-7aad-4a83-b7ce-b3b2499d1dca\",\r\n \"ipConfigurations\": + [\r\n {\r\n \"name\": \"ipconfigvm1000005\",\r\n \"id\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic/ipConfigurations/ipconfigvm1000005\",\r\n + \ \"etag\": \"W/\\\"141bbc3b-a5d6-4e69-a02b-9c18402201d0\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -2247,12 +2247,13 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"uzefxcfo21uu5fyjjbckdsucec.cdmx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"60-45-BD-76-7E-C9\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": + \"uo1wfmzmri0e3bufyz4ektvjxh.cdmx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-02-43-E5\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkSecurityGroups/vm1000005NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005\"\r\n - \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" + \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\",\r\n + \ \"location\": \"centraluseuap\"\r\n}" headers: cache-control: - no-cache @@ -2261,9 +2262,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:59 GMT + - Thu, 30 Jun 2022 11:50:16 GMT etag: - - W/"9108ca81-3ea8-4c25-8c31-381f602e4733" + - W/"141bbc3b-a5d6-4e69-a02b-9c18402201d0" expires: - '-1' pragma: @@ -2280,7 +2281,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5472e652-7d7d-4c65-9ebd-9d036b6f1a44 + - 7ff2854b-4f5d-4d1c-952b-e7933df37c0b status: code: 200 message: OK @@ -2305,10 +2306,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm1000005PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/publicIPAddresses/vm1000005PublicIP\",\r\n - \ \"etag\": \"W/\\\"d83def5d-a736-465b-826a-719e376f7fe7\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"feffb966-e7e0-4f33-8585-7bc7c9561e29\\\"\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"80ea5f41-0aea-4444-8552-6d6784c13e0f\",\r\n - \ \"ipAddress\": \"20.45.228.191\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"77d74c83-1709-4bb9-b091-6d84af2fc98d\",\r\n + \ \"ipAddress\": \"20.112.135.93\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n \ \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic/ipConfigurations/ipconfigvm1000005\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -2321,9 +2322,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:59 GMT + - Thu, 30 Jun 2022 11:50:16 GMT etag: - - W/"d83def5d-a736-465b-826a-719e376f7fe7" + - W/"feffb966-e7e0-4f33-8585-7bc7c9561e29" expires: - '-1' pragma: @@ -2340,7 +2341,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - cc566b3b-7f7c-4d42-ab96-a7fcfe5e2789 + - 1a76004a-6b70-4383-9e7d-18389666f510 status: code: 200 message: OK @@ -2358,26 +2359,26 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.0.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005?api-version=2022-03-01 response: body: string: "{\r\n \"name\": \"vm1000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/virtualMachines/vm1000005\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"59c2baec-1215-4270-883d-3fc0854105f7\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"fafd1ada-2879-4ed7-9e72-c49e65b21141\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DC2as_v5\"\r\n \ },\r\n \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"MicrosoftWindowsServer\",\r\n \"offer\": \"WindowsServer\",\r\n \"sku\": \"2022-datacenter-smalldisk-g2\",\r\n \"version\": \"latest\",\r\n - \ \"exactVersion\": \"20348.707.220505\"\r\n },\r\n \"osDisk\": - {\r\n \"osType\": \"Windows\",\r\n \"name\": \"vm1000005_OsDisk_1_c7d797bc7bfa41979bcbfe11e5506afe\",\r\n + \ \"exactVersion\": \"20348.768.220609\"\r\n },\r\n \"osDisk\": + {\r\n \"osType\": \"Windows\",\r\n \"name\": \"vm1000005_OsDisk_1_23dfe1e602c94fc9afdd1efe7ab6e880\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"securityProfile\": {\r\n \"securityEncryptionType\": \"DiskWithVMGuestState\",\r\n \"diskEncryptionSet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/diskEncryptionSets/des1000004\"\r\n \ }\r\n },\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/disks/vm1000005_OsDisk_1_c7d797bc7bfa41979bcbfe11e5506afe\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Compute/disks/vm1000005_OsDisk_1_23dfe1e602c94fc9afdd1efe7ab6e880\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm1000005\",\r\n \"adminUsername\": \"testuser\",\r\n @@ -2390,7 +2391,7 @@ interactions: {\r\n \"uefiSettings\": {\r\n \"secureBootEnabled\": true,\r\n \ \"vTpmEnabled\": true\r\n },\r\n \"securityType\": \"ConfidentialVM\"\r\n \ },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001/providers/Microsoft.Network/networkInterfaces/vm1000005VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-05-31T02:52:13.7824634+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-06-30T11:40:33.6249352+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -2400,7 +2401,323 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 31 May 2022 03:01:59 GMT + - Thu, 30 Jun 2022 11:50:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;3992,Microsoft.Compute/LowCostGet30Min;31980 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm + --enable-secure-boot + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T11:37:48Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '369' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 11:50:17 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm + --enable-secure-boot + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions?$top=1&$orderby=name%20desc&api-version=2022-03-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"20348.768.220609\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.768.220609\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '335' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 11:50:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15999,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43995 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm + --enable-secure-boot + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions/20348.768.220609?api-version=2022-03-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V2\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Managed\",\r\n \"replicaCount\": 10,\r\n + \ \"disallowed\": {\r\n \"vmDiskType\": \"Unmanaged\"\r\n },\r\n + \ \"automaticOSUpgradeProperties\": {\r\n \"automaticOSUpgradeSupported\": + false\r\n },\r\n \"imageDeprecationStatus\": {\r\n \"imageState\": + \"Active\"\r\n },\r\n \"features\": [\r\n {\r\n \"name\": + \"SecurityType\",\r\n \"value\": \"TrustedLaunchAndConfidentialVmSupported\"\r\n + \ },\r\n {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n + \ \"value\": \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI\"\r\n },\r\n {\r\n \"name\": \"IsHibernateSupported\",\r\n + \ \"value\": \"False\"\r\n }\r\n ],\r\n \"osDiskImage\": + {\r\n \"operatingSystem\": \"Windows\",\r\n \"sizeInGb\": 30\r\n + \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"CentralUSEUAP\",\r\n + \ \"name\": \"20348.768.220609\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.768.220609\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1200' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 11:50:20 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetVMImageFromLocation3Min;12999,Microsoft.Compute/GetVMImageFromLocation30Min;73995 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm + --enable-secure-boot --os-disk-security-encryption-type --os-disk-secure-vm-disk-encryption-set + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_os_disk_security_encryption000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_os_disk_security_encryption000001","name":"cli_test_os_disk_security_encryption000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-30T11:37:48Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '369' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 11:50:21 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm + --enable-secure-boot --os-disk-security-encryption-type --os-disk-secure-vm-disk-encryption-set + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions?$top=1&$orderby=name%20desc&api-version=2022-03-01 + response: + body: + string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"20348.768.220609\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.768.220609\"\r\n + \ }\r\n]" + headers: + cache-control: + - no-cache + content-length: + - '335' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 11:50:22 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/ListVMImagesVersionsFromLocation3Min;15998,Microsoft.Compute/ListVMImagesVersionsFromLocation30Min;43994 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -n -g --size --security-type --image --admin-username --admin-password --enable-vtpm + --enable-secure-boot --os-disk-security-encryption-type --os-disk-secure-vm-disk-encryption-set + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/MicrosoftWindowsServer/artifacttypes/vmimage/offers/WindowsServer/skus/2022-datacenter-smalldisk-g2/versions/20348.768.220609?api-version=2022-03-01 + response: + body: + string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V2\",\r\n \"architecture\": + \"x64\",\r\n \"replicaType\": \"Managed\",\r\n \"replicaCount\": 10,\r\n + \ \"disallowed\": {\r\n \"vmDiskType\": \"Unmanaged\"\r\n },\r\n + \ \"automaticOSUpgradeProperties\": {\r\n \"automaticOSUpgradeSupported\": + false\r\n },\r\n \"imageDeprecationStatus\": {\r\n \"imageState\": + \"Active\"\r\n },\r\n \"features\": [\r\n {\r\n \"name\": + \"SecurityType\",\r\n \"value\": \"TrustedLaunchAndConfidentialVmSupported\"\r\n + \ },\r\n {\r\n \"name\": \"IsAcceleratedNetworkSupported\",\r\n + \ \"value\": \"True\"\r\n },\r\n {\r\n \"name\": \"DiskControllerTypes\",\r\n + \ \"value\": \"SCSI\"\r\n },\r\n {\r\n \"name\": \"IsHibernateSupported\",\r\n + \ \"value\": \"False\"\r\n }\r\n ],\r\n \"osDiskImage\": + {\r\n \"operatingSystem\": \"Windows\",\r\n \"sizeInGb\": 30\r\n + \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"CentralUSEUAP\",\r\n + \ \"name\": \"20348.768.220609\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/MicrosoftWindowsServer/ArtifactTypes/VMImage/Offers/WindowsServer/Skus/2022-datacenter-smalldisk-g2/Versions/20348.768.220609\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1200' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Jun 2022 11:50:25 GMT expires: - '-1' pragma: @@ -2417,7 +2734,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3995,Microsoft.Compute/LowCostGet30Min;31968 + - Microsoft.Compute/GetVMImageFromLocation3Min;12998,Microsoft.Compute/GetVMImageFromLocation30Min;73994 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 1d02c548d78..1fc3fab30d4 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 @@ -7179,6 +7179,13 @@ def test_os_disk_security_encryption(self, resource_group): self.check('storageProfile.osDisk.managedDisk.securityProfile.securityEncryptionType', 'DiskWithVMGuestState'), self.check('storageProfile.osDisk.managedDisk.securityProfile.diskEncryptionSet.id', '{des1_id}') ]) + message = 'usage error: "--os-disk-security-encryption-type" is required when "--security-type" is specified as "ConfidentialVM"' + with self.assertRaisesRegex(RequiredArgumentMissingError, message): + self.cmd('vm create -n vmer1 -g {rg} --size Standard_DC2as_v5 --security-type confidentialvm --image MicrosoftWindowsServer:WindowsServer:2022-datacenter-smalldisk-g2:latest --admin-username testuser --admin-password testPassword0 --enable-vtpm true --enable-secure-boot true') + + message = 'usage error: The "--os-disk-secure-vm-disk-encryption-set" can only be passed in when "--os-disk-security-encryption-type" is "DiskWithVMGuestState"' + with self.assertRaisesRegex(ArgumentUsageError, message): + self.cmd('vm create -n vmer2 -g {rg} --size Standard_DC2as_v5 --security-type confidentialvm --image MicrosoftWindowsServer:WindowsServer:2022-datacenter-smalldisk-g2:latest --admin-username testuser --admin-password testPassword0 --enable-vtpm true --enable-secure-boot true --os-disk-security-encryption-type VMGuestStateOnly --os-disk-secure-vm-disk-encryption-set {des1}') @unittest.skip('"Virtual Machines Scale Sets do not allow setting managedDisk.securityProfile.diskEncryptionSet.') @ResourceGroupPreparer(name_prefix='cli_test_os_disk_security_encryption_vmss', location='CentralUSEUAP') @@ -8078,7 +8085,7 @@ def test_vm_trusted_launch_os_disk_secure_import(self): 'vm': self.create_random_name('vm', 10), }) self.cmd('vm create -g {rg} -n {vm} --admin-username azrureuser --image MicrosoftWindowsServer:windows-cvm:2022-datacenter-cvm:latest --security-type ConfidentialVM' - ' --admin-password testPassword01! --use-unmanaged-disk --authentication-type password --nsg-rule NONE')# + ' --admin-password testPassword01! --use-unmanaged-disk --authentication-type password --nsg-rule NONE') blob_uri = self.cmd('vm show -g {rg} -n {vm}', checks=self.check('length(storageProfile.dataDisks)', 0)).get_output_in_json()['storageProfile']['osDisk']['vhd']['uri'] self.kwargs.update({