diff --git a/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py b/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py index e1a2dfa0153..4044717836e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_client_factory.py @@ -192,6 +192,18 @@ def cf_shared_gallery_image_version(cli_ctx, *_): return cf_vm_cl(cli_ctx).shared_gallery_image_versions +def cf_community_gallery(cli_ctx, *_): + return cf_vm_cl(cli_ctx).community_galleries + + +def cf_community_gallery_image(cli_ctx, *_): + return cf_vm_cl(cli_ctx).community_gallery_images + + +def cf_community_gallery_image_version(cli_ctx, *_): + return cf_vm_cl(cli_ctx).community_gallery_image_versions + + def cf_capacity_reservation_groups(cli_ctx, *_): return cf_vm_cl(cli_ctx).capacity_reservation_groups 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 82e0968a989..2adef0b1e60 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -1467,6 +1467,9 @@ - name: Create a VM from shared gallery image (private preview feature, please contact shared image gallery team by email sigpmdev@microsoft.com to register for preview if you're interested in using this feature). text: > az vm create -n MyVm -g MyResourceGroup --image /SharedGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} + - name: Create a VM from community gallery image (private preview feature, please contact community image gallery team by email sigpmdev@microsoft.com to register for preview if you're interested in using this feature). + text: > + az vm create -n MyVm -g MyResourceGroup --image /CommunityGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} """ helps['vm deallocate'] = """ @@ -2841,6 +2844,9 @@ - name: Create a VMSS from shared gallery image. (private preview feature, please contact shared image gallery team by email sigpmdev@microsoft.com to register for preview if you're interested in using this feature). text: > az vmss create -n MyVmss -g MyResourceGroup --image /SharedGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} + - name: Create a VMSS from community gallery image (private preview feature, please contact community image gallery team by email sigpmdev@microsoft.com to register for preview if you're interested in using this feature). + text: > + az vmss create -n MyVmss -g MyResourceGroup --image /CommunityGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} - name: Create a Windows VMSS with patch mode 'Manual' (Currently patch mode 'AutomaticByPlatform' is not supported during VMSS creation as health extension which is required for 'AutomaticByPlatform' mode cannot be set during VMSS creation). text: > az vmss create -n MyVmss -g MyResourceGroup --image Win2019Datacenter --enable-agent --enable-auto-update false --patch-mode Manual --orchestration-mode Flexible 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 daf0dc46b0c..9f3f94950e1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -943,6 +943,7 @@ def load_arguments(self, _): c.argument('assign_identity', nargs='*', arg_group='Managed Service Identity', help="accept system or user assigned identities separated by spaces. Use '[system]' to refer system assigned identity, or a resource id to refer user assigned identity. Check out help for more examples") c.ignore('aux_subscriptions') c.argument('edge_zone', edge_zone_type) + c.argument('accept_term', action='store_true', help="Accept the license agreement and privacy statement.") with self.argument_context(scope, arg_group='Authentication') as c: c.argument('generate_ssh_keys', action='store_true', help='Generate SSH public and private key files if missing. The keys will be stored in the ~/.ssh directory') diff --git a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py index 4d32163df2f..b18847cac25 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_template_builder.py @@ -25,6 +25,7 @@ class StorageProfile(Enum): ManagedCustomImage = 5 ManagedSpecializedOSDisk = 6 SharedGalleryImage = 7 + CommunityGalleryImage = 8 def build_deployment_resource(name, template, dependencies=None): @@ -463,6 +464,19 @@ def _build_storage_profile(): "imageReference": { 'sharedGalleryImageId': image_reference } + }, + 'CommunityGalleryImage': { + "osDisk": { + "caching": os_caching, + "managedDisk": { + "storageAccountType": disk_info['os'].get('storageAccountType'), + }, + "name": os_disk_name, + "createOption": "fromImage" + }, + "imageReference": { + 'communityGalleryImageId': image_reference + } } } if os_disk_encryption_set is not None: @@ -475,6 +489,9 @@ def _build_storage_profile(): storage_profiles['SharedGalleryImage']['osDisk']['managedDisk']['diskEncryptionSet'] = { 'id': os_disk_encryption_set, } + storage_profiles['CommunityGalleryImage']['osDisk']['managedDisk']['diskEncryptionSet'] = { + 'id': os_disk_encryption_set, + } profile = storage_profiles[storage_profile.name] if os_disk_size_gb: @@ -958,6 +975,20 @@ def build_vmss_resource(cmd, name, computer_name_prefix, location, tags, overpro storage_properties['osDisk']['managedDisk']['diskEncryptionSet'] = { 'id': os_disk_encryption_set } + if storage_profile == StorageProfile.CommunityGalleryImage: + storage_properties['osDisk'] = { + 'caching': os_caching, + 'managedDisk': {'storageAccountType': disk_info['os'].get('storageAccountType')}, + "name": os_disk_name, + "createOption": "fromImage" + } + storage_properties['imageReference'] = { + 'communityGalleryImageId': image + } + if os_disk_encryption_set is not None: + storage_properties['osDisk']['managedDisk']['diskEncryptionSet'] = { + 'id': os_disk_encryption_set + } if disk_info: data_disks = [v for k, v in disk_info.items() if k != 'os'] 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 984ed453b6e..388e0949117 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_validators.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_validators.py @@ -16,7 +16,7 @@ from knack.util import CLIError from azure.cli.core.azclierror import (ValidationError, ArgumentUsageError, RequiredArgumentMissingError, - MutuallyExclusiveArgumentError) + MutuallyExclusiveArgumentError, CLIInternalError) from azure.cli.core.commands.validators import ( get_default_location_from_resource_group, validate_file_or_dict, validate_parameter_set, validate_tags) from azure.cli.core.util import (hash_string, DISALLOWED_USER_NAMES, get_default_admin_username) @@ -235,6 +235,7 @@ def _validate_secrets(secrets, os_type): # region VM Create Validators +# pylint: disable=too-many-return-statements def _parse_image_argument(cmd, namespace): """ Systematically determines what type is supplied for the --image parameter. Updates the namespace and returns the type for subsequent processing. """ @@ -246,10 +247,13 @@ def _parse_image_argument(cmd, namespace): if is_valid_resource_id(namespace.image): return 'image_id' - from ._vm_utils import is_shared_gallery_image_id + from ._vm_utils import is_shared_gallery_image_id, is_community_gallery_image_id if is_shared_gallery_image_id(namespace.image): return 'shared_gallery_image_id' + if is_community_gallery_image_id(namespace.image): + return 'community_gallery_image_id' + # 2 - attempt to match an URN pattern urn_match = re.match('([^:]*):([^:]*):([^:]*):([^:]*)', namespace.image) if urn_match: @@ -351,6 +355,8 @@ def _get_storage_profile_description(profile): return 'attach existing managed OS disk' if profile == StorageProfile.SharedGalleryImage: return 'create OS disk from shared gallery image' + if profile == StorageProfile.CommunityGalleryImage: + return 'create OS disk from community gallery image' def _validate_location(cmd, namespace, zone_info, size_info): @@ -368,7 +374,7 @@ def _validate_location(cmd, namespace, zone_info, size_info): "used to find such locations".format(namespace.resource_group_name)) -# pylint: disable=too-many-branches, too-many-statements +# pylint: disable=too-many-branches, too-many-statements, too-many-locals def _validate_vm_create_storage_profile(cmd, namespace, for_scale_set=False): from msrestazure.tools import parse_resource_id @@ -396,6 +402,8 @@ def _validate_vm_create_storage_profile(cmd, namespace, for_scale_set=False): namespace.storage_profile = StorageProfile.ManagedCustomImage elif image_type == 'shared_gallery_image_id': namespace.storage_profile = StorageProfile.SharedGalleryImage + elif image_type == 'community_gallery_image_id': + namespace.storage_profile = StorageProfile.CommunityGalleryImage elif image_type == 'urn': if namespace.use_unmanaged_disk: # STORAGE PROFILE #1 @@ -432,6 +440,10 @@ def _validate_vm_create_storage_profile(cmd, namespace, for_scale_set=False): required = ['image'] forbidden = ['attach_os_disk', 'storage_account', 'storage_container_name', 'use_unmanaged_disk'] + elif namespace.storage_profile == StorageProfile.CommunityGalleryImage: + required = ['image'] + forbidden = ['attach_os_disk', 'storage_account', 'storage_container_name', 'use_unmanaged_disk'] + elif namespace.storage_profile == StorageProfile.ManagedSpecializedOSDisk: required = ['os_type', 'attach_os_disk'] forbidden = ['os_disk_name', 'os_caching', 'storage_account', 'ephemeral_os_disk', @@ -526,23 +538,45 @@ def _validate_vm_create_storage_profile(cmd, namespace, for_scale_set=False): namespace.attach_data_disks = [_get_resource_id(cmd.cli_ctx, d, namespace.resource_group_name, 'disks', 'Microsoft.Compute') for d in namespace.attach_data_disks] - if not namespace.os_type: - if namespace.storage_profile == StorageProfile.SharedGalleryImage: + if namespace.storage_profile == StorageProfile.SharedGalleryImage: - if namespace.location is None: - raise RequiredArgumentMissingError( - 'Please input the location of the shared gallery image through the parameter --location.') + if namespace.location is None: + raise RequiredArgumentMissingError( + 'Please input the location of the shared gallery image through the parameter --location.') - from ._vm_utils import parse_shared_gallery_image_id - image_info = parse_shared_gallery_image_id(namespace.image) + from ._vm_utils import parse_shared_gallery_image_id + image_info = parse_shared_gallery_image_id(namespace.image) - from ._client_factory import cf_shared_gallery_image - shared_gallery_image_info = cf_shared_gallery_image(cmd.cli_ctx).get( - location=namespace.location, gallery_unique_name=image_info[0], gallery_image_name=image_info[1]) - namespace.os_type = shared_gallery_image_info.os_type + from ._client_factory import cf_shared_gallery_image + shared_gallery_image_info = cf_shared_gallery_image(cmd.cli_ctx).get( + location=namespace.location, gallery_unique_name=image_info[0], gallery_image_name=image_info[1]) - else: - namespace.os_type = 'windows' if 'windows' in namespace.os_offer.lower() else 'linux' + if namespace.os_type and namespace.os_type.lower() != shared_gallery_image_info.os_type.lower(): + raise ArgumentUsageError("The --os-type is not the correct os type of this shared gallery image, " + "the os type of this image should be {}".format(shared_gallery_image_info.os_type)) + namespace.os_type = shared_gallery_image_info.os_type + + if namespace.storage_profile == StorageProfile.CommunityGalleryImage: + + if namespace.location is None: + raise RequiredArgumentMissingError( + 'Please input the location of the community gallery image through the parameter --location.') + + from ._vm_utils import parse_community_gallery_image_id + image_info = parse_community_gallery_image_id(namespace.image) + + from ._client_factory import cf_community_gallery_image + community_gallery_image_info = cf_community_gallery_image(cmd.cli_ctx).get( + location=namespace.location, public_gallery_name=image_info[0], gallery_image_name=image_info[1]) + + if namespace.os_type and namespace.os_type.lower() != community_gallery_image_info.os_type.lower(): + raise ArgumentUsageError( + "The --os-type is not the correct os type of this community gallery image, " + "the os type of this image should be {}".format(community_gallery_image_info.os_type)) + namespace.os_type = community_gallery_image_info.os_type + + if not namespace.os_type: + namespace.os_type = 'windows' if 'windows' in namespace.os_offer.lower() else 'linux' from ._vm_utils import normalize_disk_info # attach_data_disks are not exposed yet for VMSS, so use 'getattr' to avoid crash @@ -1320,6 +1354,7 @@ def process_vm_create_namespace(cmd, namespace): _validate_capacity_reservation_group(cmd, namespace) _validate_vm_nic_delete_option(namespace) + _validate_community_gallery_legal_agreement_acceptance(cmd, namespace) # endregion @@ -1617,6 +1652,7 @@ def process_vmss_create_namespace(cmd, namespace): raise ArgumentUsageError('usage error: --priority PRIORITY [--eviction-policy POLICY]') _validate_capacity_reservation_group(cmd, namespace) + _validate_community_gallery_legal_agreement_acceptance(cmd, namespace) def validate_vmss_update_namespace(cmd, namespace): # pylint: disable=unused-argument @@ -2060,3 +2096,26 @@ def _validate_vm_vmss_update_ephemeral_placement(cmd, namespace): # pylint: dis if source == 'vmss' and not vm_sku: raise ArgumentUsageError('usage error: --ephemeral-os-disk-placement is only configurable when ' '--vm-sku is specified.') + + +def _validate_community_gallery_legal_agreement_acceptance(cmd, namespace): + from ._vm_utils import is_community_gallery_image_id, parse_community_gallery_image_id + if not is_community_gallery_image_id(namespace.image) or namespace.accept_term: + return + + community_gallery_name, _ = parse_community_gallery_image_id(namespace.image) + from ._client_factory import cf_community_gallery + try: + community_gallery_info = cf_community_gallery(cmd.cli_ctx).get(namespace.location, community_gallery_name) + eula = community_gallery_info.additional_properties['communityMetadata']['eula'] + except Exception as err: + raise CLIInternalError('Get the eula from community gallery failed: {0}'.format(err)) + + from knack.prompting import prompt_y_n + msg = "To create the VM/VMSS from community gallery image, you must accept the license agreement and " \ + "privacy statement: {}. (If you want to accept the legal terms by default, " \ + "please use the option '--accept-term' when creating VM/VMSS)".format(eula) + + if not prompt_y_n(msg, default="y"): + import sys + sys.exit(0) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py b/src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py index 1eb8446bd24..ae83706feb6 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_vm_utils.py @@ -397,6 +397,34 @@ def parse_shared_gallery_image_id(image_reference): return image_info.group(1), image_info.group(2) +def is_community_gallery_image_id(image_reference): + if not image_reference: + return False + + community_gallery_id_pattern = re.compile(r'^/CommunityGalleries/[^/]*/Images/[^/]*/Versions/.*$', re.IGNORECASE) + if community_gallery_id_pattern.match(image_reference): + return True + + return False + + +def parse_community_gallery_image_id(image_reference): + from azure.cli.core.azclierror import InvalidArgumentValueError + + if not image_reference: + raise InvalidArgumentValueError( + 'Please pass in the community gallery image id through the parameter --image') + + image_info = re.search(r'^/CommunityGalleries/([^/]*)/Images/([^/]*)/Versions/.*$', image_reference, re.IGNORECASE) + if not image_info or len(image_info.groups()) < 2: + raise InvalidArgumentValueError( + 'The community gallery image id is invalid. The valid format should be ' + '"/CommunityGalleries/{gallery_unique_name}/Images/{gallery_image_name}/Versions/{image_version}"') + + # Return the gallery unique name and gallery image name parsed from community gallery image id + return image_info.group(1), image_info.group(2) + + class ArmTemplateBuilder20190401(ArmTemplateBuilder): def __init__(self): 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 a18f2c1b0f8..13cc808893a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -788,7 +788,7 @@ def create_vm(cmd, vm_name, resource_group_name, image=None, size='Standard_DS1_ enable_hotpatching=None, platform_fault_domain=None, security_type=None, enable_secure_boot=None, enable_vtpm=None, count=None, edge_zone=None, nic_delete_option=None, os_disk_delete_option=None, data_disk_delete_option=None, user_data=None, capacity_reservation_group=None, enable_hibernation=None, - v_cpus_available=None, v_cpus_per_core=None): + v_cpus_available=None, v_cpus_per_core=None, accept_term=None): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string @@ -2846,7 +2846,7 @@ def create_vmss(cmd, vmss_name, resource_group_name, image=None, user_data=None, network_api_version=None, enable_spot_restore=None, spot_restore_timeout=None, capacity_reservation_group=None, enable_auto_update=None, patch_mode=None, enable_agent=None, security_type=None, enable_secure_boot=None, enable_vtpm=None, automatic_repairs_action=None, - v_cpus_available=None, v_cpus_per_core=None): + v_cpus_available=None, v_cpus_per_core=None, accept_term=None): from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.util import random_string, hash_string diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml index 089dae684c3..9ee4b0e4a02 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:27:52 GMT + - Thu, 31 Mar 2022 09:52:05 GMT expires: - '-1' pragma: @@ -60,7 +60,7 @@ interactions: ParameterSetName: - -g --gallery-name --permissions User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01 response: @@ -68,12 +68,12 @@ interactions: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/37ca7e71-0f2b-45ec-a128-f68622c4f664?api-version=2021-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/074cb3d0-16e2-4973-a2d3-5be798bcfc97?api-version=2021-07-01 cache-control: - no-cache content-length: @@ -81,7 +81,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:27:59 GMT + - Thu, 31 Mar 2022 09:52:21 GMT expires: - '-1' pragma: @@ -96,7 +96,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGallery3Min;49,Microsoft.Compute/CreateUpdateGallery30Min;299 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -114,23 +114,23 @@ interactions: ParameterSetName: - -g --gallery-name --permissions User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-compute/1.0.0b1 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/eastus/capsOperations/37ca7e71-0f2b-45ec-a128-f68622c4f664?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/074cb3d0-16e2-4973-a2d3-5be798bcfc97?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:27:57.8938746+00:00\",\r\n \"endTime\": - \"2022-03-22T07:27:58.175101+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"37ca7e71-0f2b-45ec-a128-f68622c4f664\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:52:20.3834195+00:00\",\r\n \"endTime\": + \"2022-03-31T09:52:20.6021926+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"074cb3d0-16e2-4973-a2d3-5be798bcfc97\"\r\n}" headers: cache-control: - no-cache content-length: - - '183' + - '184' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:28:30 GMT + - Thu, 31 Mar 2022 09:52:51 GMT expires: - '-1' pragma: @@ -165,7 +165,7 @@ interactions: ParameterSetName: - -g --gallery-name --permissions User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.34.1 azsdk-python-mgmt-compute/1.0.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/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01 response: @@ -173,7 +173,7 @@ interactions: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: @@ -184,7 +184,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:28:30 GMT + - Thu, 31 Mar 2022 09:52:51 GMT expires: - '-1' pragma: @@ -201,7 +201,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;346,Microsoft.Compute/GetGallery30Min;2496 + - Microsoft.Compute/GetGallery3Min;337,Microsoft.Compute/GetGallery30Min;2405 status: code: 200 message: OK @@ -224,7 +224,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -233,7 +233,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:28:31 GMT + - Thu, 31 Mar 2022 09:52:52 GMT expires: - '-1' pragma: @@ -281,7 +281,7 @@ interactions: \"Creating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/fcb4d067-42a1-483e-8be4-6454a10f586f?api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1791efe3-6284-494a-abc5-a1b090cf061a?api-version=2021-10-01 cache-control: - no-cache content-length: @@ -289,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:28:40 GMT + - Thu, 31 Mar 2022 09:53:02 GMT expires: - '-1' pragma: @@ -324,12 +324,12 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/fcb4d067-42a1-483e-8be4-6454a10f586f?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/1791efe3-6284-494a-abc5-a1b090cf061a?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:28:39.2688297+00:00\",\r\n \"endTime\": - \"2022-03-22T07:28:39.4094397+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"fcb4d067-42a1-483e-8be4-6454a10f586f\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:53:00.9771947+00:00\",\r\n \"endTime\": + \"2022-03-31T09:53:01.0553414+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"1791efe3-6284-494a-abc5-a1b090cf061a\"\r\n}" headers: cache-control: - no-cache @@ -338,7 +338,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:10 GMT + - Thu, 31 Mar 2022 09:53:32 GMT expires: - '-1' pragma: @@ -393,7 +393,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:10 GMT + - Thu, 31 Mar 2022 09:53:32 GMT expires: - '-1' pragma: @@ -433,7 +433,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -442,7 +442,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:11 GMT + - Thu, 31 Mar 2022 09:53:33 GMT expires: - '-1' pragma: @@ -525,11 +525,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:12 GMT + - Thu, 31 Mar 2022 09:53:34 GMT etag: - W/"d5acead0b38a79d988c245a7a15ec01f999da9244c97bbdc1fa2ec70d9e433f5" expires: - - Tue, 22 Mar 2022 07:34:12 GMT + - Thu, 31 Mar 2022 09:58:34 GMT source-age: - '0' strict-transport-security: @@ -539,21 +539,21 @@ interactions: via: - 1.1 varnish x-cache: - - HIT + - MISS x-cache-hits: - - '1' + - '0' x-content-type-options: - nosniff x-fastly-request-id: - - b9367fa890fd9b10b65289d6ce439ba50eeff391 + - 2e0ac6cbee94d4ad9a064d10076c57bcd35f34cd x-frame-options: - deny x-github-request-id: - - 3F04:22CD:22B925:2F2117:623977E0 + - F018:9D7A:1E7915:27D144:62457413 x-served-by: - - cache-qpg1239-QPG + - cache-qpg1266-QPG x-timer: - - S1647934152.325080,VS0,VE290 + - S1648720414.287705,VS0,VE304 x-xss-protection: - 1; mode=block status: @@ -578,8 +578,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2021-11-01 response: body: - string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"18.04.202203080\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203080\"\r\n + string: "[\r\n {\r\n \"location\": \"eastus\",\r\n \"name\": \"18.04.202203250\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203250\"\r\n \ }\r\n]" headers: cache-control: @@ -589,7 +589,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:13 GMT + - Thu, 31 Mar 2022 09:53:35 GMT expires: - '-1' pragma: @@ -626,7 +626,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202203080?api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202203250?api-version=2021-11-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -638,7 +638,7 @@ interactions: \"True\"\r\n }\r\n ],\r\n \"osDiskImage\": {\r\n \"operatingSystem\": \"Linux\",\r\n \"sizeInGb\": 31,\r\n \"sizeInBytes\": 32213303808\r\n \ },\r\n \"dataDiskImages\": []\r\n },\r\n \"location\": \"eastus\",\r\n - \ \"name\": \"18.04.202203080\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203080\"\r\n}" + \ \"name\": \"18.04.202203250\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/eastus/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202203250\"\r\n}" headers: cache-control: - no-cache @@ -647,7 +647,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:14 GMT + - Thu, 31 Mar 2022 09:53:36 GMT expires: - '-1' pragma: @@ -696,7 +696,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:14 GMT + - Thu, 31 Mar 2022 09:53:37 GMT expires: - '-1' pragma: @@ -763,10 +763,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_ir6EvFJGPrtUEzlccE43HhsGULnsl6eG","name":"vm_deploy_ir6EvFJGPrtUEzlccE43HhsGULnsl6eG","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9390586575536037136","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-22T07:29:19.7507812Z","duration":"PT0.0007295S","correlationId":"bb20c4bb-4966-4296-b524-39b4be5d0289","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus"]},{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_HhFg7UN3HRKjsmirxTr8XO8THsOkl1R4","name":"vm_deploy_HhFg7UN3HRKjsmirxTr8XO8THsOkl1R4","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8218536468996917182","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-31T09:53:44.6267131Z","duration":"PT0.0003912S","correlationId":"83056b56-0076-45c5-88e6-93266add7f6e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus"]},{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_ir6EvFJGPrtUEzlccE43HhsGULnsl6eG/operationStatuses/08585536727271334095?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_HhFg7UN3HRKjsmirxTr8XO8THsOkl1R4/operationStatuses/08585528864639704539?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -774,7 +774,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:20 GMT + - Thu, 31 Mar 2022 09:53:46 GMT expires: - '-1' pragma: @@ -784,7 +784,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 201 message: Created @@ -804,7 +804,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536727271334095?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528864639704539?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -816,7 +816,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:29:51 GMT + - Thu, 31 Mar 2022 09:54:16 GMT expires: - '-1' pragma: @@ -846,7 +846,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536727271334095?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528864639704539?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -858,7 +858,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:30:21 GMT + - Thu, 31 Mar 2022 09:54:46 GMT expires: - '-1' pragma: @@ -891,7 +891,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_ir6EvFJGPrtUEzlccE43HhsGULnsl6eG","name":"vm_deploy_ir6EvFJGPrtUEzlccE43HhsGULnsl6eG","type":"Microsoft.Resources/deployments","properties":{"templateHash":"9390586575536037136","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-22T07:29:56.8027089Z","duration":"PT37.0526572S","correlationId":"bb20c4bb-4966-4296-b524-39b4be5d0289","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus"]},{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_HhFg7UN3HRKjsmirxTr8XO8THsOkl1R4","name":"vm_deploy_HhFg7UN3HRKjsmirxTr8XO8THsOkl1R4","type":"Microsoft.Resources/deployments","properties":{"templateHash":"8218536468996917182","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-31T09:54:41.5757441Z","duration":"PT56.9494222S","correlationId":"83056b56-0076-45c5-88e6-93266add7f6e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["eastus"]},{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET"}]}}' headers: cache-control: - no-cache @@ -900,7 +900,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:30:22 GMT + - Thu, 31 Mar 2022 09:54:47 GMT expires: - '-1' pragma: @@ -935,22 +935,22 @@ interactions: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8947d96b-429b-46a6-a160-f3dc4ad154e5\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"a66140e7-6927-4fa8-9c6f-a1f07b179d85\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202203080\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\",\r\n + \"18.04.202203250\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": - 0,\r\n \"name\": \"vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\",\r\n + 0,\r\n \"name\": \"vm000002_disk2_187f763cbf514887917c70c83bbfc184\",\r\n \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_187f763cbf514887917c70c83bbfc184\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 10,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n \ \"osProfile\": {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": @@ -963,39 +963,39 @@ interactions: \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"vm000002\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": \"18.04\",\r\n - \ \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.0.6\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n - \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-03-22T07:30:01+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"vmAgent\": + {\r\n \"vmAgentVersion\": \"Unknown\",\r\n \"statuses\": [\r\n + \ {\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-03-31T09:54:48+00:00\"\r\n }\r\n + \ ]\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": + \"vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\",\r\n \"statuses\": + [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:29:39.2760299+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-03-31T09:54:11.7357653+00:00\"\r\n \ }\r\n ]\r\n },\r\n {\r\n \"name\": - \"vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\",\r\n \"statuses\": + \"vm000002_disk2_187f763cbf514887917c70c83bbfc184\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:29:39.2760299+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-03-31T09:54:11.7357653+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:29:53.604276+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-03-31T09:54:37.7670293+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-03-22T07:29:37.9791446+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-03-31T09:54:07.673281+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '4749' + - '4666' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:30:22 GMT + - Thu, 31 Mar 2022 09:54:48 GMT expires: - '-1' pragma: @@ -1012,7 +1012,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3990,Microsoft.Compute/LowCostGet30Min;31990 + - Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31997 status: code: 200 message: OK @@ -1036,12 +1036,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000002VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\",\r\n - \ \"etag\": \"W/\\\"0b702ec9-5880-4890-8c13-f72e79fdc0f2\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"f9daa5d5-c509-467d-8fbe-a6adfcb9a534\\\"\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"6176752c-d45e-4f52-af24-996a5232ac84\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"7eef6a9c-cc6b-48e5-b75c-dffdca9adbdc\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm000002\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\",\r\n - \ \"etag\": \"W/\\\"0b702ec9-5880-4890-8c13-f72e79fdc0f2\\\"\",\r\n + \ \"etag\": \"W/\\\"f9daa5d5-c509-467d-8fbe-a6adfcb9a534\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": @@ -1050,8 +1050,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"3xyfgd3vxldu3ednclxfrpl33f.bx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-8D-18-A8\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"ako4hr4wuo4edimwmgtwmcko1e.bx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-22-48-2E-C4-21\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -1065,9 +1065,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:30:23 GMT + - Thu, 31 Mar 2022 09:54:48 GMT etag: - - W/"0b702ec9-5880-4890-8c13-f72e79fdc0f2" + - W/"f9daa5d5-c509-467d-8fbe-a6adfcb9a534" expires: - '-1' pragma: @@ -1084,7 +1084,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - af52eae2-7629-4ef2-a779-99e5dac94990 + - 5fc41918-dcda-4347-b97b-e396d5bc2190 status: code: 200 message: OK @@ -1108,10 +1108,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm000002PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP\",\r\n - \ \"etag\": \"W/\\\"21de2180-f6b2-4895-87ef-08e601351bed\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"af433fbf-1288-47c5-ac8b-13a057a0ed4d\\\"\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"a84c076e-52e0-4fb6-8b2a-3aca9e20871e\",\r\n - \ \"ipAddress\": \"20.231.37.54\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"48351b5b-8a83-4e36-bfe8-5fe26073cdbc\",\r\n + \ \"ipAddress\": \"20.232.28.32\",\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/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -1124,9 +1124,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:30:23 GMT + - Thu, 31 Mar 2022 09:54:49 GMT etag: - - W/"21de2180-f6b2-4895-87ef-08e601351bed" + - W/"af433fbf-1288-47c5-ac8b-13a057a0ed4d" expires: - '-1' pragma: @@ -1143,7 +1143,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 7ce623f8-76f9-4080-a9bf-387a71aac399 + - 2219e987-ec5b-4b90-9877-4aae04089f2a status: code: 200 message: OK @@ -1171,17 +1171,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7efd6ae3-2b3a-43e0-82c6-5b949f2e89df?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d9d72723-215f-4bd5-bd90-69d24c60ad1f?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 22 Mar 2022 07:31:35 GMT + - Thu, 31 Mar 2022 09:56:00 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/7efd6ae3-2b3a-43e0-82c6-5b949f2e89df?p=54253b73-cb53-496f-ab42-5e5ee19426f8&monitor=true&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d9d72723-215f-4bd5-bd90-69d24c60ad1f?p=54253b73-cb53-496f-ab42-5e5ee19426f8&monitor=true&api-version=2021-11-01 pragma: - no-cache server: @@ -1194,7 +1194,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 202 message: Accepted @@ -1214,11 +1214,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/operations/7efd6ae3-2b3a-43e0-82c6-5b949f2e89df?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d9d72723-215f-4bd5-bd90-69d24c60ad1f?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:31:35.3547827+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"7efd6ae3-2b3a-43e0-82c6-5b949f2e89df\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:56:00.8294805+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"d9d72723-215f-4bd5-bd90-69d24c60ad1f\"\r\n}" headers: cache-control: - no-cache @@ -1227,7 +1227,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:31:45 GMT + - Thu, 31 Mar 2022 09:56:10 GMT expires: - '-1' pragma: @@ -1244,7 +1244,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29992 + - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29997 status: code: 200 message: OK @@ -1264,12 +1264,12 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/operations/7efd6ae3-2b3a-43e0-82c6-5b949f2e89df?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d9d72723-215f-4bd5-bd90-69d24c60ad1f?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:31:35.3547827+00:00\",\r\n \"endTime\": - \"2022-03-22T07:32:17.6363248+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"7efd6ae3-2b3a-43e0-82c6-5b949f2e89df\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:56:00.8294805+00:00\",\r\n \"endTime\": + \"2022-03-31T09:56:33.5172035+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"d9d72723-215f-4bd5-bd90-69d24c60ad1f\"\r\n}" headers: cache-control: - no-cache @@ -1278,7 +1278,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:32:21 GMT + - Thu, 31 Mar 2022 09:56:48 GMT expires: - '-1' pragma: @@ -1295,7 +1295,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14989,Microsoft.Compute/GetOperation30Min;29988 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29993 status: code: 200 message: OK @@ -1315,7 +1315,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/operations/7efd6ae3-2b3a-43e0-82c6-5b949f2e89df?p=54253b73-cb53-496f-ab42-5e5ee19426f8&monitor=true&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/d9d72723-215f-4bd5-bd90-69d24c60ad1f?p=54253b73-cb53-496f-ab42-5e5ee19426f8&monitor=true&api-version=2021-11-01 response: body: string: '' @@ -1325,7 +1325,7 @@ interactions: content-length: - '0' date: - - Tue, 22 Mar 2022 07:32:21 GMT + - Thu, 31 Mar 2022 09:56:49 GMT expires: - '-1' pragma: @@ -1338,7 +1338,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14988,Microsoft.Compute/GetOperation30Min;29987 + - Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29992 status: code: 200 message: OK @@ -1370,7 +1370,7 @@ interactions: content-length: - '0' date: - - Tue, 22 Mar 2022 07:32:22 GMT + - Thu, 31 Mar 2022 09:56:50 GMT expires: - '-1' pragma: @@ -1385,7 +1385,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/UpdateVM3Min;239,Microsoft.Compute/UpdateVM30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 200 message: OK @@ -1410,19 +1410,19 @@ interactions: body: string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"8947d96b-429b-46a6-a160-f3dc4ad154e5\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"a66140e7-6927-4fa8-9c6f-a1f07b179d85\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"publisher\": \"Canonical\",\r\n \"offer\": \"UbuntuServer\",\r\n \"sku\": \"18.04-LTS\",\r\n \"version\": \"latest\",\r\n \"exactVersion\": - \"18.04.202203080\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\",\r\n + \"18.04.202203250\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n - \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\"\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\"\r\n \ },\r\n \"deleteOption\": \"Detach\"\r\n },\r\n \"dataDisks\": - [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\",\r\n + [\r\n {\r\n \"lun\": 0,\r\n \"name\": \"vm000002_disk2_187f763cbf514887917c70c83bbfc184\",\r\n \ \"createOption\": \"Empty\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\"\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_187f763cbf514887917c70c83bbfc184\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\": @@ -1435,17 +1435,17 @@ interactions: \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-03-22T07:29:37.9791446+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-03-31T09:54:07.673281+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '2932' + - '2937' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:32:23 GMT + - Thu, 31 Mar 2022 09:56:50 GMT expires: - '-1' pragma: @@ -1462,7 +1462,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3977,Microsoft.Compute/LowCostGet30Min;31977 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31995 status: code: 200 message: OK @@ -1485,7 +1485,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1494,7 +1494,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:32:23 GMT + - Thu, 31 Mar 2022 09:56:51 GMT expires: - '-1' pragma: @@ -1539,10 +1539,10 @@ interactions: \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\r\n \ },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"managedDisk\": - {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\"\r\n \ },\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": - 0,\r\n \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\"\r\n + 0,\r\n \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_187f763cbf514887917c70c83bbfc184\"\r\n \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": \"Premium_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"hyperVGeneration\": \"V1\"\r\n }\r\n}" @@ -1550,15 +1550,15 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/23aaabed-7eb4-4512-9a2d-c5320c69edc3?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/311ba8b0-5c48-48fe-997b-097cde0bffa5?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 cache-control: - no-cache content-length: - - '1345' + - '1348' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:32:31 GMT + - Thu, 31 Mar 2022 09:56:57 GMT expires: - '-1' pragma: @@ -1573,7 +1573,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;199 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 201 message: Created @@ -1593,12 +1593,12 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/operations/23aaabed-7eb4-4512-9a2d-c5320c69edc3?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/311ba8b0-5c48-48fe-997b-097cde0bffa5?p=54253b73-cb53-496f-ab42-5e5ee19426f8&api-version=2021-11-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:32:31.1363895+00:00\",\r\n \"endTime\": - \"2022-03-22T07:32:36.2926574+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"23aaabed-7eb4-4512-9a2d-c5320c69edc3\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:56:57.2828424+00:00\",\r\n \"endTime\": + \"2022-03-31T09:57:02.4234755+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"311ba8b0-5c48-48fe-997b-097cde0bffa5\"\r\n}" headers: cache-control: - no-cache @@ -1607,7 +1607,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:33:02 GMT + - Thu, 31 Mar 2022 09:57:29 GMT expires: - '-1' pragma: @@ -1624,7 +1624,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14986,Microsoft.Compute/GetOperation30Min;29983 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29991 status: code: 200 message: OK @@ -1653,11 +1653,11 @@ interactions: \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\r\n \ },\r\n \"storageProfile\": {\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"diskSizeGB\": - 30,\r\n \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk1_e227c27a234a4ed0a50a1936ace19fda\"\r\n + 30,\r\n \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_OsDisk_1_f1e3b241f75f4b5e909b5016afe54c8b\"\r\n \ },\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"diskSizeGB\": 10,\r\n \"managedDisk\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_92f2c8c6a86347e9a1e7a0f0a926d98f\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm000002_disk2_187f763cbf514887917c70c83bbfc184\"\r\n \ },\r\n \"caching\": \"None\",\r\n \"storageAccountType\": \"Premium_LRS\"\r\n }\r\n ]\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\": \"V1\"\r\n }\r\n}" @@ -1665,11 +1665,11 @@ interactions: cache-control: - no-cache content-length: - - '1402' + - '1405' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:33:03 GMT + - Thu, 31 Mar 2022 09:57:30 GMT expires: - '-1' pragma: @@ -1710,7 +1710,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1719,7 +1719,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:33:03 GMT + - Thu, 31 Mar 2022 09:57:30 GMT expires: - '-1' pragma: @@ -1765,13 +1765,13 @@ interactions: {\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n - \ \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n + \ \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \ \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1\"\r\n \ }\r\n },\r\n \"provisioningState\": \"Creating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 cache-control: - no-cache content-length: @@ -1779,7 +1779,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:33:08 GMT + - Thu, 31 Mar 2022 09:57:34 GMT expires: - '-1' pragma: @@ -1794,7 +1794,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImageVersion3Min;374,Microsoft.Compute/CreateUpdateGalleryImageVersion30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1194' + - '1198' status: code: 201 message: Created @@ -1815,11 +1815,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -1828,7 +1828,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:34:09 GMT + - Thu, 31 Mar 2022 09:58:35 GMT expires: - '-1' pragma: @@ -1866,11 +1866,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -1879,7 +1879,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:35:09 GMT + - Thu, 31 Mar 2022 09:59:36 GMT expires: - '-1' pragma: @@ -1917,11 +1917,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -1930,7 +1930,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:36:09 GMT + - Thu, 31 Mar 2022 10:00:37 GMT expires: - '-1' pragma: @@ -1968,11 +1968,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -1981,7 +1981,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:37:10 GMT + - Thu, 31 Mar 2022 10:01:38 GMT expires: - '-1' pragma: @@ -2019,11 +2019,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -2032,7 +2032,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:38:11 GMT + - Thu, 31 Mar 2022 10:02:39 GMT expires: - '-1' pragma: @@ -2070,11 +2070,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -2083,7 +2083,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:39:12 GMT + - Thu, 31 Mar 2022 10:03:40 GMT expires: - '-1' pragma: @@ -2121,63 +2121,12 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 - response: - body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:40: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/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4183 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - sig image-version create - Connection: - - keep-alive - ParameterSetName: - - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image - --replica-count - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/968fa513-603c-435d-8246-b0a1b8411d84?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/12052690-ff66-4813-9031-bc272ab13864?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n \"endTime\": - \"2022-03-22T07:40:16.3453813+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"968fa513-603c-435d-8246-b0a1b8411d84\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \"endTime\": + \"2022-03-31T10:04:19.7915965+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"12052690-ff66-4813-9031-bc272ab13864\"\r\n}" headers: cache-control: - no-cache @@ -2186,7 +2135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:13 GMT + - Thu, 31 Mar 2022 10:04:41 GMT expires: - '-1' pragma: @@ -2203,7 +2152,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4181 + - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4183 status: code: 200 message: OK @@ -2233,7 +2182,7 @@ interactions: {\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"East US\",\r\n \"regionalReplicaCount\": 1,\r\n \"storageAccountType\": \"Standard_LRS\"\r\n }\r\n ],\r\n \"replicaCount\": 1,\r\n - \ \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n + \ \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \ \"storageAccountType\": \"Standard_LRS\"\r\n },\r\n \"storageProfile\": {\r\n \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1\"\r\n \ },\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 30,\r\n \"hostCaching\": @@ -2249,7 +2198,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:14 GMT + - Thu, 31 Mar 2022 10:04:41 GMT expires: - '-1' pragma: @@ -2266,7 +2215,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryImageVersion3Min;1997,Microsoft.Compute/GetGalleryImageVersion30Min;9995 + - Microsoft.Compute/GetGalleryImageVersion3Min;1999,Microsoft.Compute/GetGalleryImageVersion30Min;9997 status: code: 200 message: OK @@ -2292,7 +2241,7 @@ interactions: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Groups\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: @@ -2303,7 +2252,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:16 GMT + - Thu, 31 Mar 2022 10:04:42 GMT expires: - '-1' pragma: @@ -2320,7 +2269,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;348,Microsoft.Compute/GetGallery30Min;2489 + - Microsoft.Compute/GetGallery3Min;335,Microsoft.Compute/GetGallery30Min;2391 status: code: 200 message: OK @@ -2351,17 +2300,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/65cb00d4-d907-4a81-8d48-ae61fd472741?api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/0a4d34d8-be84-49c1-84e4-28f4772b5eed?api-version=2021-10-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 22 Mar 2022 07:41:18 GMT + - Thu, 31 Mar 2022 10:04:44 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/65cb00d4-d907-4a81-8d48-ae61fd472741?monitor=true&api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/0a4d34d8-be84-49c1-84e4-28f4772b5eed?monitor=true&api-version=2021-10-01 pragma: - no-cache server: @@ -2394,12 +2343,12 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/65cb00d4-d907-4a81-8d48-ae61fd472741?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/0a4d34d8-be84-49c1-84e4-28f4772b5eed?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:41:18.0171742+00:00\",\r\n \"endTime\": - \"2022-03-22T07:41:37.0328023+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"65cb00d4-d907-4a81-8d48-ae61fd472741\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T10:04:44.4948351+00:00\",\r\n \"endTime\": + \"2022-03-31T10:04:45.9792416+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"0a4d34d8-be84-49c1-84e4-28f4772b5eed\"\r\n}" headers: cache-control: - no-cache @@ -2408,7 +2357,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:48 GMT + - Thu, 31 Mar 2022 10:05:14 GMT expires: - '-1' pragma: @@ -2425,7 +2374,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1193,Microsoft.Compute/GetOperationStatus30Min;4179 + - Microsoft.Compute/GetOperationStatus3Min;1192,Microsoft.Compute/GetOperationStatus30Min;4180 status: code: 200 message: OK @@ -2445,7 +2394,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/65cb00d4-d907-4a81-8d48-ae61fd472741?monitor=true&api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/0a4d34d8-be84-49c1-84e4-28f4772b5eed?monitor=true&api-version=2021-10-01 response: body: string: '' @@ -2455,7 +2404,7 @@ interactions: content-length: - '0' date: - - Tue, 22 Mar 2022 07:41:48 GMT + - Thu, 31 Mar 2022 10:05:15 GMT expires: - '-1' pragma: @@ -2468,7 +2417,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1192,Microsoft.Compute/GetOperationStatus30Min;4178 + - Microsoft.Compute/GetOperationStatus3Min;1191,Microsoft.Compute/GetOperationStatus30Min;4179 status: code: 200 message: OK @@ -2488,11 +2437,11 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/images/image000008/versions/1.1.2?api-version=2020-09-30 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/images/image000008/versions/1.1.2?api-version=2020-09-30 response: body: - string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2\"\r\n - \ },\r\n \"properties\": {\r\n \"publishedDate\": \"2022-03-22T07:33:08.1903772+00:00\",\r\n + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2\"\r\n + \ },\r\n \"properties\": {\r\n \"publishedDate\": \"2022-03-31T09:57:33.6490701+00:00\",\r\n \ \"excludeFromLatest\": false,\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"diskSizeGB\": 30,\r\n \"hostCaching\": \"ReadWrite\"\r\n \ },\r\n \"dataDiskImages\": [\r\n {\r\n \"lun\": @@ -2507,7 +2456,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:50 GMT + - Thu, 31 Mar 2022 10:05:16 GMT expires: - '-1' pragma: @@ -2545,7 +2494,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -2554,7 +2503,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:50 GMT + - Thu, 31 Mar 2022 10:05:18 GMT expires: - '-1' pragma: @@ -2584,10 +2533,10 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/images/image000008?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/images/image000008?api-version=2021-07-01 response: body: - string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008\"\r\n + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008\"\r\n \ },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": \"Generalized\",\r\n \"identifier\": {\r\n \"publisher\": \"publisher1\",\r\n \ \"offer\": \"offer1\",\r\n \"sku\": \"sku1\"\r\n },\r\n \"recommended\": @@ -2601,7 +2550,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:51 GMT + - Thu, 31 Mar 2022 10:05:18 GMT expires: - '-1' pragma: @@ -2641,14 +2590,14 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm000002VNET\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET\",\r\n - \ \"etag\": \"W/\\\"21fcdaf8-28d2-4bec-9cbd-1fb1fee25895\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"0f0dc4a5-e47f-436d-ac30-99e81f04f49a\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"0f53f0ed-bab5-4ec7-906d-12ee58bd7ded\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"c7e39d02-a3d6-41bc-a196-61a766094edc\",\r\n \ \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vm000002Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet\",\r\n - \ \"etag\": \"W/\\\"21fcdaf8-28d2-4bec-9cbd-1fb1fee25895\\\"\",\r\n + \ \"etag\": \"W/\\\"0f0dc4a5-e47f-436d-ac30-99e81f04f49a\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\"\r\n @@ -2664,7 +2613,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:41:53 GMT + - Thu, 31 Mar 2022 10:05:20 GMT expires: - '-1' pragma: @@ -2681,7 +2630,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 56a3c8b9-5b7e-4afa-a91c-ef85edb76d70 + - f2584aad-8abc-4430-bea0-cfc55751a8e7 status: code: 200 message: OK @@ -2706,8 +2655,8 @@ interactions: {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic", "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null}, "name": null, "createOption": - "fromImage"}, "imageReference": {"sharedGalleryImageId": "/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2"}}, - "osProfile": {"computerName": "vmsgv77iyd7wjsb", "adminUsername": "clitest1", + "fromImage"}, "imageReference": {"sharedGalleryImageId": "/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2"}}, + "osProfile": {"computerName": "vmsgvqq5st6bowd", "adminUsername": "clitest1", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/", "path": "/home/clitest1/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": @@ -2733,10 +2682,10 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_8wLIlmx2draEF6GVLhDbBGslq8DlE8L6","name":"vm_deploy_8wLIlmx2draEF6GVLhDbBGslq8DlE8L6","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6237948651978180767","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-22T07:41:59.073373Z","duration":"PT0.0002533S","correlationId":"250fd2e2-bd65-4f2d-8cb4-e038a94cbf13","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_sgv000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_sgv000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_sgv000004"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_RbuCmybFZQOFjNnNCMp7kP95sKS8JVtU","name":"vm_deploy_RbuCmybFZQOFjNnNCMp7kP95sKS8JVtU","type":"Microsoft.Resources/deployments","properties":{"templateHash":"244171884406244244","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-31T10:05:27.8422955Z","duration":"PT0.0000939S","correlationId":"ef740254-2ec9-42ae-a0e2-238a2b684ee1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_sgv000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_sgv000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_sgv000004"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_8wLIlmx2draEF6GVLhDbBGslq8DlE8L6/operationStatuses/08585536719692898510?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_RbuCmybFZQOFjNnNCMp7kP95sKS8JVtU/operationStatuses/08585528857603784213?api-version=2021-04-01 cache-control: - no-cache content-length: @@ -2744,7 +2693,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:42:00 GMT + - Thu, 31 Mar 2022 10:05:29 GMT expires: - '-1' pragma: @@ -2754,7 +2703,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1192' + - '1199' status: code: 201 message: Created @@ -2774,7 +2723,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536719692898510?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528857603784213?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -2786,7 +2735,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:42:30 GMT + - Thu, 31 Mar 2022 10:05:59 GMT expires: - '-1' pragma: @@ -2816,7 +2765,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536719692898510?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528857603784213?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -2828,7 +2777,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:01 GMT + - Thu, 31 Mar 2022 10:06:30 GMT expires: - '-1' pragma: @@ -2858,7 +2807,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536719692898510?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528857603784213?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -2870,7 +2819,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:31 GMT + - Thu, 31 Mar 2022 10:07:00 GMT expires: - '-1' pragma: @@ -2903,16 +2852,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_8wLIlmx2draEF6GVLhDbBGslq8DlE8L6","name":"vm_deploy_8wLIlmx2draEF6GVLhDbBGslq8DlE8L6","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6237948651978180767","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-22T07:43:10.8570355Z","duration":"PT1M11.7839158S","correlationId":"250fd2e2-bd65-4f2d-8cb4-e038a94cbf13","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_sgv000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_sgv000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_sgv000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_RbuCmybFZQOFjNnNCMp7kP95sKS8JVtU","name":"vm_deploy_RbuCmybFZQOFjNnNCMp7kP95sKS8JVtU","type":"Microsoft.Resources/deployments","properties":{"templateHash":"244171884406244244","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-31T10:06:38.1898605Z","duration":"PT1M10.3476589S","correlationId":"ef740254-2ec9-42ae-a0e2-238a2b684ee1","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_sgv000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_sgv000004PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv000004VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_sgv000004"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP"}]}}' headers: cache-control: - no-cache content-length: - - '2803' + - '2802' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:33 GMT + - Thu, 31 Mar 2022 10:07:01 GMT expires: - '-1' pragma: @@ -2947,24 +2896,24 @@ interactions: body: string: "{\r\n \"name\": \"vm_sgv000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"4979b49a-b25b-4dc5-afa1-0f57a2b56200\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"09751c41-dfb9-4337-867b-930d97c60054\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"exactVersion\": - \"1.1.2\",\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2\"\r\n + \"1.1.2\",\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm_sgv000004_OsDisk_1_6476b5c644fb45e28c8e814e18698fe1\",\r\n \"createOption\": + \"vm_sgv000004_OsDisk_1_fbb16e68c8194e559367698f98e94e74\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_OsDisk_1_6476b5c644fb45e28c8e814e18698fe1\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_OsDisk_1_fbb16e68c8194e559367698f98e94e74\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": - 0,\r\n \"name\": \"vm_sgv000004_lun_0_2_e4797a358eb04ee4b816b80f8d867a1c\",\r\n + 0,\r\n \"name\": \"vm_sgv000004_lun_0_2_cfc4732dd95b4b91a74de11c5c97e34e\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_lun_0_2_e4797a358eb04ee4b816b80f8d867a1c\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_lun_0_2_cfc4732dd95b4b91a74de11c5c97e34e\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 10,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n - \ \"osProfile\": {\r\n \"computerName\": \"vmsgv77iyd7wjsb\",\r\n \"adminUsername\": + \ \"osProfile\": {\r\n \"computerName\": \"vmsgvqq5st6bowd\",\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/clitest1/.ssh/authorized_keys\",\r\n \"keyData\": @@ -2975,28 +2924,28 @@ interactions: \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic\"}]},\r\n \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"vmsgv77iyd7wjsb\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": - \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.0.6\",\r\n + \"vmsgvqq5st6bowd\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": + \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.1.0\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-03-22T07:43:07+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_sgv000004_OsDisk_1_6476b5c644fb45e28c8e814e18698fe1\",\r\n + \"2022-03-31T10:06:40+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_sgv000004_OsDisk_1_fbb16e68c8194e559367698f98e94e74\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:42:27.9517544+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-03-31T10:05:51.7066355+00:00\"\r\n \ }\r\n ]\r\n },\r\n {\r\n \"name\": - \"vm_sgv000004_lun_0_2_e4797a358eb04ee4b816b80f8d867a1c\",\r\n \"statuses\": + \"vm_sgv000004_lun_0_2_cfc4732dd95b4b91a74de11c5c97e34e\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:42:27.9517544+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-03-31T10:05:51.7066355+00:00\"\r\n \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:43:05.9207071+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-03-31T10:06:33.6441437+00:00\"\r\n \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-03-22T07:42:21.2017266+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-03-31T10:05:47.6284753+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3006,7 +2955,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:33 GMT + - Thu, 31 Mar 2022 10:07:02 GMT expires: - '-1' pragma: @@ -3023,7 +2972,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31963 + - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31989 status: code: 200 message: OK @@ -3047,12 +2996,12 @@ interactions: response: body: string: "{\r\n \"name\": \"vm_sgv000004VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic\",\r\n - \ \"etag\": \"W/\\\"034ea656-9a4c-4296-8bde-97ea8b2f58f5\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"9fdb653f-dc9f-4ec4-ba61-6dfbde25805f\\\"\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"c8de7156-b448-4ee1-811f-efa72bf7ee10\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"1e814db6-19ed-4021-ac47-8463d6dc67ea\",\r\n \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm_sgv000004\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic/ipConfigurations/ipconfigvm_sgv000004\",\r\n - \ \"etag\": \"W/\\\"034ea656-9a4c-4296-8bde-97ea8b2f58f5\\\"\",\r\n + \ \"etag\": \"W/\\\"9fdb653f-dc9f-4ec4-ba61-6dfbde25805f\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.5\",\r\n \"privateIPAllocationMethod\": @@ -3061,8 +3010,8 @@ interactions: \ },\r\n \"primary\": true,\r\n \"privateIPAddressVersion\": \"IPv4\"\r\n }\r\n }\r\n ],\r\n \"dnsSettings\": {\r\n \"dnsServers\": [],\r\n \"appliedDnsServers\": [],\r\n \"internalDomainNameSuffix\": - \"3xyfgd3vxldu3ednclxfrpl33f.bx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-9D-8D-E4\",\r\n \"enableAcceleratedNetworking\": false,\r\n + \"ako4hr4wuo4edimwmgtwmcko1e.bx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"00-0D-3A-12-AB-3F\",\r\n \"enableAcceleratedNetworking\": false,\r\n \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv000004NSG\"\r\n \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": @@ -3076,9 +3025,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:33 GMT + - Thu, 31 Mar 2022 10:07:03 GMT etag: - - W/"034ea656-9a4c-4296-8bde-97ea8b2f58f5" + - W/"9fdb653f-dc9f-4ec4-ba61-6dfbde25805f" expires: - '-1' pragma: @@ -3095,7 +3044,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 45df9863-f2ea-4aa7-a7ad-54ef2cb6ff7b + - 6fa84f3d-1b05-4d5f-8a49-8934dbbe9636 status: code: 200 message: OK @@ -3119,10 +3068,10 @@ interactions: response: body: string: "{\r\n \"name\": \"vm_sgv000004PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv000004PublicIP\",\r\n - \ \"etag\": \"W/\\\"202976e8-5b36-4eba-8de1-bcf7a8289c05\\\"\",\r\n \"location\": + \ \"etag\": \"W/\\\"fbe08d63-af55-48c5-a3e3-45b68b320880\\\"\",\r\n \"location\": \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"3ce4136d-29bc-4358-b48e-819a91d9c46c\",\r\n - \ \"ipAddress\": \"20.25.54.194\",\r\n \"publicIPAddressVersion\": \"IPv4\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"5e60c9d6-53d0-488d-9885-36a949c7d365\",\r\n + \ \"ipAddress\": \"20.228.238.39\",\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/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic/ipConfigurations/ipconfigvm_sgv000004\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n @@ -3131,13 +3080,13 @@ interactions: cache-control: - no-cache content-length: - - '914' + - '915' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:34 GMT + - Thu, 31 Mar 2022 10:07:03 GMT etag: - - W/"202976e8-5b36-4eba-8de1-bcf7a8289c05" + - W/"fbe08d63-af55-48c5-a3e3-45b68b320880" expires: - '-1' pragma: @@ -3154,7 +3103,7 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 5b7728bd-3630-4f4d-9611-6e72fa016f10 + - 1d75120f-fcb6-4e8e-aa59-b150f1c37fbb status: code: 200 message: OK @@ -3179,24 +3128,24 @@ interactions: body: string: "{\r\n \"name\": \"vm_sgv000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv000004\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"4979b49a-b25b-4dc5-afa1-0f57a2b56200\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"09751c41-dfb9-4337-867b-930d97c60054\",\r\n \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"exactVersion\": - \"1.1.2\",\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2\"\r\n + \"1.1.2\",\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2\"\r\n \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm_sgv000004_OsDisk_1_6476b5c644fb45e28c8e814e18698fe1\",\r\n \"createOption\": + \"vm_sgv000004_OsDisk_1_fbb16e68c8194e559367698f98e94e74\",\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_OsDisk_1_6476b5c644fb45e28c8e814e18698fe1\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_OsDisk_1_fbb16e68c8194e559367698f98e94e74\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": - 0,\r\n \"name\": \"vm_sgv000004_lun_0_2_e4797a358eb04ee4b816b80f8d867a1c\",\r\n + 0,\r\n \"name\": \"vm_sgv000004_lun_0_2_cfc4732dd95b4b91a74de11c5c97e34e\",\r\n \ \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_lun_0_2_e4797a358eb04ee4b816b80f8d867a1c\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv000004_lun_0_2_cfc4732dd95b4b91a74de11c5c97e34e\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 10,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n - \ \"osProfile\": {\r\n \"computerName\": \"vmsgv77iyd7wjsb\",\r\n \"adminUsername\": + \ \"osProfile\": {\r\n \"computerName\": \"vmsgvqq5st6bowd\",\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/clitest1/.ssh/authorized_keys\",\r\n \"keyData\": @@ -3206,7 +3155,7 @@ interactions: \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-03-22T07:42:21.2017266+00:00\"\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-03-31T10:05:47.6284753+00:00\"\r\n \ }\r\n}" headers: cache-control: @@ -3216,7 +3165,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:35 GMT + - Thu, 31 Mar 2022 10:07:04 GMT expires: - '-1' pragma: @@ -3233,7 +3182,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31962 + - Microsoft.Compute/LowCostGet3Min;3993,Microsoft.Compute/LowCostGet30Min;31988 status: code: 200 message: OK @@ -3256,7 +3205,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -3265,7 +3214,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:35 GMT + - Thu, 31 Mar 2022 10:07:05 GMT expires: - '-1' pragma: @@ -3283,7 +3232,7 @@ interactions: body: null headers: Accept: - - application/json, text/json + - application/json Accept-Encoding: - gzip, deflate CommandName: @@ -3293,6 +3242,152 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/images/image000008?api-version=2021-07-01 + response: + body: + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008\"\r\n + \ },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": + \"Generalized\",\r\n \"identifier\": {\r\n \"publisher\": \"publisher1\",\r\n + \ \"offer\": \"offer1\",\r\n \"sku\": \"sku1\"\r\n },\r\n \"recommended\": + {},\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": \"x64\"\r\n + \ },\r\n \"location\": \"eastus\",\r\n \"name\": \"image000008\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '460' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 31 Mar 2022 10:07: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --generate-ssh-keys --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-31T09:51:59Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '310' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 31 Mar 2022 10:07:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --generate-ssh-keys --admin-username + User-Agent: + - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/images/image000008?api-version=2021-07-01 + response: + body: + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008\"\r\n + \ },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": + \"Generalized\",\r\n \"identifier\": {\r\n \"publisher\": \"publisher1\",\r\n + \ \"offer\": \"offer1\",\r\n \"sku\": \"sku1\"\r\n },\r\n \"recommended\": + {},\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": \"x64\"\r\n + \ },\r\n \"location\": \"eastus\",\r\n \"name\": \"image000008\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '460' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 31 Mar 2022 10:07: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 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json, text/json + Accept-Encoding: + - gzip, deflate + CommandName: + - vmss create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --generate-ssh-keys --admin-username + User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.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/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 @@ -3300,14 +3395,14 @@ interactions: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm000002VNET\",\r\n \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET\",\r\n - \ \"etag\": \"W/\\\"0ed4c1a3-2027-4cf4-a3f2-653cfee0ab58\\\"\",\r\n \"type\": + \ \"etag\": \"W/\\\"2b45ed42-9d5f-41f0-85db-b926ef533979\\\"\",\r\n \"type\": \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"0f53f0ed-bab5-4ec7-906d-12ee58bd7ded\",\r\n + \"Succeeded\",\r\n \"resourceGuid\": \"c7e39d02-a3d6-41bc-a196-61a766094edc\",\r\n \ \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": \"vm000002Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet\",\r\n - \ \"etag\": \"W/\\\"0ed4c1a3-2027-4cf4-a3f2-653cfee0ab58\\\"\",\r\n + \ \"etag\": \"W/\\\"2b45ed42-9d5f-41f0-85db-b926ef533979\\\"\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"ipConfigurations\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\"\r\n @@ -3324,7 +3419,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:36 GMT + - Thu, 31 Mar 2022 10:07:09 GMT expires: - '-1' pragma: @@ -3341,70 +3436,76 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4414017b-c0cb-4daa-bd68-f7a85e2385d9 + - e4054810-ac91-4a38-8445-566250afdd84 status: code: 200 message: OK - request: body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": - [{"type": "Microsoft.Network/networkSecurityGroups", "name": "vm_sgv2000005NSG", - "apiVersion": "2015-06-15", "location": "eastus", "tags": {}, "dependsOn": []}, - {"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", - "name": "vm_sgv2000005PublicIP", "location": "eastus", "tags": {}, "dependsOn": - [], "properties": {"publicIPAllocationMethod": null}}, {"apiVersion": "2015-06-15", - "type": "Microsoft.Network/networkInterfaces", "name": "vm_sgv2000005VMNic", - "location": "eastus", "tags": {}, "dependsOn": ["Microsoft.Network/networkSecurityGroups/vm_sgv2000005NSG", - "Microsoft.Network/publicIpAddresses/vm_sgv2000005PublicIP"], "properties": - {"ipConfigurations": [{"name": "ipconfigvm_sgv2000005", "properties": {"privateIPAllocationMethod": - "Dynamic", "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, - "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP"}}}], - "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv2000005NSG"}}}, - {"apiVersion": "2021-11-01", "type": "Microsoft.Compute/virtualMachines", "name": - "vm_sgv2000005", "location": "eastus", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic"], - "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic", - "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"caching": - "ReadWrite", "managedDisk": {"storageAccountType": null}, "name": null, "createOption": - "fromImage"}, "imageReference": {"sharedGalleryImageId": "/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2"}}, - "osProfile": {"computerName": "vmsgv2ksfy3ji32", "adminUsername": "clitest1", + [{"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", + "name": "vmss000006LBPublicIP", "location": "eastus", "tags": {}, "dependsOn": + [], "properties": {"publicIPAllocationMethod": "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", + "name": "vmss000006LB", "location": "eastus", "tags": {}, "apiVersion": "2018-01-01", + "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss000006LBPublicIP"], "properties": + {"backendAddressPools": [{"name": "vmss000006LBBEPool"}], "frontendIPConfigurations": + [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP"}}}], + "inboundNatPools": [{"name": "vmss000006LBNatPool", "properties": {"frontendIPConfiguration": + {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss000006LB''), + ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, "protocol": "tcp", + "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "backendPort": + 22}}]}}, {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss000006", + "location": "eastus", "tags": {}, "apiVersion": "2021-11-01", "dependsOn": ["Microsoft.Network/loadBalancers/vmss000006LB"], + "properties": {"overprovision": true, "upgradePolicy": {"mode": "manual", "rollingUpgradePolicy": + {}}, "singlePlacementGroup": null, "virtualMachineProfile": {"storageProfile": + {"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": null}, + "name": null, "createOption": "fromImage"}, "imageReference": {"sharedGalleryImageId": + "/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2"}}, + "osProfile": {"computerNamePrefix": "vmssy6000", "adminUsername": "clitest1", "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": - [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/", - "path": "/home/clitest1/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": - {}, "mode": "incremental"}}' + [{"path": "/home/clitest1/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/"}]}}}, + "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmssy6000Nic", + "properties": {"ipConfigurations": [{"name": "vmssy6000IPConfig", "properties": + {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, + "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/backendAddressPools/vmss000006LBBEPool"}], + "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/inboundNatPools/vmss000006LBNatPool"}]}}], + "primary": "true"}}]}}, "orchestrationMode": "Uniform"}, "sku": {"name": "Standard_DS1_v2", + "capacity": 2}}], "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', + ''vmss000006''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}}}, + "parameters": {}, "mode": "incremental"}}' headers: Accept: - application/json Accept-Encoding: - gzip, deflate CommandName: - - vm create + - vmss create Connection: - keep-alive Content-Length: - - '3010' + - '3717' Content-Type: - application/json ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type + - -g -n --image --generate-ssh-keys --admin-username User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_e4pUpqCgqT6xu71jcQVfFzgcNcKzOpik","name":"vm_deploy_e4pUpqCgqT6xu71jcQVfFzgcNcKzOpik","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4290371458451819948","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-22T07:43:42.4380157Z","duration":"PT0.0001403S","correlationId":"a673b5be-18c1-42ce-862a-6bb20c338225","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv2000005NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_sgv2000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_sgv2000005PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv2000005VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv2000005VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_sgv2000005"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_5nPR3yhHXzmv7csg2srsaTJ8apCyETru","name":"vmss_deploy_5nPR3yhHXzmv7csg2srsaTJ8apCyETru","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7185056127765438942","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-31T10:07:24.5457892Z","duration":"PT0.0002095S","correlationId":"0be7f169-cf9d-436a-ab6d-c8e379ba4c7b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"loadBalancers","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000006LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000006","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000006"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_e4pUpqCgqT6xu71jcQVfFzgcNcKzOpik/operationStatuses/08585536718659105518?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_5nPR3yhHXzmv7csg2srsaTJ8apCyETru/operationStatuses/08585528856442730164?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2150' + - '1811' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:43:43 GMT + - Thu, 31 Mar 2022 10:07:27 GMT expires: - '-1' pragma: @@ -3414,7 +3515,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1191' + - '1199' status: code: 201 message: Created @@ -3426,15 +3527,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vm create + - vmss create Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type + - -g -n --image --generate-ssh-keys --admin-username User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536718659105518?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528856442730164?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -3446,7 +3547,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:44:13 GMT + - Thu, 31 Mar 2022 10:07:58 GMT expires: - '-1' pragma: @@ -3468,15 +3569,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vm create + - vmss create Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type + - -g -n --image --generate-ssh-keys --admin-username User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536718659105518?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528856442730164?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -3488,7 +3589,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:44:45 GMT + - Thu, 31 Mar 2022 10:08:29 GMT expires: - '-1' pragma: @@ -3510,15 +3611,15 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vm create + - vmss create Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type + - -g -n --image --generate-ssh-keys --admin-username User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536718659105518?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585528856442730164?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -3530,7 +3631,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:45:15 GMT + - Thu, 31 Mar 2022 10:08:59 GMT expires: - '-1' pragma: @@ -3552,27 +3653,28 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vm create + - vmss create Connection: - keep-alive ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type + - -g -n --image --generate-ssh-keys --admin-username User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_e4pUpqCgqT6xu71jcQVfFzgcNcKzOpik","name":"vm_deploy_e4pUpqCgqT6xu71jcQVfFzgcNcKzOpik","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4290371458451819948","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-22T07:44:46.4716836Z","duration":"PT1M4.0338082S","correlationId":"a673b5be-18c1-42ce-862a-6bb20c338225","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"networkSecurityGroups","locations":["eastus"]},{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"networkInterfaces","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv2000005NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm_sgv2000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm_sgv2000005PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv2000005VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm_sgv2000005VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm_sgv2000005"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv2000005NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP"}]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_5nPR3yhHXzmv7csg2srsaTJ8apCyETru","name":"vmss_deploy_5nPR3yhHXzmv7csg2srsaTJ8apCyETru","type":"Microsoft.Resources/deployments","properties":{"templateHash":"7185056127765438942","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-31T10:08:59.4896661Z","duration":"PT1M34.9440864S","correlationId":"0be7f169-cf9d-436a-ab6d-c8e379ba4c7b","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"loadBalancers","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000006LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000006","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000006"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Manual","rollingUpgradePolicy":{"maxBatchInstancePercent":20,"maxUnhealthyInstancePercent":20,"maxUnhealthyUpgradedInstancePercent":20,"pauseTimeBetweenBatches":"PT0S"}},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmssy6000","adminUsername":"clitest1","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/clitest1/.ssh/authorized_keys","keyData":"ssh-rsa + AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"osType":"Linux","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":30},"imageReference":{"sharedGalleryImageId":"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2"},"dataDisks":[{"lun":0,"createOption":"FromImage","caching":"None","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":10}]},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmssy6000Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmssy6000IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/backendAddressPools/vmss000006LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/inboundNatPools/vmss000006LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"934333c9-4bb5-47c7-bb35-9422fef4791f","timeCreated":"2022-03-31T10:07:49.2536375+00:00"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000006"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP"}]}}' headers: cache-control: - no-cache content-length: - - '2816' + - '4865' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:45:16 GMT + - Thu, 31 Mar 2022 10:08:59 GMT expires: - '-1' pragma: @@ -3594,727 +3696,7 @@ interactions: Accept-Encoding: - gzip, deflate CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005?$expand=instanceView&api-version=2021-11-01 - response: - body: - string: "{\r\n \"name\": \"vm_sgv2000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"a56107ee-6e9c-44e4-93ae-a1cb5fa38b1e\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n - \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"exactVersion\": - \"1.1.2\",\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2\"\r\n - \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm_sgv2000005_OsDisk_1_ab340e3c2b2c48a991ce0d411d9464df\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv2000005_OsDisk_1_ab340e3c2b2c48a991ce0d411d9464df\"\r\n - \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": - 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": - 0,\r\n \"name\": \"vm_sgv2000005_lun_0_2_88a071861278473682547032f32ecee6\",\r\n - \ \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv2000005_lun_0_2_88a071861278473682547032f32ecee6\"\r\n - \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": - 10,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n - \ \"osProfile\": {\r\n \"computerName\": \"vmsgv2ksfy3ji32\",\r\n \"adminUsername\": - \"clitest1\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": - true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/clitest1/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n - \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n - \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n - \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": - true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"instanceView\": {\r\n \"computerName\": - \"vmsgv2ksfy3ji32\",\r\n \"osName\": \"ubuntu\",\r\n \"osVersion\": - \"18.04\",\r\n \"vmAgent\": {\r\n \"vmAgentVersion\": \"2.7.0.6\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Ready\",\r\n - \ \"message\": \"Guest Agent is running\",\r\n \"time\": - \"2022-03-22T07:44:48+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm_sgv2000005_OsDisk_1_ab340e3c2b2c48a991ce0d411d9464df\",\r\n - \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:44:08.7960973+00:00\"\r\n - \ }\r\n ]\r\n },\r\n {\r\n \"name\": - \"vm_sgv2000005_lun_0_2_88a071861278473682547032f32ecee6\",\r\n \"statuses\": - [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:44:08.7960973+00:00\"\r\n - \ }\r\n ]\r\n }\r\n ],\r\n \"hyperVGeneration\": - \"V1\",\r\n \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-03-22T07:44:42.1087498+00:00\"\r\n - \ },\r\n {\r\n \"code\": \"PowerState/running\",\r\n - \ \"level\": \"Info\",\r\n \"displayStatus\": \"VM running\"\r\n - \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-03-22T07:44:04.7335348+00:00\"\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '4831' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45: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;3988,Microsoft.Compute/LowCostGet30Min;31957 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.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/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic?api-version=2018-01-01 - response: - body: - string: "{\r\n \"name\": \"vm_sgv2000005VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic\",\r\n - \ \"etag\": \"W/\\\"d0f161fb-6922-4760-952c-98ff04410ccf\\\"\",\r\n \"location\": - \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"61d4972c-3ea2-4136-bf64-b0209f45a1fb\",\r\n - \ \"ipConfigurations\": [\r\n {\r\n \"name\": \"ipconfigvm_sgv2000005\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic/ipConfigurations/ipconfigvm_sgv2000005\",\r\n - \ \"etag\": \"W/\\\"d0f161fb-6922-4760-952c-98ff04410ccf\\\"\",\r\n - \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"privateIPAddress\": \"10.0.0.6\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP\"\r\n - \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet\"\r\n - \ },\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\": - \"3xyfgd3vxldu3ednclxfrpl33f.bx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"00-0D-3A-9D-8A-4F\",\r\n \"enableAcceleratedNetworking\": false,\r\n - \ \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm_sgv2000005NSG\"\r\n - \ },\r\n \"primary\": true,\r\n \"virtualMachine\": {\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005\"\r\n - \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2304' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45:19 GMT - etag: - - W/"d0f161fb-6922-4760-952c-98ff04410ccf" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 63e82753-38a9-4cf8-9658-1c567634fe20 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --admin-username --generate-ssh-key --nsg-rule --os-type - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.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/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP?api-version=2018-01-01 - response: - body: - string: "{\r\n \"name\": \"vm_sgv2000005PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm_sgv2000005PublicIP\",\r\n - \ \"etag\": \"W/\\\"029ceff2-dbe5-435d-a5e9-bed4746e1e65\\\"\",\r\n \"location\": - \"eastus\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"a57411a4-af91-42f5-be7a-5b0387f618e7\",\r\n - \ \"ipAddress\": \"20.25.21.132\",\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/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic/ipConfigurations/ipconfigvm_sgv2000005\"\r\n - \ }\r\n },\r\n \"type\": \"Microsoft.Network/publicIPAddresses\",\r\n - \ \"sku\": {\r\n \"name\": \"Basic\"\r\n }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '918' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45:20 GMT - etag: - - W/"029ceff2-dbe5-435d-a5e9-bed4746e1e65" - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 68397165-07fd-40f9-b82f-09d05a1c0053 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vm show - Connection: - - keep-alive - ParameterSetName: - - -g -n - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005?api-version=2021-11-01 - response: - body: - string: "{\r\n \"name\": \"vm_sgv2000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm_sgv2000005\",\r\n - \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"a56107ee-6e9c-44e4-93ae-a1cb5fa38b1e\",\r\n - \ \"hardwareProfile\": {\r\n \"vmSize\": \"Standard_DS1_v2\"\r\n },\r\n - \ \"storageProfile\": {\r\n \"imageReference\": {\r\n \"exactVersion\": - \"1.1.2\",\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2\"\r\n - \ },\r\n \"osDisk\": {\r\n \"osType\": \"Linux\",\r\n \"name\": - \"vm_sgv2000005_OsDisk_1_ab340e3c2b2c48a991ce0d411d9464df\",\r\n \"createOption\": - \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": - {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n \"id\": - \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv2000005_OsDisk_1_ab340e3c2b2c48a991ce0d411d9464df\"\r\n - \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": - 30\r\n },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": - 0,\r\n \"name\": \"vm_sgv2000005_lun_0_2_88a071861278473682547032f32ecee6\",\r\n - \ \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n - \ \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/disks/vm_sgv2000005_lun_0_2_88a071861278473682547032f32ecee6\"\r\n - \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": - 10,\r\n \"toBeDetached\": false\r\n }\r\n ]\r\n },\r\n - \ \"osProfile\": {\r\n \"computerName\": \"vmsgv2ksfy3ji32\",\r\n \"adminUsername\": - \"clitest1\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": - true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n - \ \"path\": \"/home/clitest1/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/\"\r\n - \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n - \ \"assessmentMode\": \"ImageDefault\"\r\n }\r\n },\r\n - \ \"secrets\": [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": - true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic\"}]},\r\n - \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-03-22T07:44:04.7335348+00:00\"\r\n - \ }\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '3145' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45: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/LowCostGet3Min;3987,Microsoft.Compute/LowCostGet30Min;31956 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"eastus","tags":{"product":"azurecli","cause":"automation","date":"2022-03-22T07:27:48Z"},"properties":{"provisioningState":"Succeeded"}}' - headers: - cache-control: - - no-cache - content-length: - - '310' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45:20 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/sharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/images/image000008?api-version=2021-07-01 - response: - body: - string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008\"\r\n - \ },\r\n \"properties\": {\r\n \"osType\": \"Linux\",\r\n \"osState\": - \"Generalized\",\r\n \"identifier\": {\r\n \"publisher\": \"publisher1\",\r\n - \ \"offer\": \"offer1\",\r\n \"sku\": \"sku1\"\r\n },\r\n \"recommended\": - {},\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": \"x64\"\r\n - \ },\r\n \"location\": \"eastus\",\r\n \"name\": \"image000008\"\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '460' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45: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 - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json, text/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-network/19.3.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/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 - response: - body: - string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"vm000002VNET\",\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET\",\r\n - \ \"etag\": \"W/\\\"ee8c126e-d4fd-4dbc-be67-1039aa3a8c88\\\"\",\r\n \"type\": - \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"eastus\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"0f53f0ed-bab5-4ec7-906d-12ee58bd7ded\",\r\n - \ \"addressSpace\": {\r\n \"addressPrefixes\": [\r\n \"10.0.0.0/16\"\r\n - \ ]\r\n },\r\n \"subnets\": [\r\n {\r\n \"name\": - \"vm000002Subnet\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet\",\r\n - \ \"etag\": \"W/\\\"ee8c126e-d4fd-4dbc-be67-1039aa3a8c88\\\"\",\r\n - \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"addressPrefix\": \"10.0.0.0/24\",\r\n \"ipConfigurations\": - [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv000004VMNic/ipConfigurations/ipconfigvm_sgv000004\"\r\n - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm_sgv2000005VMNic/ipConfigurations/ipconfigvm_sgv2000005\"\r\n - \ }\r\n ]\r\n },\r\n \"type\": - \"Microsoft.Network/virtualNetworks/subnets\"\r\n }\r\n ],\r\n - \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": - false\r\n }\r\n }\r\n ]\r\n}" - headers: - cache-control: - - no-cache - content-length: - - '2076' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - x-ms-arm-service-request-id: - - 1fc4e753-d41c-42ae-8e56-82908c0985a4 - status: - code: 200 - message: OK -- request: - body: '{"properties": {"template": {"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": - [{"apiVersion": "2018-01-01", "type": "Microsoft.Network/publicIPAddresses", - "name": "vmss000006LBPublicIP", "location": "eastus", "tags": {}, "dependsOn": - [], "properties": {"publicIPAllocationMethod": "Dynamic"}}, {"type": "Microsoft.Network/loadBalancers", - "name": "vmss000006LB", "location": "eastus", "tags": {}, "apiVersion": "2018-01-01", - "dependsOn": ["Microsoft.Network/publicIpAddresses/vmss000006LBPublicIP"], "properties": - {"backendAddressPools": [{"name": "vmss000006LBBEPool"}], "frontendIPConfigurations": - [{"name": "loadBalancerFrontEnd", "properties": {"publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP"}}}], - "inboundNatPools": [{"name": "vmss000006LBNatPool", "properties": {"frontendIPConfiguration": - {"id": "[concat(resourceId(''Microsoft.Network/loadBalancers'', ''vmss000006LB''), - ''/frontendIPConfigurations/'', ''loadBalancerFrontEnd'')]"}, "protocol": "tcp", - "frontendPortRangeStart": "50000", "frontendPortRangeEnd": "50119", "backendPort": - 22}}]}}, {"type": "Microsoft.Compute/virtualMachineScaleSets", "name": "vmss000006", - "location": "eastus", "tags": {}, "apiVersion": "2021-11-01", "dependsOn": ["Microsoft.Network/loadBalancers/vmss000006LB"], - "properties": {"overprovision": true, "upgradePolicy": {"mode": "Automatic", - "rollingUpgradePolicy": {}}, "singlePlacementGroup": null, "virtualMachineProfile": - {"storageProfile": {"osDisk": {"caching": "ReadWrite", "managedDisk": {"storageAccountType": - null}, "name": null, "createOption": "fromImage"}, "imageReference": {"sharedGalleryImageId": - "/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2"}}, - "osProfile": {"computerNamePrefix": "vmssp5908", "adminUsername": "clitest1", - "linuxConfiguration": {"disablePasswordAuthentication": true, "ssh": {"publicKeys": - [{"path": "/home/clitest1/.ssh/authorized_keys", "keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/"}]}}}, - "networkProfile": {"networkInterfaceConfigurations": [{"name": "vmssp5908Nic", - "properties": {"ipConfigurations": [{"name": "vmssp5908IPConfig", "properties": - {"subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, - "loadBalancerBackendAddressPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/backendAddressPools/vmss000006LBBEPool"}], - "loadBalancerInboundNatPools": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/inboundNatPools/vmss000006LBNatPool"}]}}], - "primary": "true"}}]}}, "orchestrationMode": "Uniform"}, "sku": {"name": "Standard_DS1_v2", - "capacity": 2}}], "outputs": {"VMSS": {"type": "object", "value": "[reference(resourceId(''Microsoft.Compute/virtualMachineScaleSets'', - ''vmss000006''),providers(''Microsoft.Compute'', ''virtualMachineScaleSets'').apiVersions[0])]"}}}, - "parameters": {}, "mode": "incremental"}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - Content-Length: - - '3720' - Content-Type: - - application/json - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_oQ2XOdbrVT9LHhmzMweSRzVogCfKaqxh","name":"vmss_deploy_oQ2XOdbrVT9LHhmzMweSRzVogCfKaqxh","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12333813519373956775","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-03-22T07:45:33.0885711Z","duration":"PT0.0004535S","correlationId":"4f3bf3d2-021d-4af4-a4e4-48ecb0a6940e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"loadBalancers","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000006LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000006","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000006"}]}}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_oQ2XOdbrVT9LHhmzMweSRzVogCfKaqxh/operationStatuses/08585536717534967334?api-version=2021-04-01 - cache-control: - - no-cache - content-length: - - '1812' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:45:34 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1194' - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536717534967334?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:46:04 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536717534967334?api-version=2021-04-01 - response: - body: - string: '{"status":"Running"}' - headers: - cache-control: - - no-cache - content-length: - - '20' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:46:35 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585536717534967334?api-version=2021-04-01 - response: - body: - string: '{"status":"Succeeded"}' - headers: - cache-control: - - no-cache - content-length: - - '22' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:47:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss create - Connection: - - keep-alive - ParameterSetName: - - -g -n --image --generate-ssh-keys --upgrade-policy-mode --admin-username - User-Agent: - - AZURECLI/2.34.1 azsdk-python-azure-mgmt-resource/20.0.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/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vmss_deploy_oQ2XOdbrVT9LHhmzMweSRzVogCfKaqxh","name":"vmss_deploy_oQ2XOdbrVT9LHhmzMweSRzVogCfKaqxh","type":"Microsoft.Resources/deployments","properties":{"templateHash":"12333813519373956775","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-03-22T07:46:54.2735846Z","duration":"PT1M21.185467S","correlationId":"4f3bf3d2-021d-4af4-a4e4-48ecb0a6940e","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"publicIPAddresses","locations":["eastus"]},{"resourceType":"loadBalancers","locations":["eastus"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachineScaleSets","locations":["eastus"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vmss000006LBPublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB","resourceType":"Microsoft.Network/loadBalancers","resourceName":"vmss000006LB"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000006","resourceType":"Microsoft.Compute/virtualMachineScaleSets","resourceName":"vmss000006"}],"outputs":{"vmss":{"type":"Object","value":{"singlePlacementGroup":true,"upgradePolicy":{"mode":"Automatic","rollingUpgradePolicy":{"maxBatchInstancePercent":20,"maxUnhealthyInstancePercent":20,"maxUnhealthyUpgradedInstancePercent":20,"pauseTimeBetweenBatches":"PT0S"}},"virtualMachineProfile":{"osProfile":{"computerNamePrefix":"vmssp5908","adminUsername":"clitest1","linuxConfiguration":{"disablePasswordAuthentication":true,"ssh":{"publicKeys":[{"path":"/home/clitest1/.ssh/authorized_keys","keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDBfrmPNtStaG3GJyEk6YjCZ57vUFT6RfwPCEtLJpvjTaVFEuD7W+HXCE4kdoe0WUINcWyPmo44k9oJlWwimxHcc/FLhMTHyJopyfSePGySHjjjS/2brJyeZ86xIC4QJMX7xqe4rdg/XOEXlbJisD0Ge8ervZr7dN/B/lsoiQLH+C5ueOed9JRaCeLRXtlBAJrlI3BXm+kDV9qPH4LhxFIS6WIZ+dk3u/RtCCC+yZ6x3wRr9CqVZ/Xr0fs02wOnKUSlZDpuu28Hsb1BtQM/+aq1YgcEsudCepRkSyNf8V38xx4T+iiBBFvVLlMNE6CC7Jk4Uc/tO/fv1xaFpmo4Pmu/"}]},"provisionVMAgent":true},"secrets":[],"allowExtensionOperations":true,"requireGuestProvisionSignal":true},"storageProfile":{"osDisk":{"osType":"Linux","createOption":"FromImage","caching":"ReadWrite","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":30},"imageReference":{"sharedGalleryImageId":"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2"},"dataDisks":[{"lun":0,"createOption":"FromImage","caching":"None","managedDisk":{"storageAccountType":"Premium_LRS"},"diskSizeGB":10}]},"networkProfile":{"networkInterfaceConfigurations":[{"name":"vmssp5908Nic","properties":{"primary":true,"enableAcceleratedNetworking":false,"dnsSettings":{"dnsServers":[]},"enableIPForwarding":false,"ipConfigurations":[{"name":"vmssp5908IPConfig","properties":{"subnet":{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"},"privateIPAddressVersion":"IPv4","loadBalancerBackendAddressPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/backendAddressPools/vmss000006LBBEPool"}],"loadBalancerInboundNatPools":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/inboundNatPools/vmss000006LBNatPool"}]}}]}}]}},"provisioningState":"Succeeded","overprovision":true,"doNotRunExtensionsOnOverprovisionedVMs":false,"uniqueId":"3a060969-adfb-4179-b426-340c0f8304d1","timeCreated":"2022-03-22T07:45:54.0779644+00:00"}}},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachineScaleSets/vmss000006"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vmss000006LBPublicIP"}]}}' - headers: - cache-control: - - no-cache - content-length: - - '4868' - content-type: - - application/json; charset=utf-8 - date: - - Tue, 22 Mar 2022 07:47:06 GMT - expires: - - '-1' - pragma: - - no-cache - strict-transport-security: - - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding - x-content-type-options: - - nosniff - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - CommandName: - - vmss show + - vmss show Connection: - keep-alive ParameterSetName: @@ -4330,11 +3712,11 @@ interactions: \"eastus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_DS1_v2\",\r\n \ \"tier\": \"Standard\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"singlePlacementGroup\": true,\r\n \"upgradePolicy\": {\r\n \"mode\": - \"Automatic\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": + \"Manual\",\r\n \"rollingUpgradePolicy\": {\r\n \"maxBatchInstancePercent\": 20,\r\n \"maxUnhealthyInstancePercent\": 20,\r\n \"maxUnhealthyUpgradedInstancePercent\": 20,\r\n \"pauseTimeBetweenBatches\": \"PT0S\"\r\n }\r\n },\r\n \ \"virtualMachineProfile\": {\r\n \"osProfile\": {\r\n \"computerNamePrefix\": - \"vmssp5908\",\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\": + \"vmssy6000\",\r\n \"adminUsername\": \"clitest1\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/clitest1/.ssh/authorized_keys\",\r\n \"keyData\": \"ssh-rsa @@ -4346,25 +3728,25 @@ interactions: \"FromImage\",\r\n \"caching\": \"ReadWrite\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \ \"diskSizeGB\": 30\r\n },\r\n \"imageReference\": - {\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ/Images/image000008/Versions/1.1.2\"\r\n + {\r\n \"sharedGalleryImageId\": \"/SharedGalleries/0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK/Images/image000008/Versions/1.1.2\"\r\n \ },\r\n \"dataDisks\": [\r\n {\r\n \"lun\": 0,\r\n \"createOption\": \"FromImage\",\r\n \"caching\": \"None\",\r\n \"managedDisk\": {\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"diskSizeGB\": 10\r\n }\r\n - \ ]\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmssp5908Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmssp5908IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/backendAddressPools/vmss000006LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/inboundNatPools/vmss000006LBNatPool\"}]}}]}}]}\r\n + \ ]\r\n },\r\n \"networkProfile\": {\"networkInterfaceConfigurations\":[{\"name\":\"vmssy6000Nic\",\"properties\":{\"primary\":true,\"enableAcceleratedNetworking\":false,\"dnsSettings\":{\"dnsServers\":[]},\"enableIPForwarding\":false,\"ipConfigurations\":[{\"name\":\"vmssy6000IPConfig\",\"properties\":{\"subnet\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet\"},\"privateIPAddressVersion\":\"IPv4\",\"loadBalancerBackendAddressPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/backendAddressPools/vmss000006LBBEPool\"}],\"loadBalancerInboundNatPools\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/loadBalancers/vmss000006LB/inboundNatPools/vmss000006LBNatPool\"}]}}]}}]}\r\n \ },\r\n \"provisioningState\": \"Succeeded\",\r\n \"overprovision\": true,\r\n \"doNotRunExtensionsOnOverprovisionedVMs\": false,\r\n \"uniqueId\": - \"3a060969-adfb-4179-b426-340c0f8304d1\",\r\n \"timeCreated\": \"2022-03-22T07:45:54.0779644+00:00\"\r\n + \"934333c9-4bb5-47c7-bb35-9422fef4791f\",\r\n \"timeCreated\": \"2022-03-31T10:07:49.2536375+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3628' + - '3625' content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:47:07 GMT + - Thu, 31 Mar 2022 10:09:01 GMT expires: - '-1' pragma: @@ -4381,7 +3763,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2596 + - Microsoft.Compute/GetVMScaleSet3Min;396,Microsoft.Compute/GetVMScaleSet30Min;2594 status: code: 200 message: OK @@ -4411,17 +3793,17 @@ interactions: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/f5d15926-6412-42cb-9589-4401eee8450e?api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/be12c252-7100-48cf-995f-672ec18476ab?api-version=2021-10-01 cache-control: - no-cache content-length: - '0' date: - - Tue, 22 Mar 2022 07:47:08 GMT + - Thu, 31 Mar 2022 10:09:03 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/f5d15926-6412-42cb-9589-4401eee8450e?monitor=true&api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/be12c252-7100-48cf-995f-672ec18476ab?monitor=true&api-version=2021-10-01 pragma: - no-cache server: @@ -4434,7 +3816,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/PostShareGallery3Min;9,Microsoft.Compute/PostShareGallery30Min;58 x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 202 message: Accepted @@ -4454,12 +3836,12 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/f5d15926-6412-42cb-9589-4401eee8450e?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/be12c252-7100-48cf-995f-672ec18476ab?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-03-22T07:47:09.5947786+00:00\",\r\n \"endTime\": - \"2022-03-22T07:47:10.7822477+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"f5d15926-6412-42cb-9589-4401eee8450e\"\r\n}" + string: "{\r\n \"startTime\": \"2022-03-31T10:09:03.0430238+00:00\",\r\n \"endTime\": + \"2022-03-31T10:09:04.2461575+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"be12c252-7100-48cf-995f-672ec18476ab\"\r\n}" headers: cache-control: - no-cache @@ -4468,7 +3850,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:47:40 GMT + - Thu, 31 Mar 2022 10:09:33 GMT expires: - '-1' pragma: @@ -4485,7 +3867,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1198,Microsoft.Compute/GetOperationStatus30Min;4175 + - Microsoft.Compute/GetOperationStatus3Min;1198,Microsoft.Compute/GetOperationStatus30Min;4177 status: code: 200 message: OK @@ -4505,7 +3887,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.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/eastus/capsOperations/f5d15926-6412-42cb-9589-4401eee8450e?monitor=true&api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/capsOperations/be12c252-7100-48cf-995f-672ec18476ab?monitor=true&api-version=2021-10-01 response: body: string: '' @@ -4515,7 +3897,7 @@ interactions: content-length: - '0' date: - - Tue, 22 Mar 2022 07:47:41 GMT + - Thu, 31 Mar 2022 10:09:33 GMT expires: - '-1' pragma: @@ -4528,7 +3910,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1197,Microsoft.Compute/GetOperationStatus30Min;4174 + - Microsoft.Compute/GetOperationStatus3Min;1197,Microsoft.Compute/GetOperationStatus30Min;4176 status: code: 200 message: OK @@ -4554,7 +3936,7 @@ interactions: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"eastus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERY5Z3PFRVKJ\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYW5TPK7LLK\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Private\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: @@ -4565,7 +3947,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 22 Mar 2022 07:47:42 GMT + - Thu, 31 Mar 2022 10:09:34 GMT expires: - '-1' pragma: @@ -4582,7 +3964,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;348,Microsoft.Compute/GetGallery30Min;2487 + - Microsoft.Compute/GetGallery3Min;339,Microsoft.Compute/GetGallery30Min;2391 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 fc022da8814..8903b8ff96b 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 @@ -4991,15 +4991,11 @@ def test_create_vm_with_shared_gallery_image(self, resource_group, resource_grou self.check('storageProfile.imageReference.sharedGalleryImageId', '{shared_gallery_image_version}'), ]) - self.cmd('vm create -g {rg} -n {vm_with_shared_gallery_version2} --image {shared_gallery_image_version} --admin-username clitest1 --generate-ssh-key --nsg-rule None --os-type linux') - - self.cmd('vm show -g {rg} -n {vm_with_shared_gallery_version2}', checks=[ - self.check('provisioningState', 'Succeeded'), - self.check('storageProfile.imageReference.sharedGalleryImageId', '{shared_gallery_image_version}'), - self.check('storageProfile.osDisk.osType', 'Linux'), - ]) + from azure.cli.core.azclierror import ArgumentUsageError + with self.assertRaises(ArgumentUsageError): + self.cmd('vm create -g {rg} -n {vm_with_shared_gallery_version2} --image {shared_gallery_image_version} --admin-username clitest1 --generate-ssh-key --nsg-rule None --os-type windows') - self.cmd('vmss create -g {rg} -n {vmss_with_shared_gallery_version} --image {shared_gallery_image_version} --generate-ssh-keys --upgrade-policy-mode automatic --admin-username clitest1 ') + self.cmd('vmss create -g {rg} -n {vmss_with_shared_gallery_version} --image {shared_gallery_image_version} --generate-ssh-keys --admin-username clitest1 ') self.cmd('vmss show -g {rg} -n {vmss_with_shared_gallery_version}', checks=[ self.check('provisioningState', 'Succeeded'),