diff --git a/src/azure-cli/azure/cli/command_modules/vm/_arg_client.py b/src/azure-cli/azure/cli/command_modules/vm/_arg_client.py new file mode 100644 index 00000000000..4ea9774e573 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/_arg_client.py @@ -0,0 +1,53 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- + +import json + +from azure.cli.core.util import send_raw_request +from azure.cli.core.azclierror import HTTPError, AzureResponseError + + +class ARGClient: # pylint: disable=too-few-public-methods + """A lightweight Microsoft ARG API client. + + For what ARG is, please see https://docs.microsoft.com/en-us/azure/governance/resource-graph/overview for details. + The reason for directly using this client to request REST is that ARG API does not return "nextLink" data, + so the Python SDK "azure-mgmt-resourcegraph" cannot support paging + + """ + + def __init__(self, cli_ctx): + self._cli_ctx = cli_ctx + + self._endpoint = cli_ctx.cloud.endpoints.resource_manager.rstrip('/') + self._resource_provider_uri = 'providers/Microsoft.ResourceGraph/resources' + self._api_version = '2021-03-01' + self._method = 'post' + + def send(self, query_body): + url = f'{self._endpoint}/{self._resource_provider_uri}?api-version={self._api_version}' + + if isinstance(query_body, QueryBody): + # Serialize QueryBody object and ignore the None value + query_body = json.dumps(query_body, + default=lambda o: dict((key, value) for key, value in o.__dict__.items() if value)) + + try: + response = send_raw_request(self._cli_ctx, self._method, url, body=query_body) + except HTTPError as ex: + raise AzureResponseError(ex.response.json()['error']['message'], ex.response) from ex + # Other exceptions like AuthenticationError should not be handled here, so we don't catch CLIError + + if response.text: + return response.json() + + return response + + +class QueryBody: # pylint: disable=too-few-public-methods + + def __init__(self, query, options=None): + self.query = query + self.options = options diff --git a/src/azure-cli/azure/cli/command_modules/vm/_help.py b/src/azure-cli/azure/cli/command_modules/vm/_help.py index f3c79df4f3f..2153681cd7b 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -735,8 +735,8 @@ helps['sig image-definition list-shared'] = """ type: command -short-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant (preview). -long-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant (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). +short-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant +long-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant examples: - name: List an image definition in a gallery shared directly to your subscription in the given location. text: | @@ -750,8 +750,8 @@ helps['sig image-definition show-shared'] = """ type: command -short-summary: Get a shared gallery image (preview). -long-summary: Get a shared gallery image that has been shared directly to your subscription or tenant (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). +short-summary: Get a shared gallery image +long-summary: Get a shared gallery image that has been shared directly to your subscription or tenant examples: - name: Get an image definition in a gallery shared directly to your subscription or tenant in the given location. text: | @@ -779,8 +779,8 @@ helps['sig image-definition list-community'] = """ type: command -short-summary: List VM Image definitions in a gallery community (preview). -long-summary: List VM Image definitions in a gallery community (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). +short-summary: List VM Image definitions in a gallery community +long-summary: List VM Image definitions in a gallery community examples: - name: List an image definition in a gallery community. text: | @@ -912,8 +912,8 @@ helps['sig image-version list-shared'] = """ type: command -short-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant (preview). -long-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant (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). +short-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant +long-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant examples: - name: List image versions in a gallery shared directly to your subscription in the given location and image definition. text: | @@ -927,8 +927,8 @@ helps['sig image-version show-shared'] = """ type: command -short-summary: Get an image version in a gallery shared directly to your subscription or tenant (preview). -long-summary: Get an image version in a gallery shared directly to your subscription or tenant (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). +short-summary: Get an image version in a gallery shared directly to your subscription or tenant +long-summary: Get an image version in a gallery shared directly to your subscription or tenant examples: - name: Get an image version in a gallery shared directly to your subscription or tenant in the given location. text: | @@ -967,8 +967,8 @@ helps['sig image-version list-community'] = """ type: command -short-summary: List VM Image Versions in a gallery community (preview). -long-summary: List VM Image Versions in a gallery community (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). +short-summary: List VM Image Versions in a gallery community +long-summary: List VM Image Versions in a gallery community examples: - name: List an image versions in a gallery community. text: | @@ -995,17 +995,30 @@ helps['sig list-shared'] = """ type: command -short-summary: List all galleries shared directly to your subscription or tenant (preview). -long-summary: List all galleries shared directly to your subscription or tenant (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). +short-summary: List all shared galleries shared directly to your subscription or tenant +long-summary: List all shared galleries shared directly to your subscription or tenant examples: - - name: List galleries shared directly to your subscription in a given location + - name: List shared galleries shared directly to your subscription in a given location text: | az sig list-shared --location myLocation - - name: List galleries shared directly to your tenant in a given location + - name: List shared galleries shared directly to your tenant in a given location text: | az sig list-shared --location myLocation --shared-to tenant """ +helps['sig list-community'] = """ +type: command +short-summary: List all community galleries shared directly to your subscription or tenant +long-summary: List all community galleries shared directly to your subscription or tenant +examples: + - name: List community galleries shared directly to your subscription in a given location + text: | + az sig list-community --location myLocation + - name: List paging community galleries shared directly to your tenant in a given location according to next marker + text: | + az sig list-community --location myLocation --marker nextMarker +""" + helps['sig list'] = """ type: command short-summary: list share image galleries. @@ -1070,8 +1083,8 @@ helps['sig show-shared'] = """ type: command -short-summary: Get a gallery that has been shared directly to your subscription or tenant (preview). -long-summary: Get a gallery that has been shared directly to your subscription or tenant (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). +short-summary: Get a gallery that has been shared directly to your subscription or tenant +long-summary: Get a gallery that has been shared directly to your subscription or tenant examples: - name: Get a gallery that has been shared directly to your subscription or tenant in the given location. text: | @@ -1506,10 +1519,10 @@ - name: Create multiple VMs. In this example, 3 VMs are created. They are MyVm0, MyVm1, MyVm2. text: > az vm create -n MyVm -g MyResourceGroup --image centos --count 3 - - 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). + - name: Create a VM from shared gallery image 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). + - name: Create a VM from community gallery image text: > az vm create -n MyVm -g MyResourceGroup --image /CommunityGalleries/{gallery_unique_name}/Images/{image}/Versions/{version} """ @@ -2883,10 +2896,10 @@ - name: Create a VMSS that supports SpotRestore. text: > az vmss create -n MyVmss -g MyResourceGroup --location NorthEurope --instance-count 2 --image Centos --priority Spot --eviction-policy Deallocate --single-placement-group --enable-spot-restore True --spot-restore-timeout PT1H - - 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). + - name: Create a VMSS from shared gallery image. 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). + - name: Create a VMSS from community gallery image. 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). 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 5372b807e16..518b7d2d3ea 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -1145,41 +1145,6 @@ def load_arguments(self, _): c.argument('gallery_unique_name', type=str, help='The unique name of the Shared Gallery.', id_part='child_name_1') - with self.argument_context('sig show-community') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') - c.argument('public_gallery_name', public_gallery_name_type) - - with self.argument_context('sig image-definition show-community') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') - c.argument('public_gallery_name', public_gallery_name_type) - c.argument('gallery_image_name', gallery_image_name_type) - - with self.argument_context('sig image-definition list-community') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') - c.argument('public_gallery_name', public_gallery_name_type) - c.argument('marker', arg_type=marker_type) - c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.') - - with self.argument_context('sig image-version show-community') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') - c.argument('public_gallery_name', public_gallery_name_type) - c.argument('gallery_image_name', gallery_image_name_type) - c.argument('gallery_image_version_name', gallery_image_name_version_type) - - with self.argument_context('sig image-version list-community') as c: - c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') - c.argument('public_gallery_name', public_gallery_name_type) - c.argument('gallery_image_name', gallery_image_name_type) - c.argument('marker', arg_type=marker_type) - c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.') - - with self.argument_context('sig share enable-community') as c: - c.argument('gallery_name', type=str, help='The name of the Shared Image Gallery.', id_part='name') - c.argument('subscription_ids', nargs='+', help='A list of subscription ids to share the gallery.') - c.argument('tenant_ids', nargs='+', help='A list of tenant ids to share the gallery.') - c.argument('op_type', default='EnableCommunity', deprecate_info=c.deprecate(hide=True), - help='distinguish add operation and remove operation') - for scope in ['sig share add', 'sig share remove']: with self.argument_context(scope) as c: c.argument('gallery_name', type=str, help='The name of the Shared Image Gallery.', id_part='name') @@ -1322,6 +1287,47 @@ def load_arguments(self, _): help='Space-separated list of regions and their replica counts. Use `[=][=]` to optionally set the replica count and/or storage account type for each region. ' 'If a replica count is not specified, the default replica count will be used. If a storage account type is not specified, the default storage account type will be used') c.argument('replica_count', help='The default number of replicas to be created per region. To set regional replication counts, use --target-regions', type=int) + + with self.argument_context('sig show-community') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') + c.argument('public_gallery_name', public_gallery_name_type) + + with self.argument_context('sig list-community') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx)) + c.argument('marker', arg_type=marker_type) + c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.') + + with self.argument_context('sig image-definition show-community') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') + c.argument('public_gallery_name', public_gallery_name_type) + c.argument('gallery_image_name', gallery_image_name_type) + + with self.argument_context('sig image-definition list-community') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') + c.argument('public_gallery_name', public_gallery_name_type) + c.argument('marker', arg_type=marker_type) + c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.') + + with self.argument_context('sig image-version show-community') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') + c.argument('public_gallery_name', public_gallery_name_type) + c.argument('gallery_image_name', gallery_image_name_type) + c.argument('gallery_image_version_name', gallery_image_name_version_type) + + with self.argument_context('sig image-version list-community') as c: + c.argument('location', arg_type=get_location_type(self.cli_ctx), id_part='name') + c.argument('public_gallery_name', public_gallery_name_type) + c.argument('gallery_image_name', gallery_image_name_type) + c.argument('marker', arg_type=marker_type) + c.argument('show_next_marker', action='store_true', help='Show nextMarker in result when specified.') + + with self.argument_context('sig share enable-community') as c: + c.argument('gallery_name', type=str, help='The name of the Shared Image Gallery.', id_part='name') + c.argument('subscription_ids', nargs='+', help='A list of subscription ids to share the gallery.') + c.argument('tenant_ids', nargs='+', help='A list of tenant ids to share the gallery.') + c.argument('op_type', default='EnableCommunity', deprecate_info=c.deprecate(hide=True), + help='distinguish add operation and remove operation') + # endregion # region Gallery applications diff --git a/src/azure-cli/azure/cli/command_modules/vm/commands.py b/src/azure-cli/azure/cli/command_modules/vm/commands.py index b25f1081bcc..fdd4d010845 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -546,6 +546,7 @@ def load_command_table(self, _): with self.command_group('sig', community_gallery_sdk, client_factory=cf_community_gallery, operation_group='shared_galleries', min_api='2022-01-03') as g: g.command('show-community', 'get') + g.custom_command('list-community', 'sig_community_gallery_list') with self.command_group('sig image-definition', community_gallery_image_sdk, client_factory=cf_community_gallery_image, operation_group='shared_galleries', min_api='2022-01-03') as g: g.command('show-community', 'get') @@ -577,8 +578,8 @@ def load_command_table(self, _): ) with self.command_group('sig', vm_shared_gallery) as g: g.custom_command('list-shared', 'sig_shared_gallery_list', client_factory=cf_shared_galleries, - is_experimental=True, operation_group='shared_galleries', min_api='2020-09-30') - g.command('show-shared', 'get', is_experimental=True, operation_group='shared_galleries', min_api='2020-09-30') + operation_group='shared_galleries', min_api='2020-09-30') + g.command('show-shared', 'get', operation_group='shared_galleries', min_api='2020-09-30') vm_gallery_sharing_profile = CliCommandType( operations_tmpl=( @@ -590,7 +591,7 @@ def load_command_table(self, _): with self.command_group('sig share', vm_gallery_sharing_profile, client_factory=cf_gallery_sharing_profile, operation_group='shared_galleries', - is_experimental=True, min_api='2020-09-30') as g: + min_api='2020-09-30') as g: g.custom_command('add', 'sig_share_update', supports_no_wait=True) g.custom_command('remove', 'sig_share_update', supports_no_wait=True) g.custom_command('reset', 'sig_share_reset', supports_no_wait=True) @@ -604,8 +605,8 @@ def load_command_table(self, _): operation_group='shared_galleries') with self.command_group('sig image-definition', vm_shared_gallery_image, min_api='2020-09-30', operation_group='shared_galleries', client_factory=cf_shared_gallery_image) as g: - g.custom_command('list-shared', 'sig_shared_image_definition_list', is_experimental=True) - g.command('show-shared', 'get', is_experimental=True) + g.custom_command('list-shared', 'sig_shared_image_definition_list') + g.command('show-shared', 'get') vm_shared_gallery_image_version = CliCommandType( operations_tmpl='azure.mgmt.compute.operations._shared_gallery_image_versions_operations#SharedGalleryImageVers' @@ -615,8 +616,8 @@ def load_command_table(self, _): with self.command_group('sig image-version', vm_shared_gallery_image_version, min_api='2020-09-30', operation_group='shared_galleries', client_factory=cf_shared_gallery_image_version) as g: - g.custom_command('list-shared', 'sig_shared_image_version_list', is_experimental=True) - g.command('show-shared', 'get', is_experimental=True) + g.custom_command('list-shared', 'sig_shared_image_version_list') + g.command('show-shared', 'get') with self.command_group('sig gallery-application', compute_gallery_application_sdk, client_factory=cf_gallery_application, min_api='2021-07-01', operation_group='gallery_applications') as g: g.command('list', 'list_by_gallery') 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 46f7920214f..3f30eb56d25 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -5150,6 +5150,67 @@ def restore_point_collection_update(client, # region Community gallery +def sig_community_gallery_list(cmd, location=None, marker=None, show_next_marker=None): + from ._arg_client import ARGClient, QueryBody + + query_table = 'communitygalleryresources' + query_type = 'microsoft.compute/locations/communitygalleries' + + query = "{}| where type == '{}' ".format(query_table, query_type) + if location: + # Since the location data in table "communitygalleryresources" is in lowercase + # For accurate matching, we also need to convert the location in the query statement to lowercase + query = query + "| where location == '{}' ".format(location.lower()) + query_body = QueryBody(query) + + item_count_per_page = 30 + query_body.options = { + "$top": item_count_per_page + } + + if marker: + query_body.options['$skipToken'] = marker + + query_result = ARGClient(cmd.cli_ctx).send(query_body) + result = _transform_community_gallery_list_output(query_result) + + continuation_token = query_result.get('$skipToken') + + if show_next_marker: + next_marker = {"nextMarker": continuation_token} + result.append(next_marker) + else: + if continuation_token: + logger.warning('Next Marker:') + logger.warning(continuation_token) + + return result + + +def _transform_community_gallery_list_output(result): + + result_data = result.get('data') + if not result_data: + return [] + + output = [] + for data_item in result_data: + from collections import OrderedDict + output_item = OrderedDict() + output_item['id'] = data_item.get('id') + output_item['location'] = data_item.get('location') + output_item['name'] = data_item.get('name') + + properties = data_item.get('properties') + if properties: + output_item['communityMetadata'] = properties.get('communityMetadata', {}) + output_item['uniqueId'] = properties.get('identifier', {}).get('uniqueId') + + output.append(output_item) + + return output + + def sig_community_image_definition_list(client, location, public_gallery_name, marker=None, show_next_marker=None): generator = client.list(location=location, public_gallery_name=public_gallery_name) return get_page_result(generator, marker, show_next_marker) diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml index 3cca76da915..37b1f242547 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_community_gallery_operations.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -g --gallery-name --permissions --publisher-uri --publisher-email --eula --public-name-prefix User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001?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":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-23T16:30:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001","name":"cli_test_community_gallery_operations_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T03:08:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '317' + - '373' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:30:10 GMT + - Wed, 29 Jun 2022 03:08:57 GMT expires: - '-1' pragma: @@ -61,32 +61,32 @@ interactions: ParameterSetName: - -g --gallery-name --permissions --publisher-uri --publisher-email --eula --public-name-prefix User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01 response: body: - string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n + string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYM3HOZ2T4W\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYVRJT6WAGU\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Community\",\r\n \"communityGalleryInfo\": {\r\n \"communityGalleryEnabled\": false,\r\n \"publisherUri\": \"puburi\",\r\n \"publisherContact\": \"abc@123.com\",\r\n \"eula\": - \"eula\",\r\n \"publicNames\": [\r\n \"pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463\"\r\n + \"eula\",\r\n \"publicNames\": [\r\n \"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48\"\r\n \ ]\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/CentralUSEUAP/capsOperations/67e1451d-8395-4885-80f3-aec8e19c33c2?api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/3fa361dd-6ef0-4f3b-9619-6287c7de96d6?api-version=2021-10-01 cache-control: - no-cache content-length: - - '788' + - '816' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:30:19 GMT + - Wed, 29 Jun 2022 03:09:08 GMT expires: - '-1' pragma: @@ -119,14 +119,14 @@ interactions: ParameterSetName: - -g --gallery-name --permissions --publisher-uri --publisher-email --eula --public-name-prefix User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/67e1451d-8395-4885-80f3-aec8e19c33c2?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/3fa361dd-6ef0-4f3b-9619-6287c7de96d6?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:30:17.7112736+00:00\",\r\n \"endTime\": - \"2022-06-23T16:30:17.8050275+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"67e1451d-8395-4885-80f3-aec8e19c33c2\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:09:07.3045454+00:00\",\r\n \"endTime\": + \"2022-06-29T03:09:08.9919626+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"3fa361dd-6ef0-4f3b-9619-6287c7de96d6\"\r\n}" headers: cache-control: - no-cache @@ -135,7 +135,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:30:49 GMT + - Wed, 29 Jun 2022 03:09:39 GMT expires: - '-1' pragma: @@ -145,10 +145,6 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: @@ -170,30 +166,30 @@ interactions: ParameterSetName: - -g --gallery-name --permissions --publisher-uri --publisher-email --eula --public-name-prefix User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01 response: body: - string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n + string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYM3HOZ2T4W\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYVRJT6WAGU\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Community\",\r\n \"communityGalleryInfo\": {\r\n \"communityGalleryEnabled\": false,\r\n \"publisherUri\": \"puburi\",\r\n \"publisherContact\": \"abc@123.com\",\r\n \"eula\": - \"eula\",\r\n \"publicNames\": [\r\n \"pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463\"\r\n + \"eula\",\r\n \"publicNames\": [\r\n \"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48\"\r\n \ ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '789' + - '817' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:30:49 GMT + - Wed, 29 Jun 2022 03:09:39 GMT expires: - '-1' pragma: @@ -203,10 +199,6 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: @@ -232,25 +224,25 @@ interactions: ParameterSetName: - -r -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/share?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/share?api-version=2022-01-03 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/02fba2f5-7495-48a9-a2ea-bb5fb2a84d2e?api-version=2022-01-03 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/b3f4957f-76db-4f70-af02-09c20b66b215?api-version=2022-01-03 cache-control: - no-cache content-length: - '0' date: - - Thu, 23 Jun 2022 16:30:51 GMT + - Wed, 29 Jun 2022 03:09:41 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/02fba2f5-7495-48a9-a2ea-bb5fb2a84d2e?monitor=true&api-version=2022-01-03 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/b3f4957f-76db-4f70-af02-09c20b66b215?monitor=true&api-version=2022-01-03 pragma: - no-cache server: @@ -281,14 +273,14 @@ interactions: ParameterSetName: - -r -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/02fba2f5-7495-48a9-a2ea-bb5fb2a84d2e?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/b3f4957f-76db-4f70-af02-09c20b66b215?api-version=2022-01-03 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:30:51.8365285+00:00\",\r\n \"endTime\": - \"2022-06-23T16:30:53.3521604+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"02fba2f5-7495-48a9-a2ea-bb5fb2a84d2e\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:09:42.0077252+00:00\",\r\n \"endTime\": + \"2022-06-29T03:09:45.7108445+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"b3f4957f-76db-4f70-af02-09c20b66b215\"\r\n}" headers: cache-control: - no-cache @@ -297,7 +289,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:31:21 GMT + - Wed, 29 Jun 2022 03:10:12 GMT expires: - '-1' pragma: @@ -332,9 +324,9 @@ interactions: ParameterSetName: - -r -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/02fba2f5-7495-48a9-a2ea-bb5fb2a84d2e?monitor=true&api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/b3f4957f-76db-4f70-af02-09c20b66b215?monitor=true&api-version=2022-01-03 response: body: string: '' @@ -344,7 +336,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Jun 2022 16:31:22 GMT + - Wed, 29 Jun 2022 03:10:12 GMT expires: - '-1' pragma: @@ -375,21 +367,21 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001?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":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-23T16:30:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001","name":"cli_test_community_gallery_operations_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T03:08:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '317' + - '373' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:31:23 GMT + - Wed, 29 Jun 2022 03:10:13 GMT expires: - '-1' pragma: @@ -423,12 +415,12 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004?api-version=2021-10-01 response: body: - string: "{\r\n \"name\": \"image000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004\",\r\n + string: "{\r\n \"name\": \"image000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004\",\r\n \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"architecture\": \"x64\",\r\n \"osType\": \"Linux\",\r\n \"osState\": @@ -437,15 +429,15 @@ interactions: \"Creating\"\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/6cbcf0c7-8164-44bc-864d-a9a5d3fe32f3?api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/25c7c478-7064-49fe-8e57-3ad91729c669?api-version=2021-10-01 cache-control: - no-cache content-length: - - '578' + - '606' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:31:32 GMT + - Wed, 29 Jun 2022 03:10:20 GMT expires: - '-1' pragma: @@ -460,7 +452,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImage3Min;149,Microsoft.Compute/CreateUpdateGalleryImage30Min;749 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -478,14 +470,14 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/6cbcf0c7-8164-44bc-864d-a9a5d3fe32f3?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/25c7c478-7064-49fe-8e57-3ad91729c669?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:31:30.5711025+00:00\",\r\n \"endTime\": - \"2022-06-23T16:31:30.6492276+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"6cbcf0c7-8164-44bc-864d-a9a5d3fe32f3\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:10:19.1639637+00:00\",\r\n \"endTime\": + \"2022-06-29T03:10:19.4452384+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"25c7c478-7064-49fe-8e57-3ad91729c669\"\r\n}" headers: cache-control: - no-cache @@ -494,7 +486,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:02 GMT + - Wed, 29 Jun 2022 03:10:50 GMT expires: - '-1' pragma: @@ -504,10 +496,6 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: @@ -529,12 +517,12 @@ interactions: ParameterSetName: - -g --gallery-name --gallery-image-definition --os-type -p -f -s User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004?api-version=2021-10-01 response: body: - string: "{\r\n \"name\": \"image000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004\",\r\n + string: "{\r\n \"name\": \"image000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004\",\r\n \ \"type\": \"Microsoft.Compute/galleries/images\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \ \"architecture\": \"x64\",\r\n \"osType\": \"Linux\",\r\n \"osState\": @@ -545,11 +533,11 @@ interactions: cache-control: - no-cache content-length: - - '579' + - '607' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:02 GMT + - Wed, 29 Jun 2022 03:10:50 GMT expires: - '-1' pragma: @@ -559,14 +547,10 @@ interactions: - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryImage3Min;596,Microsoft.Compute/GetGalleryImage30Min;2996 + - Microsoft.Compute/GetGalleryImage3Min;595,Microsoft.Compute/GetGalleryImage30Min;2995 status: code: 200 message: OK @@ -584,29 +568,27 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001?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":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-23T16:30:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001","name":"cli_test_community_gallery_operations_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T03:08:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '317' + - '373' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:03 GMT + - Wed, 29 Jun 2022 03:10:51 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -689,11 +671,11 @@ interactions: content-type: - text/plain; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:04 GMT + - Wed, 29 Jun 2022 03:10:53 GMT etag: - W/"41b202f4dc5098d126019dc00721a4c5e30df0c5196794514fadc3710ee2a5cb" expires: - - Thu, 23 Jun 2022 16:37:04 GMT + - Wed, 29 Jun 2022 03:15:53 GMT source-age: - '0' strict-transport-security: @@ -703,21 +685,21 @@ interactions: via: - 1.1 varnish x-cache: - - HIT + - MISS x-cache-hits: - - '1' + - '0' x-content-type-options: - nosniff x-fastly-request-id: - - aa089ae96b91dd14484f24bafc05feec052a1051 + - 4786b0cf2f2663392eda53ea711e5729d6b9a505 x-frame-options: - deny x-github-request-id: - - 21B0:36D2:2D43B3:3CFF7D:62B40BF8 + - D4A6:1EB6:14C9A9:2115DA:62BBC2BD x-served-by: - - cache-qpg1246-QPG + - cache-hkg17921-HKG x-timer: - - S1656001924.176009,VS0,VE278 + - S1656472253.992936,VS0,VE324 x-xss-protection: - 1; mode=block status: @@ -737,14 +719,13 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions?$top=1&$orderby=name%20desc&api-version=2022-03-01 response: body: - string: "[\r\n {\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202206150\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202206150\"\r\n - \ }\r\n]" + string: "[\r\n {\r\n \"name\": \"18.04.202206230\",\r\n \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202206230\",\r\n + \ \"location\": \"CentralUSEUAP\"\r\n }\r\n]" headers: cache-control: - no-cache @@ -753,7 +734,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:06 GMT + - Wed, 29 Jun 2022 03:10:55 GMT expires: - '-1' pragma: @@ -788,9 +769,9 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202206150?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/centraluseuap/publishers/Canonical/artifacttypes/vmimage/offers/UbuntuServer/skus/18.04-LTS/versions/18.04.202206230?api-version=2022-03-01 response: body: string: "{\r\n \"properties\": {\r\n \"hyperVGeneration\": \"V1\",\r\n \"architecture\": @@ -804,8 +785,8 @@ interactions: \ \"value\": \"False\"\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\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202206150\",\r\n - \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202206150\"\r\n}" + \ },\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"18.04.202206230\",\r\n + \ \"id\": \"/Subscriptions/00000000-0000-0000-0000-000000000000/Providers/Microsoft.Compute/Locations/CentralUSEUAP/Publishers/Canonical/ArtifactTypes/VMImage/Offers/UbuntuServer/Skus/18.04-LTS/Versions/18.04.202206230\"\r\n}" headers: cache-control: - no-cache @@ -814,7 +795,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:08 GMT + - Wed, 29 Jun 2022 03:10:58 GMT expires: - '-1' pragma: @@ -849,9 +830,9 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/virtualNetworks?api-version=2018-01-01 response: body: string: '{"value":[]}' @@ -863,7 +844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:10 GMT + - Wed, 29 Jun 2022 03:10:59 GMT expires: - '-1' pragma: @@ -893,21 +874,21 @@ interactions: ["Microsoft.Network/virtualNetworks/vm000002VNET", "Microsoft.Network/networkSecurityGroups/vm000002NSG", "Microsoft.Network/publicIpAddresses/vm000002PublicIP"], "properties": {"ipConfigurations": [{"name": "ipconfigvm000002", "properties": {"privateIPAllocationMethod": "Dynamic", - "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, - "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"}}}], - "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"}}}, + "subnet": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET/subnets/vm000002Subnet"}, + "publicIPAddress": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"}}}], + "networkSecurityGroup": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"}}}, {"apiVersion": "2022-03-01", "type": "Microsoft.Compute/virtualMachines", "name": "vm000002", "location": "centraluseuap", "tags": {}, "dependsOn": ["Microsoft.Network/networkInterfaces/vm000002VMNic"], "properties": {"hardwareProfile": {"vmSize": "Standard_DS1_v2"}, "networkProfile": - {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic", + {"networkInterfaces": [{"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic", "properties": {"deleteOption": null}}]}, "storageProfile": {"osDisk": {"createOption": "fromImage", "name": null, "caching": "ReadWrite", "managedDisk": {"storageAccountType": null}}, "imageReference": {"publisher": "Canonical", "offer": "UbuntuServer", "sku": "18.04-LTS", "version": "latest"}}, "osProfile": {"computerName": "vm000002", "adminUsername": "gallerytest", "linuxConfiguration": {"disablePasswordAuthentication": - true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjehmBZaqPsS1CmwGlcJjueJ1Hc94DJcQmhtywQM+hS9MT4NNYGBo6/Vgzydw8y4/Ex9zD40yIzp90sNm+6pDaoMCQGD4P+YY/TD0BnJYjZsilRefyPK0KC4h4wnJJQ21jrbhgx6svONrDe1rQyk8EzM/O10BQhQw+/nP/rdYPttF8ei4DeaBSVZ3AxVOLT75rCBKXlUuYsBI0J8hTP1VirjIBvzqEbVa03Gt6cvLg8sCLFFkddwt1g9silmt5hSPuBdv+svkHRCDAYLR1pm3KsG7cN7tdqO/VeCbTYq5kbCaSew/EmlVXEpDvFB1HTcyw+R3xDn2mqGmSP8rWQppd", - "path": "/home/gallerytest/.ssh/authorized_keys"}]}}}}}], "outputs": {}}, "parameters": - {}, "mode": "incremental"}}' + true, "ssh": {"publicKeys": [{"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\n", "path": "/home/gallerytest/.ssh/authorized_keys"}]}}}}}], + "outputs": {}}, "parameters": {}, "mode": "incremental"}}' headers: Accept: - application/json @@ -918,29 +899,29 @@ interactions: Connection: - keep-alive Content-Length: - - '3308' + - '3618' Content-Type: - application/json ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-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 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001/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_O8id7qxbdMPgEFTpMzFUod2ZvzV3FHPp","name":"vm_deploy_O8id7qxbdMPgEFTpMzFUod2ZvzV3FHPp","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4714937233815512345","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-06-23T16:32:18.0236058Z","duration":"PT0.0004502S","correlationId":"9b698ff0-eb6b-4281-9fd8-13c10c38682d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["centraluseuap"]},{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/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/cli_test_community_gallery_operations_000001/providers/Microsoft.Resources/deployments/vm_deploy_gvpIV5Ctdw4NfdHYc8O0nmuvD9l9VU6S","name":"vm_deploy_gvpIV5Ctdw4NfdHYc8O0nmuvD9l9VU6S","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6141880645894996498","parameters":{},"mode":"Incremental","provisioningState":"Accepted","timestamp":"2022-06-29T03:11:07.9431203Z","duration":"PT0.0004338S","correlationId":"3349a5f2-966e-4469-87e6-58faaf43e536","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["centraluseuap"]},{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}]}}' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/vm_deploy_O8id7qxbdMPgEFTpMzFUod2ZvzV3FHPp/operationStatuses/08585456049506230341?api-version=2021-04-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Resources/deployments/vm_deploy_gvpIV5Ctdw4NfdHYc8O0nmuvD9l9VU6S/operationStatuses/08585451346215468231?api-version=2021-04-01 cache-control: - no-cache content-length: - - '2424' + - '2620' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:18 GMT + - Wed, 29 Jun 2022 03:11:08 GMT expires: - '-1' pragma: @@ -968,9 +949,9 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585456049506230341?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585451346215468231?api-version=2021-04-01 response: body: string: '{"status":"Running"}' @@ -982,7 +963,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:32:50 GMT + - Wed, 29 Jun 2022 03:11:40 GMT expires: - '-1' pragma: @@ -1010,9 +991,51 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585456049506230341?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585451346215468231?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: + - Wed, 29 Jun 2022 03:12:10 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - vm create + Connection: + - keep-alive + ParameterSetName: + - -g -n --image --admin-username --generate-ssh-keys --nsg-rule + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Resources/deployments/mock-deployment/operationStatuses/08585451346215468231?api-version=2021-04-01 response: body: string: '{"status":"Succeeded"}' @@ -1024,7 +1047,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:33:20 GMT + - Wed, 29 Jun 2022 03:12:40 GMT expires: - '-1' pragma: @@ -1052,21 +1075,21 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001/providers/Microsoft.Resources/deployments/mock-deployment?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001/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_O8id7qxbdMPgEFTpMzFUod2ZvzV3FHPp","name":"vm_deploy_O8id7qxbdMPgEFTpMzFUod2ZvzV3FHPp","type":"Microsoft.Resources/deployments","properties":{"templateHash":"4714937233815512345","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-06-23T16:33:09.5012553Z","duration":"PT51.4780997S","correlationId":"9b698ff0-eb6b-4281-9fd8-13c10c38682d","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["centraluseuap"]},{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/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/cli_test_community_gallery_operations_000001/providers/Microsoft.Resources/deployments/vm_deploy_gvpIV5Ctdw4NfdHYc8O0nmuvD9l9VU6S","name":"vm_deploy_gvpIV5Ctdw4NfdHYc8O0nmuvD9l9VU6S","type":"Microsoft.Resources/deployments","properties":{"templateHash":"6141880645894996498","parameters":{},"mode":"Incremental","provisioningState":"Succeeded","timestamp":"2022-06-29T03:12:33.8827147Z","duration":"PT1M25.9400282S","correlationId":"3349a5f2-966e-4469-87e6-58faaf43e536","providers":[{"namespace":"Microsoft.Network","resourceTypes":[{"resourceType":"virtualNetworks","locations":["centraluseuap"]},{"resourceType":"networkSecurityGroups","locations":["centraluseuap"]},{"resourceType":"publicIPAddresses","locations":["centraluseuap"]},{"resourceType":"networkInterfaces","locations":["centraluseuap"]}]},{"namespace":"Microsoft.Compute","resourceTypes":[{"resourceType":"virtualMachines","locations":["centraluseuap"]}]}],"dependencies":[{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET","resourceType":"Microsoft.Network/virtualNetworks","resourceName":"vm000002VNET"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG","resourceType":"Microsoft.Network/networkSecurityGroups","resourceName":"vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP","resourceType":"Microsoft.Network/publicIPAddresses","resourceName":"vm000002PublicIP"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"},{"dependsOn":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic","resourceType":"Microsoft.Network/networkInterfaces","resourceName":"vm000002VMNic"}],"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002","resourceType":"Microsoft.Compute/virtualMachines","resourceName":"vm000002"}],"outputs":{},"outputResources":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP"},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/virtualNetworks/vm000002VNET"}]}}' headers: cache-control: - no-cache content-length: - - '3219' + - '3557' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:33:20 GMT + - Wed, 29 Jun 2022 03:12:41 GMT expires: - '-1' pragma: @@ -1094,64 +1117,64 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002?$expand=instanceView&api-version=2022-03-01 response: 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 + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"ecf101e6-0131-4422-9f17-d47bb2f919c8\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"b1d57301-5289-494d-845e-06ab0f793e5f\",\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.202206150\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000002_disk1_e9dfdb1b960b4e24b8a0fdd1ff953387\",\r\n + \"18.04.202206230\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\",\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_e9dfdb1b960b4e24b8a0fdd1ff953387\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/disks/vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\"\r\n \ },\r\n \"deleteOption\": \"Detach\",\r\n \"diskSizeGB\": 30\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000002\",\r\n \"adminUsername\": \"gallerytest\",\r\n \ \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \ \"path\": \"/home/gallerytest/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjehmBZaqPsS1CmwGlcJjueJ1Hc94DJcQmhtywQM+hS9MT4NNYGBo6/Vgzydw8y4/Ex9zD40yIzp90sNm+6pDaoMCQGD4P+YY/TD0BnJYjZsilRefyPK0KC4h4wnJJQ21jrbhgx6svONrDe1rQyk8EzM/O10BQhQw+/nP/rdYPttF8ei4DeaBSVZ3AxVOLT75rCBKXlUuYsBI0J8hTP1VirjIBvzqEbVa03Gt6cvLg8sCLFFkddwt1g9silmt5hSPuBdv+svkHRCDAYLR1pm3KsG7cN7tdqO/VeCbTYq5kbCaSew/EmlVXEpDvFB1HTcyw+R3xDn2mqGmSP8rWQppd\"\r\n - \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n - \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": - false\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 + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true,\r\n \"patchSettings\": {\r\n \"patchMode\": + \"ImageDefault\",\r\n \"assessmentMode\": \"ImageDefault\"\r\n },\r\n + \ \"enableVMAgentPlatformUpdates\": false\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/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.8.0.7\",\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-06-23T16:33:14+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": - []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000002_disk1_e9dfdb1b960b4e24b8a0fdd1ff953387\",\r\n + \"2022-06-29T03:12:36+00:00\"\r\n }\r\n ],\r\n \"extensionHandlers\": + []\r\n },\r\n \"disks\": [\r\n {\r\n \"name\": \"vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\",\r\n \ \"statuses\": [\r\n {\r\n \"code\": \"ProvisioningState/succeeded\",\r\n \ \"level\": \"Info\",\r\n \"displayStatus\": \"Provisioning - succeeded\",\r\n \"time\": \"2022-06-23T16:32:49.5317064+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-06-29T03:11:50.3937099+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-06-23T16:33:01.0317726+00:00\"\r\n + succeeded\",\r\n \"time\": \"2022-06-29T03:12:25.5188454+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-06-23T16:32:47.6723149+00:00\"\r\n + \ }\r\n ]\r\n },\r\n \"timeCreated\": \"2022-06-29T03:11:45.9093382+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '3882' + - '4164' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:33:21 GMT + - Wed, 29 Jun 2022 03:12:42 GMT expires: - '-1' pragma: @@ -1186,44 +1209,44 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic?api-version=2018-01-01 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/\\\"dc980adf-3a2e-4d29-b560-5df8e11ab01d\\\"\",\r\n \"tags\": + string: "{\r\n \"name\": \"vm000002VMNic\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\",\r\n + \ \"etag\": \"W/\\\"2c2ca4db-a45e-4c48-80e4-f00ede5be389\\\"\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n - \ \"resourceGuid\": \"583f0274-773e-48cd-bd4e-ed0b02858e52\",\r\n \"ipConfigurations\": + \ \"resourceGuid\": \"692ac14e-5252-43c8-b6c0-48aadd9766ce\",\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/\\\"dc980adf-3a2e-4d29-b560-5df8e11ab01d\\\"\",\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\",\r\n + \ \"etag\": \"W/\\\"2c2ca4db-a45e-4c48-80e4-f00ede5be389\\\"\",\r\n \ \"type\": \"Microsoft.Network/networkInterfaces/ipConfigurations\",\r\n \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \ \"privateIPAddress\": \"10.0.0.4\",\r\n \"privateIPAllocationMethod\": - \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP\"\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 + \"Dynamic\",\r\n \"publicIPAddress\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP\"\r\n + \ },\r\n \"subnet\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/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\": - \"1hcrub341dwenpoyspbd10pqtg.cdmx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": - \"60-45-BD-75-EE-C3\",\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 + \"ben4tnzokvoubeelqmmvc5lnxh.cdmx.internal.cloudapp.net\"\r\n },\r\n \"macAddress\": + \"60-45-BD-76-84-4A\",\r\n \"enableIPForwarding\": false,\r\n \"networkSecurityGroup\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkSecurityGroups/vm000002NSG\"\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/vm000002\"\r\n + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\r\n \ }\r\n },\r\n \"type\": \"Microsoft.Network/networkInterfaces\",\r\n \ \"location\": \"centraluseuap\"\r\n}" headers: cache-control: - no-cache content-length: - - '2230' + - '2398' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:33:23 GMT + - Wed, 29 Jun 2022 03:12:44 GMT etag: - - W/"dc980adf-3a2e-4d29-b560-5df8e11ab01d" + - W/"2c2ca4db-a45e-4c48-80e4-f00ede5be389" expires: - '-1' pragma: @@ -1240,10 +1263,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ceeb9bd9-dd94-499b-873c-0126423ad764 + - 15d87f31-affd-40aa-9a13-0a90f7f1d67c status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -1258,31 +1281,31 @@ interactions: ParameterSetName: - -g -n --image --admin-username --generate-ssh-keys --nsg-rule User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-network/20.0.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP?api-version=2018-01-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP?api-version=2018-01-01 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/\\\"7261979e-6ee9-4ffd-bee8-93aaba858b12\\\"\",\r\n \"location\": + string: "{\r\n \"name\": \"vm000002PublicIP\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/publicIPAddresses/vm000002PublicIP\",\r\n + \ \"etag\": \"W/\\\"c15e3707-daab-4c70-a572-80afb244061a\\\"\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": - \"Succeeded\",\r\n \"resourceGuid\": \"2669ab67-75b1-4dd9-b594-47c393773205\",\r\n - \ \"ipAddress\": \"20.45.239.48\",\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 + \"Succeeded\",\r\n \"resourceGuid\": \"4acc0965-eb91-4dc5-82e9-ad8cb93eabfc\",\r\n + \ \"ipAddress\": \"104.208.54.153\",\r\n \"publicIPAddressVersion\": + \"IPv4\",\r\n \"publicIPAllocationMethod\": \"Dynamic\",\r\n \"idleTimeoutInMinutes\": + 4,\r\n \"ipTags\": [],\r\n \"ipConfiguration\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic/ipConfigurations/ipconfigvm000002\"\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: - - '905' + - '963' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:33:23 GMT + - Wed, 29 Jun 2022 03:12:44 GMT etag: - - W/"7261979e-6ee9-4ffd-bee8-93aaba858b12" + - W/"c15e3707-daab-4c70-a572-80afb244061a" expires: - '-1' pragma: @@ -1299,10 +1322,10 @@ interactions: x-content-type-options: - nosniff x-ms-arm-service-request-id: - - ac9893a0-7853-44fa-8843-a25292cb7794 + - 8f22bb78-fcd2-47b3-99c7-89287e0448fe status: code: 200 - message: OK + message: '' - request: body: null headers: @@ -1319,25 +1342,25 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002/deallocate?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002/deallocate?api-version=2022-03-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/b09d601e-ae42-4bda-b830-3b2ec1e9eb2f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/9b962103-c910-441d-8faf-febb88c2fd92?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 cache-control: - no-cache content-length: - '0' date: - - Thu, 23 Jun 2022 16:33:25 GMT + - Wed, 29 Jun 2022 03:12:46 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/b09d601e-ae42-4bda-b830-3b2ec1e9eb2f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&monitor=true&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/9b962103-c910-441d-8faf-febb88c2fd92?p=2745cc42-2cf3-41b7-830c-129b79fbec46&monitor=true&api-version=2022-03-01 pragma: - no-cache server: @@ -1368,13 +1391,13 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/b09d601e-ae42-4bda-b830-3b2ec1e9eb2f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/9b962103-c910-441d-8faf-febb88c2fd92?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:33:25.9225981+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"b09d601e-ae42-4bda-b830-3b2ec1e9eb2f\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:12:46.1283109+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"9b962103-c910-441d-8faf-febb88c2fd92\"\r\n}" headers: cache-control: - no-cache @@ -1383,7 +1406,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:33:35 GMT + - Wed, 29 Jun 2022 03:12:56 GMT expires: - '-1' pragma: @@ -1400,7 +1423,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29997 + - Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29998 status: code: 200 message: OK @@ -1418,14 +1441,14 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/b09d601e-ae42-4bda-b830-3b2ec1e9eb2f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/9b962103-c910-441d-8faf-febb88c2fd92?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:33:25.9225981+00:00\",\r\n \"endTime\": - \"2022-06-23T16:34:01.2978469+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"b09d601e-ae42-4bda-b830-3b2ec1e9eb2f\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:12:46.1283109+00:00\",\r\n \"endTime\": + \"2022-06-29T03:13:23.8627981+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"9b962103-c910-441d-8faf-febb88c2fd92\"\r\n}" headers: cache-control: - no-cache @@ -1434,7 +1457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:34:06 GMT + - Wed, 29 Jun 2022 03:13:32 GMT expires: - '-1' pragma: @@ -1451,7 +1474,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29996 + - Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29994 status: code: 200 message: OK @@ -1469,9 +1492,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/b09d601e-ae42-4bda-b830-3b2ec1e9eb2f?p=2745cc42-2cf3-41b7-830c-129b79fbec46&monitor=true&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/9b962103-c910-441d-8faf-febb88c2fd92?p=2745cc42-2cf3-41b7-830c-129b79fbec46&monitor=true&api-version=2022-03-01 response: body: string: '' @@ -1481,7 +1504,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Jun 2022 16:34:07 GMT + - Wed, 29 Jun 2022 03:13:32 GMT expires: - '-1' pragma: @@ -1494,7 +1517,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14995,Microsoft.Compute/GetOperation30Min;29995 + - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29993 status: code: 200 message: OK @@ -1514,9 +1537,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002/generalize?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002/generalize?api-version=2022-03-01 response: body: string: '' @@ -1526,7 +1549,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Jun 2022 16:35:42 GMT + - Wed, 29 Jun 2022 03:13:34 GMT expires: - '-1' pragma: @@ -1559,46 +1582,46 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002?api-version=2022-03-01 response: 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 + string: "{\r\n \"name\": \"vm000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002\",\r\n \ \"type\": \"Microsoft.Compute/virtualMachines\",\r\n \"location\": \"centraluseuap\",\r\n - \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"ecf101e6-0131-4422-9f17-d47bb2f919c8\",\r\n + \ \"tags\": {},\r\n \"properties\": {\r\n \"vmId\": \"b1d57301-5289-494d-845e-06ab0f793e5f\",\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.202206150\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": - \"Linux\",\r\n \"name\": \"vm000002_disk1_e9dfdb1b960b4e24b8a0fdd1ff953387\",\r\n + \"18.04.202206230\"\r\n },\r\n \"osDisk\": {\r\n \"osType\": + \"Linux\",\r\n \"name\": \"vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\",\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_e9dfdb1b960b4e24b8a0fdd1ff953387\"\r\n + \ \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/disks/vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\"\r\n \ },\r\n \"deleteOption\": \"Detach\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"osProfile\": {\r\n \"computerName\": \"vm000002\",\r\n \ \"adminUsername\": \"gallerytest\",\r\n \"linuxConfiguration\": {\r\n \"disablePasswordAuthentication\": true,\r\n \"ssh\": {\r\n \"publicKeys\": [\r\n {\r\n \"path\": \"/home/gallerytest/.ssh/authorized_keys\",\r\n \"keyData\": - \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDjehmBZaqPsS1CmwGlcJjueJ1Hc94DJcQmhtywQM+hS9MT4NNYGBo6/Vgzydw8y4/Ex9zD40yIzp90sNm+6pDaoMCQGD4P+YY/TD0BnJYjZsilRefyPK0KC4h4wnJJQ21jrbhgx6svONrDe1rQyk8EzM/O10BQhQw+/nP/rdYPttF8ei4DeaBSVZ3AxVOLT75rCBKXlUuYsBI0J8hTP1VirjIBvzqEbVa03Gt6cvLg8sCLFFkddwt1g9silmt5hSPuBdv+svkHRCDAYLR1pm3KsG7cN7tdqO/VeCbTYq5kbCaSew/EmlVXEpDvFB1HTcyw+R3xDn2mqGmSP8rWQppd\"\r\n - \ }\r\n ]\r\n },\r\n \"provisionVMAgent\": - true,\r\n \"patchSettings\": {\r\n \"patchMode\": \"ImageDefault\",\r\n - \ \"assessmentMode\": \"ImageDefault\"\r\n },\r\n \"enableVMAgentPlatformUpdates\": - false\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-06-23T16:32:47.6723149+00:00\"\r\n + \"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDdfdN+YWbkBS84r36yJbgfTI+Gx1W/ErinzCGvXBeO0S8F8JBc45BGTSaNmgOiqVMef3L9Dne7xUv6CwK+NaPRF23B2Sfv1VT1RWjKzgsgLAGiMvMuXA8/BfnKyQU43P6ImgXW/89E8OE9tS2TYLWiSSOjSTiCDnH+bJOw0Gqb25CLhZiahL1lS8MPuZHQaLa71GGUJS93GeBBF6eM2aFKitdFif38RsHxwY/aLlKhjwuy0XPI/4HcIHJR9uyEiFsPQXZMbFPwfvTWyRQDqS0KfxgFXtoVQgaNq74zJv94JdqDykoXYrempJU33jCC06vi39u+xZHAdAagp6e8z/WQc7fIPEOoKqNBKO3UhjXfLfHsxM9QvEiE2kL1xBekS9XrzqSvYZBi4tiSiLAYajOdI5dlv9HgvRTdCtnfF6v8iVGpwql/B1OTOn/A9uCmRIu3o9aMjsQoegqGX6e+h7omfVaExdClXOrW1Qi5l9mUSDLJgsGm1sT9nLaVJlPotFM= + Zhou.Xing@microsoft.com\\n\"\r\n }\r\n ]\r\n },\r\n + \ \"provisionVMAgent\": true,\r\n \"patchSettings\": {\r\n \"patchMode\": + \"ImageDefault\",\r\n \"assessmentMode\": \"ImageDefault\"\r\n },\r\n + \ \"enableVMAgentPlatformUpdates\": false\r\n },\r\n \"secrets\": + [],\r\n \"allowExtensionOperations\": true,\r\n \"requireGuestProvisionSignal\": + true\r\n },\r\n \"networkProfile\": {\"networkInterfaces\":[{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Network/networkInterfaces/vm000002VMNic\"}]},\r\n + \ \"provisioningState\": \"Succeeded\",\r\n \"timeCreated\": \"2022-06-29T03:11:45.9093382+00:00\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '2507' + - '2789' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:35:45 GMT + - Wed, 29 Jun 2022 03:13:35 GMT expires: - '-1' pragma: @@ -1615,7 +1638,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/LowCostGet3Min;3994,Microsoft.Compute/LowCostGet30Min;31995 + - Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31996 status: code: 200 message: OK @@ -1633,29 +1656,27 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001?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":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-23T16:30:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001","name":"cli_test_community_gallery_operations_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T03:08:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '317' + - '373' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:35:46 GMT + - Wed, 29 Jun 2022 03:13:36 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff status: @@ -1663,7 +1684,7 @@ interactions: message: OK - request: body: '{"location": "centraluseuap", "tags": {}, "properties": {"sourceVirtualMachine": - {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002"}, + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/virtualMachines/vm000002"}, "hyperVGeneration": "V1"}}' headers: Accept: @@ -1675,24 +1696,24 @@ interactions: Connection: - keep-alive Content-Length: - - '255' + - '283' Content-Type: - application/json ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/images/managedImage1?api-version=2022-03-01 response: body: - string: "{\r\n \"name\": \"managedImage1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1\",\r\n + string: "{\r\n \"name\": \"managedImage1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/images/managedImage1\",\r\n \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/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_e9dfdb1b960b4e24b8a0fdd1ff953387\"\r\n + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/disks/vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\"\r\n \ },\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"hyperVGeneration\": \"V1\"\r\n }\r\n}" @@ -1700,15 +1721,15 @@ interactions: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/d1aa13a0-deb0-4a45-8505-731c900f541c?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/25e41f50-92d5-417f-b0db-c116dc0d0748?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 cache-control: - no-cache content-length: - - '995' + - '1079' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:35:54 GMT + - Wed, 29 Jun 2022 03:13:44 GMT expires: - '-1' pragma: @@ -1723,7 +1744,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateImages3Min;39,Microsoft.Compute/CreateImages30Min;199 x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' status: code: 201 message: Created @@ -1741,14 +1762,14 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/d1aa13a0-deb0-4a45-8505-731c900f541c?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/operations/25e41f50-92d5-417f-b0db-c116dc0d0748?p=2745cc42-2cf3-41b7-830c-129b79fbec46&api-version=2022-03-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:35:53.2054604+00:00\",\r\n \"endTime\": - \"2022-06-23T16:35:58.3461531+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"d1aa13a0-deb0-4a45-8505-731c900f541c\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:13:43.0347097+00:00\",\r\n \"endTime\": + \"2022-06-29T03:13:48.5347294+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"25e41f50-92d5-417f-b0db-c116dc0d0748\"\r\n}" headers: cache-control: - no-cache @@ -1757,7 +1778,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:36:24 GMT + - Wed, 29 Jun 2022 03:14:15 GMT expires: - '-1' pragma: @@ -1774,7 +1795,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29992 + - Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29991 status: code: 200 message: OK @@ -1792,18 +1813,18 @@ interactions: ParameterSetName: - -g -n --source User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1?api-version=2022-03-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/images/managedImage1?api-version=2022-03-01 response: body: - string: "{\r\n \"name\": \"managedImage1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1\",\r\n + string: "{\r\n \"name\": \"managedImage1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/images/managedImage1\",\r\n \ \"type\": \"Microsoft.Compute/images\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"sourceVirtualMachine\": {\r\n - \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/virtualMachines/vm000002\"\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/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_e9dfdb1b960b4e24b8a0fdd1ff953387\"\r\n + 30,\r\n \"managedDisk\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/disks/vm000002_disk1_a4f6c30286514dd199eaf382e21f0a4d\"\r\n \ },\r\n \"caching\": \"ReadWrite\",\r\n \"storageAccountType\": \"Premium_LRS\"\r\n },\r\n \"dataDisks\": []\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"hyperVGeneration\": \"V1\"\r\n }\r\n}" @@ -1811,11 +1832,11 @@ interactions: cache-control: - no-cache content-length: - - '1023' + - '1107' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:36:24 GMT + - Wed, 29 Jun 2022 03:14:15 GMT expires: - '-1' pragma: @@ -1851,21 +1872,21 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_community_gallery_operations_000001?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":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-23T16:30:07Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001","name":"cli_test_community_gallery_operations_000001","type":"Microsoft.Resources/resourceGroups","location":"centraluseuap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T03:08:51Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '317' + - '373' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:36:26 GMT + - Wed, 29 Jun 2022 03:14:16 GMT expires: - '-1' pragma: @@ -1882,7 +1903,7 @@ interactions: - request: body: '{"location": "centraluseuap", "tags": {}, "properties": {"publishingProfile": {"targetRegions": [{"name": "centraluseuap"}], "replicaCount": 1}, "storageProfile": - {"source": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/images/managedImage1"}}}}' + {"source": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/images/managedImage1"}}}}' headers: Accept: - application/json @@ -1893,39 +1914,39 @@ interactions: Connection: - keep-alive Content-Length: - - '319' + - '347' Content-Type: - application/json ParameterSetName: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2?api-version=2021-10-01 response: body: - string: "{\r\n \"name\": \"1.1.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2\",\r\n + string: "{\r\n \"name\": \"1.1.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2\",\r\n \ \"type\": \"Microsoft.Compute/galleries/images/versions\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Central US EUAP\",\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-06-23T16:36:34.3226798+00:00\",\r\n + \ \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2022-06-29T03:14:26.0234974+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 \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/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/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 cache-control: - no-cache content-length: - - '967' + - '1023' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:36:35 GMT + - Wed, 29 Jun 2022 03:14:27 GMT expires: - '-1' pragma: @@ -1940,7 +1961,7 @@ interactions: x-ms-ratelimit-remaining-resource: - Microsoft.Compute/CreateUpdateGalleryImageVersion3Min;374,Microsoft.Compute/CreateUpdateGalleryImageVersion30Min;1199 x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' status: code: 201 message: Created @@ -1959,13 +1980,13 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -1974,7 +1995,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:37:36 GMT + - Wed, 29 Jun 2022 03:15:28 GMT expires: - '-1' pragma: @@ -2010,13 +2031,13 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -2025,7 +2046,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:38:37 GMT + - Wed, 29 Jun 2022 03:16:28 GMT expires: - '-1' pragma: @@ -2061,13 +2082,13 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -2076,7 +2097,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:39:38 GMT + - Wed, 29 Jun 2022 03:17:30 GMT expires: - '-1' pragma: @@ -2112,13 +2133,13 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -2127,7 +2148,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:40:39 GMT + - Wed, 29 Jun 2022 03:18:31 GMT expires: - '-1' pragma: @@ -2163,13 +2184,13 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -2178,7 +2199,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:41:41 GMT + - Wed, 29 Jun 2022 03:19:32 GMT expires: - '-1' pragma: @@ -2214,13 +2235,13 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"status\": - \"InProgress\",\r\n \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"status\": + \"InProgress\",\r\n \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -2229,7 +2250,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:42:41 GMT + - Wed, 29 Jun 2022 03:20:33 GMT expires: - '-1' pragma: @@ -2265,14 +2286,14 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/440f12dd-e82d-4060-9b31-78b763151e8b?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/2983447d-8419-4999-8c8f-193b954171fa?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n \"endTime\": - \"2022-06-23T16:43:21.6998235+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"440f12dd-e82d-4060-9b31-78b763151e8b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:14:25.9140885+00:00\",\r\n \"endTime\": + \"2022-06-29T03:21:14.0861689+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"2983447d-8419-4999-8c8f-193b954171fa\"\r\n}" headers: cache-control: - no-cache @@ -2281,7 +2302,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:43 GMT + - Wed, 29 Jun 2022 03:21:34 GMT expires: - '-1' pragma: @@ -2317,20 +2338,20 @@ interactions: - -g --gallery-name --gallery-image-definition --gallery-image-version --managed-image --replica-count User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2?api-version=2021-10-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2?api-version=2021-10-01 response: body: - string: "{\r\n \"name\": \"1.1.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2\",\r\n + string: "{\r\n \"name\": \"1.1.2\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/images/image000004/versions/1.1.2\",\r\n \ \"type\": \"Microsoft.Compute/galleries/images/versions\",\r\n \"location\": \"centraluseuap\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"publishingProfile\": {\r\n \"targetRegions\": [\r\n {\r\n \"name\": \"Central US EUAP\",\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-06-23T16:36:34.3226798+00:00\",\r\n + \ \"excludeFromLatest\": false,\r\n \"publishedDate\": \"2022-06-29T03:14:26.0234974+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 \"source\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/images/managedImage1\"\r\n \ },\r\n \"osDiskImage\": {\r\n \"sizeInGB\": 30,\r\n \"hostCaching\": \"ReadWrite\",\r\n \"source\": {}\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" @@ -2338,11 +2359,11 @@ interactions: cache-control: - no-cache content-length: - - '1086' + - '1142' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:43 GMT + - Wed, 29 Jun 2022 03:21:34 GMT expires: - '-1' pragma: @@ -2359,7 +2380,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGalleryImageVersion3Min;1999,Microsoft.Compute/GetGalleryImageVersion30Min;9996 + - Microsoft.Compute/GetGalleryImageVersion3Min;1999,Microsoft.Compute/GetGalleryImageVersion30Min;9997 status: code: 200 message: OK @@ -2377,30 +2398,30 @@ interactions: ParameterSetName: - --gallery-name --resource-group --select User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01&$select=Permissions response: body: - string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n + string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYM3HOZ2T4W\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYVRJT6WAGU\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Community\",\r\n \"communityGalleryInfo\": {\r\n \"communityGalleryEnabled\": true,\r\n \"publisherUri\": \"puburi\",\r\n \"publisherContact\": \"abc@123.com\",\r\n \"eula\": - \"eula\",\r\n \"publicNames\": [\r\n \"pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463\"\r\n + \"eula\",\r\n \"publicNames\": [\r\n \"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48\"\r\n \ ]\r\n }\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n \ }\r\n}" headers: cache-control: - no-cache content-length: - - '788' + - '816' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:45 GMT + - Wed, 29 Jun 2022 03:21:36 GMT expires: - '-1' pragma: @@ -2417,7 +2438,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;349,Microsoft.Compute/GetGallery30Min;2490 + - Microsoft.Compute/GetGallery3Min;345,Microsoft.Compute/GetGallery30Min;2490 status: code: 200 message: OK @@ -2435,16 +2456,16 @@ interactions: ParameterSetName: - --location --public-gallery-name User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48?api-version=2022-01-03 response: body: - string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/CommunityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463\"\r\n + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48\"\r\n \ },\r\n \"communityMetadata\": {\r\n \"publisherUri\": \"puburi\",\r\n \ \"publisherContact\": \"abc@123.com\",\r\n \"eula\": \"eula\",\r\n - \ \"publicNames\": [\r\n \"pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463\"\r\n - \ ]\r\n },\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463\"\r\n}" + \ \"publicNames\": [\r\n \"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48\"\r\n + \ ]\r\n },\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": \"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48\"\r\n}" headers: cache-control: - no-cache @@ -2453,7 +2474,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:47 GMT + - Wed, 29 Jun 2022 03:21:40 GMT expires: - '-1' pragma: @@ -2472,6 +2493,63 @@ interactions: status: code: 200 message: OK +- request: + body: '{"query": "communitygalleryresources| where type == ''microsoft.compute/locations/communitygalleries'' + | where location == ''centraluseuap'' ", "options": {"$top": 30}}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - sig list-community + Connection: + - keep-alive + Content-Length: + - '164' + Content-Type: + - application/json + ParameterSetName: + - --location + User-Agent: + - python/3.8.1 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"id":"/providers/Microsoft.Compute/locations/CentralUSEUAP/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48","name":"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48","type":"microsoft.compute/locations/communitygalleries","tenantId":"","kind":"","location":"centraluseuap","resourceGroup":"","subscriptionId":"","managedBy":"","sku":null,"plan":null,"properties":{"identifier":{"uniqueId":"/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48"},"location":"CentralUSEUAP","name":"pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48","communityMetadata":{"publisherUri":"puburi","publisherContact":"abc@123.com","eula":"eula","publicNames":["pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48"]}},"tags":null,"identity":null,"zones":null,"extendedLocation":null}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '849' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 03:21:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '14' + x-ms-user-quota-remaining: + - '14' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK - request: body: null headers: @@ -2486,12 +2564,12 @@ interactions: ParameterSetName: - --gallery-image-definition --public-gallery-name --location User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/images/image000004?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/images/image000004?api-version=2022-01-03 response: body: - string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/CommunityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/Images/image000004\"\r\n + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/Images/image000004\"\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\": @@ -2505,7 +2583,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:50 GMT + - Wed, 29 Jun 2022 03:21:45 GMT expires: - '-1' pragma: @@ -2538,13 +2616,13 @@ interactions: ParameterSetName: - --public-gallery-name --location User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/images?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/images?api-version=2022-01-03 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"identifier\": {\r\n \"uniqueId\": - \"/CommunityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/Images/image000004\"\r\n + \"/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/Images/image000004\"\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\": @@ -2559,7 +2637,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:53 GMT + - Wed, 29 Jun 2022 03:21:48 GMT expires: - '-1' pragma: @@ -2592,13 +2670,13 @@ interactions: ParameterSetName: - --gallery-image-definition --public-gallery-name --location --gallery-image-version User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/images/image000004/versions/1.1.2?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/images/image000004/versions/1.1.2?api-version=2022-01-03 response: body: - string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/CommunityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/Images/image000004/Versions/1.1.2\"\r\n - \ },\r\n \"properties\": {\r\n \"publishedDate\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n + string: "{\r\n \"identifier\": {\r\n \"uniqueId\": \"/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/Images/image000004/Versions/1.1.2\"\r\n + \ },\r\n \"properties\": {\r\n \"publishedDate\": \"2022-06-29T03:14:26.0234974+00:00\",\r\n \ \"excludeFromLatest\": false,\r\n \"storageProfile\": {\r\n \"osDiskImage\": {\r\n \"diskSizeGB\": 30,\r\n \"hostCaching\": \"ReadWrite\"\r\n \ }\r\n }\r\n },\r\n \"location\": \"CentralUSEUAP\",\r\n \"name\": @@ -2611,7 +2689,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:57 GMT + - Wed, 29 Jun 2022 03:21:51 GMT expires: - '-1' pragma: @@ -2644,14 +2722,14 @@ interactions: ParameterSetName: - --gallery-image-definition --public-gallery-name --location User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/images/image000004/versions?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/communityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/images/image000004/versions?api-version=2022-01-03 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"identifier\": {\r\n \"uniqueId\": - \"/CommunityGalleries/pubname-270dae73-34c2-43f2-ac25-8e24ba8d8463/Images/image000004/Versions/1.1.2\"\r\n - \ },\r\n \"properties\": {\r\n \"publishedDate\": \"2022-06-23T16:36:34.3226798+00:00\",\r\n + \"/CommunityGalleries/pubname-a9e143c3-b6cd-44d8-b31e-5809c5353a48/Images/image000004/Versions/1.1.2\"\r\n + \ },\r\n \"properties\": {\r\n \"publishedDate\": \"2022-06-29T03:14:26.0234974+00:00\",\r\n \ \"excludeFromLatest\": false,\r\n \"storageProfile\": {\r\n \ \"osDiskImage\": {\r\n \"diskSizeGB\": 30,\r\n \"hostCaching\": \"ReadWrite\"\r\n }\r\n }\r\n },\r\n \"location\": @@ -2664,7 +2742,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:43:58 GMT + - Wed, 29 Jun 2022 03:21:54 GMT expires: - '-1' pragma: @@ -2701,25 +2779,25 @@ interactions: ParameterSetName: - --gallery-name -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003/share?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003/share?api-version=2022-01-03 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/d33db153-9add-4e37-87c4-f662f7931709?api-version=2022-01-03 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/e4242bc8-e11a-490d-92b5-2fb7420b32a7?api-version=2022-01-03 cache-control: - no-cache content-length: - '0' date: - - Thu, 23 Jun 2022 16:43:59 GMT + - Wed, 29 Jun 2022 03:21:56 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/d33db153-9add-4e37-87c4-f662f7931709?monitor=true&api-version=2022-01-03 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/e4242bc8-e11a-490d-92b5-2fb7420b32a7?monitor=true&api-version=2022-01-03 pragma: - no-cache server: @@ -2750,14 +2828,14 @@ interactions: ParameterSetName: - --gallery-name -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/d33db153-9add-4e37-87c4-f662f7931709?api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/e4242bc8-e11a-490d-92b5-2fb7420b32a7?api-version=2022-01-03 response: body: - string: "{\r\n \"startTime\": \"2022-06-23T16:44:00.4029443+00:00\",\r\n \"endTime\": - \"2022-06-23T16:44:01.9029168+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"d33db153-9add-4e37-87c4-f662f7931709\"\r\n}" + string: "{\r\n \"startTime\": \"2022-06-29T03:21:56.4455291+00:00\",\r\n \"endTime\": + \"2022-06-29T03:21:58.1955288+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"e4242bc8-e11a-490d-92b5-2fb7420b32a7\"\r\n}" headers: cache-control: - no-cache @@ -2766,7 +2844,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:44:30 GMT + - Wed, 29 Jun 2022 03:22:26 GMT expires: - '-1' pragma: @@ -2783,7 +2861,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1194,Microsoft.Compute/GetOperationStatus30Min;4177 + - Microsoft.Compute/GetOperationStatus3Min;1192,Microsoft.Compute/GetOperationStatus30Min;4177 status: code: 200 message: OK @@ -2801,9 +2879,9 @@ interactions: ParameterSetName: - --gallery-name -g User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/d33db153-9add-4e37-87c4-f662f7931709?monitor=true&api-version=2022-01-03 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/CentralUSEUAP/capsOperations/e4242bc8-e11a-490d-92b5-2fb7420b32a7?monitor=true&api-version=2022-01-03 response: body: string: '' @@ -2813,7 +2891,7 @@ interactions: content-length: - '0' date: - - Thu, 23 Jun 2022 16:44:31 GMT + - Wed, 29 Jun 2022 03:22:26 GMT expires: - '-1' pragma: @@ -2826,7 +2904,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1193,Microsoft.Compute/GetOperationStatus30Min;4176 + - Microsoft.Compute/GetOperationStatus3Min;1191,Microsoft.Compute/GetOperationStatus30Min;4176 status: code: 200 message: OK @@ -2844,26 +2922,26 @@ interactions: ParameterSetName: - --gallery-name --resource-group --select User-Agent: - - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.10.5 (Windows-10-10.0.19044-SP0) + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.1 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003?api-version=2021-10-01&$select=Permissions response: body: - string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n + string: "{\r\n \"name\": \"gellery000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_community_gallery_operations_000001/providers/Microsoft.Compute/galleries/gellery000003\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"centraluseuap\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYM3HOZ2T4W\"\r\n },\r\n \"sharingProfile\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-GELLERYVRJT6WAGU\"\r\n },\r\n \"sharingProfile\": {\r\n \"permissions\": \"Private\"\r\n },\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '502' + - '530' content-type: - application/json; charset=utf-8 date: - - Thu, 23 Jun 2022 16:44:32 GMT + - Wed, 29 Jun 2022 03:22:29 GMT expires: - '-1' pragma: @@ -2880,7 +2958,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;348,Microsoft.Compute/GetGallery30Min;2489 + - Microsoft.Compute/GetGallery3Min;346,Microsoft.Compute/GetGallery30Min;2489 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 8f4dffbcb70..3f718dbec60 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 @@ -5729,7 +5729,7 @@ def test_replication_mode(self, resource_group): self.check('publishingProfile.replicationMode', 'Shallow') ]) - @ResourceGroupPreparer(location='CentralUSEUAP') + @ResourceGroupPreparer(name_prefix='cli_test_community_gallery_operations_', location='CentralUSEUAP') def test_community_gallery_operations(self, resource_group, resource_group_location): self.kwargs.update({ 'vm': self.create_random_name('vm', 16), @@ -5758,6 +5758,10 @@ def test_community_gallery_operations(self, resource_group, resource_group_locat self.check('uniqueId', '/CommunityGalleries/{public_name}') ]) + self.cmd('sig list-community --location {location}', checks=[ + self.check('[0].location', '{location}', case_sensitive=False) + ]) + self.cmd('sig image-definition show-community --gallery-image-definition {image} --public-gallery-name {public_name} --location {location}', checks=[ self.check('location', '{location}'), self.check('name', '{image}'),