diff --git a/src/azure-cli-core/azure/cli/core/profiles/_shared.py b/src/azure-cli-core/azure/cli/core/profiles/_shared.py index e99ed72bf7c..d061fc72744 100644 --- a/src/azure-cli-core/azure/cli/core/profiles/_shared.py +++ b/src/azure-cli-core/azure/cli/core/profiles/_shared.py @@ -154,7 +154,7 @@ def default_api_version(self): 'disk_encryption_sets': '2020-12-01', 'disk_accesses': '2020-05-01', 'snapshots': '2021-12-01', - 'galleries': '2021-07-01', + 'galleries': '2021-10-01', 'gallery_images': '2021-10-01', 'gallery_image_versions': '2021-10-01', 'gallery_applications': '2021-07-01', 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 2adef0b1e60..d7c2fe67661 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -594,6 +594,11 @@ az sig create --resource-group MyResourceGroup --gallery-name MyGallery """ +helps['sig show'] = """ +type: command +short-summary: Retrieve information about a Shared Image Gallery. +""" + helps['sig image-definition'] = """ type: group short-summary: Manage shared gallery image with VM 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 8c6eeea3a4f..680b902f4f3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -1124,6 +1124,10 @@ def load_arguments(self, _): c.argument('gallery_name', options_list=['--gallery-name', '-r'], id_part='name', help='gallery name') c.argument('gallery_image_name', options_list=['--gallery-image-definition', '-i'], id_part='child_name_1', help='gallery image definition') + with self.argument_context('sig show') as c: + c.argument('select', help='The select expression to apply on the operation.') + c.argument('sharing_groups', action='store_true', help='The expand query option to query shared gallery groups') + with self.argument_context('sig list-shared') as c: c.argument('location', arg_type=get_location_type(self.cli_ctx)) c.argument('shared_to', shared_to_type) 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 46d245e8553..ea4d3ddb133 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -523,7 +523,7 @@ def load_command_table(self, _): with self.command_group('sig', compute_galleries_sdk, operation_group='galleries', min_api='2018-06-01') as g: g.custom_command('create', 'create_image_gallery') - g.show_command('show', 'get') + g.custom_show_command('show', 'show_image_gallery') g.custom_command('list', 'list_image_galleries') g.command('delete', 'begin_delete') g.generic_update_command('update', setter_type=compute_custom, setter_name='update_image_galleries', setter_arg_name='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 baa3865d866..5660c80af4f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -4096,6 +4096,13 @@ def update_image_galleries(cmd, resource_group_name, gallery_name, gallery, perm return client.galleries.begin_create_or_update(resource_group_name, gallery_name, gallery, **kwargs) +def show_image_gallery(cmd, resource_group_name, gallery_name, select=None, sharing_groups=None): + if sharing_groups: + sharing_groups = 'sharingProfile/Groups' + client = _compute_client_factory(cmd.cli_ctx) + return client.galleries.get(resource_group_name, gallery_name, select=select, expand=sharing_groups) + + def create_image_gallery(cmd, resource_group_name, gallery_name, description=None, location=None, no_wait=False, tags=None, permissions=None, soft_delete=None): Gallery = cmd.get_models('Gallery') diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_architecture.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_architecture.yaml index 5995f60ac80..76717ffff3e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_architecture.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_architecture.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_region_cvm_encryptio.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_region_cvm_encryptio.yaml index 7093babf076..bd78c08b74f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_region_cvm_encryptio.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_image_version_with_region_cvm_encryptio.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.35.0 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.35.0 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -2844,7 +2844,7 @@ interactions: User-Agent: - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: '' diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml index 614a933f54e..cae11a242f3 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_create_vm_with_shared_gallery_image.yaml @@ -62,7 +62,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n @@ -167,7 +167,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n @@ -2235,7 +2235,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-10-01&$select=Permissions response: body: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n @@ -3930,7 +3930,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-07-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007?api-version=2021-10-01&$select=Permissions response: body: string: "{\r\n \"name\": \"gellery000007\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000007\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application.yaml index fb066e741e9..489e70ca7c7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.29.0 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (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-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/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 @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.29.0 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (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-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/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 @@ -412,7 +412,7 @@ interactions: User-Agent: - AZURECLI/2.29.0 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (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-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/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 @@ -520,7 +520,7 @@ interactions: User-Agent: - AZURECLI/2.29.0 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (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-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/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 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application_version.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application_version.yaml index 450134a6d4d..86a0db3cdeb 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application_version.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_application_version.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.33.1 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000004?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000004?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gellery000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000004\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.33.1 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.7.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000004?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000004?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gellery000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000004\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml index 9586f891927..cdbba0fa7dd 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_e2e.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -218,7 +218,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries?api-version=2021-10-01 response: body: string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"gallery_000003\",\r\n @@ -273,7 +273,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003\",\r\n @@ -5755,7 +5755,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gallery_000003?api-version=2021-10-01 response: body: string: '' diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml index 50d874ff13c..23d324e8d4d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_image_version_vhd.yaml @@ -981,7 +981,7 @@ interactions: User-Agent: - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n @@ -1085,7 +1085,7 @@ interactions: User-Agent: - AZURECLI/2.35.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.9.6 (Windows-10-10.0.19044-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_image_version_vhd000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml index 595cf5a615a..41032bb38b5 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_soft_delete.yaml @@ -13,21 +13,21 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-resource/19.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2021-09-29T02:22:22Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","date":"2022-05-12T10:17:38Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '428' + - '310' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:22:27 GMT + - Thu, 12 May 2022 10:17:44 GMT expires: - '-1' pragma: @@ -60,28 +60,28 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Creating\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": true\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/a7e47013-de12-4b2e-92a0-c4af7ed44f2a?api-version=2021-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/012e7d96-2650-47ee-a642-b68e52edc6c7?api-version=2021-07-01 cache-control: - no-cache content-length: - - '546' + - '487' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:22:35 GMT + - Thu, 12 May 2022 10:17:50 GMT expires: - '-1' pragma: @@ -94,7 +94,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/CreateUpdateGallery3Min;49,Microsoft.Compute/CreateUpdateGallery30Min;299 + - Microsoft.Compute/CreateUpdateGallery3Min;49,Microsoft.Compute/CreateUpdateGallery30Min;298 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -114,14 +114,14 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/a7e47013-de12-4b2e-92a0-c4af7ed44f2a?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/012e7d96-2650-47ee-a642-b68e52edc6c7?api-version=2021-07-01 response: body: - string: "{\r\n \"startTime\": \"2021-09-29T02:22:34.6196583+00:00\",\r\n \"endTime\": - \"2021-09-29T02:22:34.9320769+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"a7e47013-de12-4b2e-92a0-c4af7ed44f2a\"\r\n}" + string: "{\r\n \"startTime\": \"2022-05-12T10:17:50.1389628+00:00\",\r\n \"endTime\": + \"2022-05-12T10:17:50.3888838+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"012e7d96-2650-47ee-a642-b68e52edc6c7\"\r\n}" headers: cache-control: - no-cache @@ -130,7 +130,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:05 GMT + - Thu, 12 May 2022 10:18:20 GMT expires: - '-1' pragma: @@ -147,7 +147,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1198,Microsoft.Compute/GetOperationStatus30Min;4198 + - Microsoft.Compute/GetOperationStatus3Min;1198,Microsoft.Compute/GetOperationStatus30Min;4197 status: code: 200 message: OK @@ -165,26 +165,26 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-mgmt-compute/1.0.0b1 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": true\r\n }\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '547' + - '488' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:05 GMT + - Thu, 12 May 2022 10:18:21 GMT expires: - '-1' pragma: @@ -201,7 +201,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;346,Microsoft.Compute/GetGallery30Min;2496 + - Microsoft.Compute/GetGallery3Min;346,Microsoft.Compute/GetGallery30Min;2489 status: code: 200 message: OK @@ -217,28 +217,28 @@ interactions: Connection: - keep-alive ParameterSetName: - - -g -r + - -g -r --expand User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01&$expand=sharingProfile%2FGroups response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": true\r\n }\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '547' + - '488' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:07 GMT + - Thu, 12 May 2022 10:18:22 GMT expires: - '-1' pragma: @@ -248,14 +248,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/GetGallery3Min;345,Microsoft.Compute/GetGallery30Min;2495 + - Microsoft.Compute/GetGallery3Min;345,Microsoft.Compute/GetGallery30Min;2488 status: code: 200 message: OK @@ -273,26 +269,26 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": true\r\n }\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '547' + - '488' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:08 GMT + - Thu, 12 May 2022 10:18:24 GMT expires: - '-1' pragma: @@ -302,14 +298,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/GetGallery3Min;344,Microsoft.Compute/GetGallery30Min;2494 + - Microsoft.Compute/GetGallery3Min;344,Microsoft.Compute/GetGallery30Min;2487 status: code: 200 message: OK @@ -332,28 +324,28 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": false\r\n }\r\n }\r\n}" headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/1aacdb35-1c0f-4ea7-b27b-18c8a448f63b?api-version=2021-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/661ae992-dff4-4db3-aff4-941ff273811e?api-version=2021-10-01 cache-control: - no-cache content-length: - - '548' + - '489' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:08 GMT + - Thu, 12 May 2022 10:18:25 GMT expires: - '-1' pragma: @@ -363,14 +355,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/CreateUpdateGallery3Min;48,Microsoft.Compute/CreateUpdateGallery30Min;298 + - Microsoft.Compute/CreateUpdateGallery3Min;48,Microsoft.Compute/CreateUpdateGallery30Min;297 x-ms-ratelimit-remaining-subscription-writes: - '1199' status: @@ -390,14 +378,14 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/1aacdb35-1c0f-4ea7-b27b-18c8a448f63b?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/661ae992-dff4-4db3-aff4-941ff273811e?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2021-09-29T02:23:09.7602144+00:00\",\r\n \"endTime\": - \"2021-09-29T02:23:09.8071381+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"1aacdb35-1c0f-4ea7-b27b-18c8a448f63b\"\r\n}" + string: "{\r\n \"startTime\": \"2022-05-12T10:18:25.2339588+00:00\",\r\n \"endTime\": + \"2022-05-12T10:18:25.2808116+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"661ae992-dff4-4db3-aff4-941ff273811e\"\r\n}" headers: cache-control: - no-cache @@ -406,7 +394,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:40 GMT + - Thu, 12 May 2022 10:18:55 GMT expires: - '-1' pragma: @@ -416,14 +404,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/GetOperationStatus3Min;1197,Microsoft.Compute/GetOperationStatus30Min;4197 + - Microsoft.Compute/GetOperationStatus3Min;1197,Microsoft.Compute/GetOperationStatus30Min;4196 status: code: 200 message: OK @@ -441,26 +425,26 @@ interactions: ParameterSetName: - -g -r --soft-delete User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": false\r\n }\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '548' + - '489' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:40 GMT + - Thu, 12 May 2022 10:18:55 GMT expires: - '-1' pragma: @@ -470,14 +454,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/GetGallery3Min;341,Microsoft.Compute/GetGallery30Min;2491 + - Microsoft.Compute/GetGallery3Min;341,Microsoft.Compute/GetGallery30Min;2484 status: code: 200 message: OK @@ -495,26 +475,26 @@ interactions: ParameterSetName: - -g -r User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n \ \"type\": \"Microsoft.Compute/galleries\",\r\n \"location\": \"westus\",\r\n \ \"tags\": {},\r\n \"properties\": {\r\n \"identifier\": {\r\n \"uniqueName\": - \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_RICUZA\"\r\n },\r\n \"provisioningState\": + \"0b1f6471-1bf0-4dda-aec3-cb9272f09590-SIG_V5DS7J\"\r\n },\r\n \"provisioningState\": \"Succeeded\",\r\n \"softDeletePolicy\": {\r\n \"isSoftDeleteEnabled\": false\r\n }\r\n }\r\n}" headers: cache-control: - no-cache content-length: - - '548' + - '489' content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:23:41 GMT + - Thu, 12 May 2022 10:18:56 GMT expires: - '-1' pragma: @@ -531,7 +511,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetGallery3Min;340,Microsoft.Compute/GetGallery30Min;2490 + - Microsoft.Compute/GetGallery3Min;340,Microsoft.Compute/GetGallery30Min;2483 status: code: 200 message: OK @@ -551,25 +531,25 @@ interactions: ParameterSetName: - -g -r User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: '' headers: azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/1971810d-f2ca-4189-8faa-d1f1391e4284?api-version=2021-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/486049ce-579b-4aa9-a2b9-f525dd406dda?api-version=2021-10-01 cache-control: - no-cache content-length: - '0' date: - - Wed, 29 Sep 2021 02:23:43 GMT + - Thu, 12 May 2022 10:18:58 GMT expires: - '-1' location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/1971810d-f2ca-4189-8faa-d1f1391e4284?monitor=true&api-version=2021-07-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/486049ce-579b-4aa9-a2b9-f525dd406dda?monitor=true&api-version=2021-10-01 pragma: - no-cache server: @@ -600,14 +580,14 @@ interactions: ParameterSetName: - -g -r User-Agent: - - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/1971810d-f2ca-4189-8faa-d1f1391e4284?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/capsOperations/486049ce-579b-4aa9-a2b9-f525dd406dda?api-version=2021-10-01 response: body: - string: "{\r\n \"startTime\": \"2021-09-29T02:23:43.7759101+00:00\",\r\n \"endTime\": - \"2021-09-29T02:23:43.9009012+00:00\",\r\n \"status\": \"Succeeded\",\r\n - \ \"name\": \"1971810d-f2ca-4189-8faa-d1f1391e4284\"\r\n}" + string: "{\r\n \"startTime\": \"2022-05-12T10:18:59.3446166+00:00\",\r\n \"endTime\": + \"2022-05-12T10:18:59.4696352+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"name\": \"486049ce-579b-4aa9-a2b9-f525dd406dda\"\r\n}" headers: cache-control: - no-cache @@ -616,7 +596,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 29 Sep 2021 02:24:14 GMT + - Thu, 12 May 2022 10:19:28 GMT expires: - '-1' pragma: @@ -633,7 +613,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4195 + - Microsoft.Compute/GetOperationStatus3Min;1195,Microsoft.Compute/GetOperationStatus30Min;4194 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_specialized.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_specialized.yaml index 8979ce0a8ad..acd9bba4729 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_specialized.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_gallery_specialized.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_specialized_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_specialized_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_specialized_000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_specialized_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_specialized_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_gallery_specialized_000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml index 9c61a73a35f..12e4f91e21e 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_build_shared_image.yaml @@ -320,7 +320,7 @@ interactions: User-Agent: - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"ib_sig000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000003\",\r\n @@ -424,7 +424,7 @@ interactions: User-Agent: - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"ib_sig000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_sig000001/providers/Microsoft.Compute/galleries/ib_sig000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml index d7c59daf3da..9fe5c9660b7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_image_builder_basic_sig.yaml @@ -320,7 +320,7 @@ interactions: User-Agent: - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig1000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000003\",\r\n @@ -425,7 +425,7 @@ interactions: User-Agent: - AZURECLI/2.28.1 azsdk-python-azure-mgmt-compute/23.0.0 Python/3.8.9 (Windows-10-10.0.19041-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000003?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000003?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig1000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/img_tmpl_basic_2000001/providers/Microsoft.Compute/galleries/sig1000003\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml index 33af2b91a9d..4c31973d130 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_replication_mode.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.10.0 (Windows-10-10.0.19043-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.10.0 (Windows-10-10.0.19043-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"sig_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/sig_000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml index 911a1629027..5f21a00350c 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_shared_gallery.yaml @@ -62,7 +62,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -167,7 +167,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -2437,7 +2437,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-10-01&$select=Permissions response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -2639,7 +2639,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-10-01&$select=Permissions response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -2845,7 +2845,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-10-01&$select=Permissions response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n @@ -3361,7 +3361,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-07-01&$select=Permissions + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002?api-version=2021-10-01&$select=Permissions response: body: string: "{\r\n \"name\": \"gellery000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Compute/galleries/gellery000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_specialized_image.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_specialized_image.yaml index 16a98ec4d3b..943fa7b8ae1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_specialized_image.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_specialized_image.yaml @@ -61,7 +61,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_specialized_image_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_specialized_image_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_specialized_image_000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n @@ -165,7 +165,7 @@ interactions: User-Agent: - AZURECLI/2.34.1 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_specialized_image_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_specialized_image_000001/providers/Microsoft.Compute/galleries/gallery_000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"gallery_000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_test_specialized_image_000001/providers/Microsoft.Compute/galleries/gallery_000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_max_shares_etc.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_max_shares_etc.yaml index e4fd0cb0a82..d00874a843d 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_max_shares_etc.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_max_shares_etc.yaml @@ -1077,7 +1077,7 @@ interactions: User-Agent: - AZURECLI/2.33.0 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_disk_max_shares_etc_000001/providers/Microsoft.Compute/galleries/g1000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_disk_max_shares_etc_000001/providers/Microsoft.Compute/galleries/g1000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"g1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_disk_max_shares_etc_000001/providers/Microsoft.Compute/galleries/g1000002\",\r\n @@ -1181,7 +1181,7 @@ interactions: User-Agent: - AZURECLI/2.33.0 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_disk_max_shares_etc_000001/providers/Microsoft.Compute/galleries/g1000002?api-version=2021-07-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_disk_max_shares_etc_000001/providers/Microsoft.Compute/galleries/g1000002?api-version=2021-10-01 response: body: string: "{\r\n \"name\": \"g1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_disk_max_shares_etc_000001/providers/Microsoft.Compute/galleries/g1000002\",\r\n diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_usage.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_usage.yaml index 1212fe95fbb..39a9158b1c7 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_usage.yaml +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_usage.yaml @@ -13,7 +13,7 @@ interactions: ParameterSetName: - --location User-Agent: - - AZURECLI/2.33.0 azsdk-python-azure-mgmt-compute/25.0.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + - AZURECLI/2.36.0 azsdk-python-azure-mgmt-compute/26.1.0 Python/3.8.10 (Windows-10-10.0.22000-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/westus/usages?api-version=2021-11-01 response: @@ -40,17 +40,23 @@ interactions: {\r\n \"value\": \"lowPriorityCores\",\r\n \"localizedValue\": \"Total Regional Low-priority vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": + {\r\n \"value\": \"standardDv2Family\",\r\n \"localizedValue\": + \"Standard Dv2 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": + 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": + {\r\n \"value\": \"standardA0_A7Family\",\r\n \"localizedValue\": + \"Standard A0-A7 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": + 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": + {\r\n \"value\": \"standardDSFamily\",\r\n \"localizedValue\": + \"Standard DS Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": + 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardDSv2Family\",\r\n \"localizedValue\": \"Standard DSv2 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": - {\r\n \"value\": \"standardDSv3Family\",\r\n \"localizedValue\": - \"Standard DSv3 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": - 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"basicAFamily\",\r\n \"localizedValue\": \"Basic A Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n \ \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": - {\r\n \"value\": \"standardA0_A7Family\",\r\n \"localizedValue\": - \"Standard A0-A7 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": + {\r\n \"value\": \"standardDSv3Family\",\r\n \"localizedValue\": + \"Standard DSv3 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardA8_A11Family\",\r\n \"localizedValue\": \"Standard A8-A11 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": @@ -58,12 +64,6 @@ interactions: {\r\n \"value\": \"standardDFamily\",\r\n \"localizedValue\": \"Standard D Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": - {\r\n \"value\": \"standardDv2Family\",\r\n \"localizedValue\": - \"Standard Dv2 Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": - 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": - {\r\n \"value\": \"standardDSFamily\",\r\n \"localizedValue\": - \"Standard DS Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": - 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardGFamily\",\r\n \"localizedValue\": \"Standard G Family vCPUs\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": @@ -324,12 +324,24 @@ interactions: \ },\r\n {\r\n \"limit\": 0,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardECIADSv5Family\",\r\n \ \"localizedValue\": \"Standard ECIADSv5 Family vCPUs\"\r\n }\r\n + \ },\r\n {\r\n \"limit\": 0,\r\n \"unit\": \"Count\",\r\n \"currentValue\": + 0,\r\n \"name\": {\r\n \"value\": \"StandardNVADSA10v5Family\",\r\n + \ \"localizedValue\": \"Standard NVADSA10v5 Family vCPUs\"\r\n }\r\n + \ },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n + \ \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardEBDSv5Family\",\r\n + \ \"localizedValue\": \"Standard EBDSv5 Family vCPUs\"\r\n }\r\n + \ },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n + \ \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardEBSv5Family\",\r\n + \ \"localizedValue\": \"Standard EBSv5 Family vCPUs\"\r\n }\r\n \ },\r\n {\r\n \"limit\": 100,\r\n \"unit\": \"Count\",\r\n \ \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardEIASv5Family\",\r\n \ \"localizedValue\": \"Standard EIASv5 Family vCPUs\"\r\n }\r\n \ },\r\n {\r\n \"limit\": 0,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"standardEIADSv5Family\",\r\n \ \"localizedValue\": \"Standard EIADSv5 Family vCPUs\"\r\n }\r\n + \ },\r\n {\r\n \"limit\": 0,\r\n \"unit\": \"Count\",\r\n \"currentValue\": + 0,\r\n \"name\": {\r\n \"value\": \"StandardNCADSA10v4Family\",\r\n + \ \"localizedValue\": \"Standard NCADSA10v4 Family vCPUs\"\r\n }\r\n \ },\r\n {\r\n \"limit\": 50000,\r\n \"unit\": \"Count\",\r\n \ \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"StandardDiskCount\",\r\n \ \"localizedValue\": \"Standard Storage Managed Disks\"\r\n }\r\n @@ -348,6 +360,9 @@ interactions: \ {\r\n \"limit\": 1000,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"UltraSSDDiskCount\",\r\n \"localizedValue\": \"UltraSSDStorageDisks\"\r\n }\r\n },\r\n {\r\n \"limit\": + 1000,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": + {\r\n \"value\": \"PremiumV2DiskCount\",\r\n \"localizedValue\": + \"PremiumV2StorageDisks\"\r\n }\r\n },\r\n {\r\n \"limit\": 75000,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 1,\r\n \"name\": {\r\n \"value\": \"StandardSnapshotCount\",\r\n \"localizedValue\": \"StandardStorageSnapshots\"\r\n }\r\n },\r\n {\r\n \"limit\": @@ -363,13 +378,16 @@ interactions: 32768,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"UltraSSDDiskSizeInGB\",\r\n \"localizedValue\": \"UltraSSDTotalSizeInGB\"\r\n }\r\n },\r\n {\r\n \"limit\": + 32768,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": + {\r\n \"value\": \"PremiumV2DiskSizeInGB\",\r\n \"localizedValue\": + \"PremiumV2TotalDiskSizeInGB\"\r\n }\r\n },\r\n {\r\n \"limit\": 1000,\r\n \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"DiskEncryptionSetCount\",\r\n \"localizedValue\": \"DiskEncryptionSets\"\r\n }\r\n },\r\n {\r\n \"limit\": 1000,\r\n \ \"unit\": \"Count\",\r\n \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"DiskAccessCount\",\r\n \"localizedValue\": \"DiskAccesses\"\r\n }\r\n },\r\n {\r\n \"limit\": 100,\r\n - \ \"unit\": \"Count\",\r\n \"currentValue\": 12,\r\n \"name\": + \ \"unit\": \"Count\",\r\n \"currentValue\": 17,\r\n \"name\": {\r\n \"value\": \"Gallery\",\r\n \"localizedValue\": \"Gallery\"\r\n \ }\r\n },\r\n {\r\n \"limit\": 1000,\r\n \"unit\": \"Count\",\r\n \ \"currentValue\": 0,\r\n \"name\": {\r\n \"value\": \"GalleryImage\",\r\n @@ -382,11 +400,11 @@ interactions: cache-control: - no-cache content-length: - - '25022' + - '26297' content-type: - application/json; charset=utf-8 date: - - Thu, 10 Feb 2022 07:27:52 GMT + - Thu, 12 May 2022 10:17:29 GMT expires: - '-1' pragma: @@ -403,7 +421,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-resource: - - Microsoft.Compute/GetSubscriptionInfo3Min;358 + - Microsoft.Compute/GetSubscriptionInfo3Min;359 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 78d337cedc8..8e76a109068 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 @@ -5086,11 +5086,12 @@ def test_gallery_soft_delete(self, resource_group): self.check('softDeletePolicy.isSoftDeleteEnabled', True) ]) - self.cmd('sig show -g {rg} -r {gallery_name}', checks=[ + self.cmd('sig show -g {rg} -r {gallery_name} --sharing-groups', checks=[ self.check('location', 'westus'), self.check('name', '{gallery_name}'), self.check('resourceGroup', '{rg}'), - self.check('softDeletePolicy.isSoftDeleteEnabled', True) + self.check('softDeletePolicy.isSoftDeleteEnabled', True), + self.check('sharingProfile.groups', None) ]) self.cmd('sig update -g {rg} -r {gallery_name} --soft-delete False', checks=[