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..c2119bd032a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_help.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_help.py @@ -218,6 +218,14 @@ examples: - name: Create a disk encryption set. text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault + - name: Create a disk encryption set with a system assigned identity. + text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-system-assigned + - name: Create a disk encryption set with a user assigned identity. + text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-user-assigned myAssignedId + - name: Create a disk encryption set with system assigned identity and a user assigned identity. + text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-system-assigned --mi-user-assigned myAssignedId + - name: Create a disk encryption set with multi-tenant application client id to access key vault in a different tenant. + text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --federated-client-id myFederatedClientId - name: Create a disk encryption set that supports double encryption. text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --encryption-type EncryptionAtRestWithPlatformAndCustomerKeys """ @@ -255,6 +263,56 @@ text: | az disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault crafted: true + - name: Update multi-tenant application client id of a disk encryption set. + text: | + az disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault --federated-client-id myFederatedClientId + - name: Clear multi-tenant application client id of a disk encryption set. + text: | + az disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault --federated-client-id None +""" + +helps['disk-encryption-set identity'] = """ +type: group +short-summary: Manage identities of a disk encryption set. +""" + +helps['disk-encryption-set identity assign'] = """ +type: command +short-summary: Add managed identities to an existing disk encryption set. +examples: + - name: Add a system assigned managed identity to an existing disk encryption set. + text: > + az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned + - name: Add a user assigned managed identity to an existing disk encryption set. + text: > + az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned MyAssignedId + - name: Add system assigned identity and a user assigned managed identity to an existing disk encryption set. + text: > + az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned --user-assigned MyAssignedId +""" + +helps['disk-encryption-set identity remove'] = """ +type: command +short-summary: Remove managed identities from an existing disk encryption set. +examples: + - name: Remove a system assigned managed identity from an existing disk encryption set. + text: > + az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned + - name: Remove a user assigned managed identity from an existing disk encryption set. + text: > + az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned MyAssignedId + - name: Remove all user assigned managed identities from an existing disk encryption set. + text: > + az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned +""" + +helps['disk-encryption-set identity show'] = """ +type: command +short-summary: Display managed identities of a disk encryption set. +examples: + - name: Display managed identities of a disk encryption set. + text: | + az disk-encryption-set identity show --name MyDiskEncryptionSet --resource-group MyResourceGroup """ helps['image'] = """ 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 7a102a72c42..38b6d63877f 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -1442,6 +1442,29 @@ def load_arguments(self, _): c.argument('enable_auto_key_rotation', arg_type=get_three_state_flag(), min_api='2020-12-01', options_list=['--enable-auto-key-rotation', '--auto-rotation'], help='Enable automatic rotation of keys.') + + with self.argument_context('disk-encryption-set create', operation_group='disk_encryption_sets', + min_api='2022-03-02') as c: + c.argument('federated_client_id', help='The federated client id used in cross tenant scenario.') + c.argument('mi_system_assigned', arg_group='Managed Identity', arg_type=get_three_state_flag(), + help='Provide this flag to use system assigned identity. Check out help for more examples') + c.argument('mi_user_assigned', arg_group='Managed Identity', nargs='+', + help='User Assigned Identity ids to be used for disk encryption set. ' + 'Check out help for more examples') + + with self.argument_context('disk-encryption-set update', operation_group='disk_encryption_sets', + min_api='2022-03-02') as c: + c.argument('federated_client_id', help='The federated client id used in cross tenant scenario.') + + with self.argument_context('disk-encryption-set identity', operation_group='disk_encryption_sets', + min_api='2022-03-02') as c: + c.argument('mi_system_assigned', options_list=['--system-assigned'], + arg_group='Managed Identity', arg_type=get_three_state_flag(), + help='Provide this flag to use system assigned identity for disk encryption set. ' + 'Check out help for more examples') + c.argument('mi_user_assigned', options_list=['--user-assigned'], arg_group='Managed Identity', nargs='*', + help='User Assigned Identity ids to be used for disk encryption set. ' + 'Check out help for more examples') # endregion # region DiskAccess 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 4e23ed1553d..1995d8ed07a 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/commands.py @@ -271,6 +271,11 @@ def load_command_table(self, _): g.custom_command('list', 'list_disk_encryption_sets') g.command('list-associated-resources', 'list_associated_resources', min_api='2020-06-30') + with self.command_group('disk-encryption-set identity', compute_disk_encryption_set_sdk, operation_group='disk_encryption_sets', client_factory=cf_disk_encryption_set, min_api='2022-03-02') as g: + g.custom_command('assign', 'assign_disk_encryption_set_identity') + g.custom_command('remove', 'remove_disk_encryption_set_identity', confirmation=True) + g.custom_show_command('show', 'show_disk_encryption_set_identity') + with self.command_group('disk-access', compute_disk_access_sdk, operation_group='disk_accesses', client_factory=cf_disk_accesses, min_api='2020-05-01') as g: g.custom_command('create', 'create_disk_access', supports_no_wait=True) g.generic_update_command('update', setter_name='set_disk_access', setter_type=compute_custom, supports_no_wait=True) diff --git a/src/azure-cli/azure/cli/command_modules/vm/custom.py b/src/azure-cli/azure/cli/command_modules/vm/custom.py index fa8caffa337..cdd3ede9c63 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/custom.py +++ b/src/azure-cli/azure/cli/command_modules/vm/custom.py @@ -1449,6 +1449,13 @@ def patch_vm(cmd, resource_group_name, vm_name, vm): return LongRunningOperation(cmd.cli_ctx)(poller) +def patch_disk_encryption_set(cmd, resource_group_name, disk_encryption_set_name, disk_encryption_set_update): + client = _compute_client_factory(cmd.cli_ctx) + poller = client.disk_encryption_sets.begin_update(resource_group_name, disk_encryption_set_name, + disk_encryption_set_update) + return LongRunningOperation(cmd.cli_ctx)(poller) + + def show_vm(cmd, resource_group_name, vm_name, show_details=False, include_user_data=False): if show_details: return get_vm_details(cmd, resource_group_name, vm_name, include_user_data) @@ -2002,6 +2009,50 @@ def setter(resource_group_name, vm_name, vm): identities = [MSI_LOCAL_ID] return _remove_identities(cmd, resource_group_name, vm_name, identities, get_vm, setter) + + +# region VirtualMachines Identity +def _remove_disk_encryption_set_identities(cmd, resource_group_name, name, + mi_system_assigned, mi_user_assigned, getter, setter): + IdentityType = cmd.get_models('DiskEncryptionSetIdentityType', operation_group='disk_encryption_sets') + remove_system_assigned_identity = mi_system_assigned is not None + + resource = getter(cmd, resource_group_name, name) + if resource is None or resource.identity is None: + return None + + user_identities_to_remove = [] + if mi_user_assigned is not None: + existing_user_identities = {x.lower() for x in list((resource.identity.user_assigned_identities or {}).keys())} + # all user assigned identities will be removed if the length of mi_user_assigned is 0, + # otherwise the specified identity + user_identities_to_remove = {x.lower() for x in mi_user_assigned} \ + if len(mi_user_assigned) > 0 else existing_user_identities + non_existing = user_identities_to_remove.difference(existing_user_identities) + if non_existing: + from azure.cli.core.azclierror import InvalidArgumentValueError + raise InvalidArgumentValueError("'{}' are not associated with '{}', please provide existing user managed " + "identities".format(','.join(non_existing), name)) + if not list(existing_user_identities - user_identities_to_remove): + if resource.identity.type == IdentityType.USER_ASSIGNED: + resource.identity.type = IdentityType.NONE + elif resource.identity.type == IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED: + resource.identity.type = IdentityType.SYSTEM_ASSIGNED + + resource.identity.user_assigned_identities = None + if remove_system_assigned_identity: + resource.identity.type = (IdentityType.NONE + if resource.identity.type == IdentityType.SYSTEM_ASSIGNED + else IdentityType.USER_ASSIGNED) + + if user_identities_to_remove: + if resource.identity.type not in [IdentityType.NONE, IdentityType.SYSTEM_ASSIGNED]: + resource.identity.user_assigned_identities = {} + for identity in user_identities_to_remove: + resource.identity.user_assigned_identities[identity] = None + + result = LongRunningOperation(cmd.cli_ctx)(setter(resource_group_name, name, resource)) + return result.identity # endregion @@ -3283,6 +3334,25 @@ def _build_identities_info(identities): return (info, identity_types, external_identities, 'SystemAssigned' in identity_types) +def _build_identities_info_from_system_user_assigned(cmd, mi_system_assigned, mi_user_assigned): + IdentityType, UserAssignedIdentitiesValue = cmd.get_models('DiskEncryptionSetIdentityType', + 'UserAssignedIdentitiesValue', + operation_group='disk_encryption_sets') + + identity_types = IdentityType.SYSTEM_ASSIGNED + user_assigned_identities = None + if mi_user_assigned: + if mi_system_assigned: + identity_types = IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED + else: + identity_types = IdentityType.USER_ASSIGNED + + default_user_identity = UserAssignedIdentitiesValue() + user_assigned_identities = dict.fromkeys(mi_user_assigned, default_user_identity) + + return identity_types, user_assigned_identities + + def deallocate_vmss(cmd, resource_group_name, vm_scale_set_name, instance_ids=None, no_wait=False): client = _compute_client_factory(cmd.cli_ctx) if instance_ids and len(instance_ids) == 1: @@ -4565,21 +4635,35 @@ def _set_log_analytics_workspace_extension(cmd, resource_group_name, vm, vm_name # disk encryption set def create_disk_encryption_set( cmd, client, resource_group_name, disk_encryption_set_name, key_url, source_vault=None, encryption_type=None, - location=None, tags=None, no_wait=False, enable_auto_key_rotation=None): + location=None, tags=None, no_wait=False, enable_auto_key_rotation=None, federated_client_id=None, + mi_system_assigned=None, mi_user_assigned=None): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id DiskEncryptionSet, EncryptionSetIdentity, KeyForDiskEncryptionSet, SourceVault = cmd.get_models( 'DiskEncryptionSet', 'EncryptionSetIdentity', 'KeyForDiskEncryptionSet', 'SourceVault') - encryption_set_identity = EncryptionSetIdentity(type='SystemAssigned') + + identity_type, user_assigned_identities = \ + _build_identities_info_from_system_user_assigned(cmd, mi_system_assigned, mi_user_assigned) + + encryption_set_identity = EncryptionSetIdentity(type=identity_type) + if user_assigned_identities is not None: + encryption_set_identity.user_assigned_identities = user_assigned_identities + if source_vault is not None: if not is_valid_resource_id(source_vault): - source_vault = resource_id(subscription=get_subscription_id(cmd.cli_ctx), resource_group=resource_group_name, + source_vault = resource_id(subscription=get_subscription_id(cmd.cli_ctx), + resource_group=resource_group_name, namespace='Microsoft.KeyVault', type='vaults', name=source_vault) source_vault = SourceVault(id=source_vault) + key_for_disk_emcryption_set = KeyForDiskEncryptionSet(source_vault=source_vault, key_url=key_url) disk_encryption_set = DiskEncryptionSet(location=location, tags=tags, identity=encryption_set_identity, active_key=key_for_disk_emcryption_set, encryption_type=encryption_type, rotation_to_latest_key_version_enabled=enable_auto_key_rotation) + + if federated_client_id is not None: + disk_encryption_set.federated_client_id = federated_client_id + return sdk_no_wait(no_wait, client.begin_create_or_update, resource_group_name, disk_encryption_set_name, disk_encryption_set) @@ -4591,7 +4675,7 @@ def list_disk_encryption_sets(cmd, client, resource_group_name=None): def update_disk_encryption_set(cmd, instance, client, resource_group_name, key_url=None, source_vault=None, - enable_auto_key_rotation=None): + enable_auto_key_rotation=None, federated_client_id=None): from msrestazure.tools import resource_id, is_valid_resource_id from azure.cli.core.commands.client_factory import get_subscription_id if key_url: @@ -4607,8 +4691,73 @@ def update_disk_encryption_set(cmd, instance, client, resource_group_name, key_u if enable_auto_key_rotation is not None: instance.rotation_to_latest_key_version_enabled = enable_auto_key_rotation + if federated_client_id is not None: + instance.federated_client_id = federated_client_id + return instance + +def assign_disk_encryption_set_identity(cmd, client, resource_group_name, disk_encryption_set_name, + mi_system_assigned=None, mi_user_assigned=None): + DiskEncryptionSetUpdate, EncryptionSetIdentity = cmd.get_models('DiskEncryptionSetUpdate', 'EncryptionSetIdentity', + operation_group='disk_encryption_sets') + from azure.cli.core.commands.arm import assign_identity as assign_identity_helper + client = _compute_client_factory(cmd.cli_ctx) + + def getter(): + return client.disk_encryption_sets.get(resource_group_name, disk_encryption_set_name) + + def setter(disk_encryption_set, mi_system_assigned=mi_system_assigned, mi_user_assigned=mi_user_assigned): + IdentityType = cmd.get_models('DiskEncryptionSetIdentityType', operation_group='disk_encryption_sets') + existing_system_identity = False + existing_user_identities = set() + if disk_encryption_set.identity is not None: + existing_system_identity = disk_encryption_set.identity.type in [IdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, + IdentityType.SYSTEM_ASSIGNED] + existing_user_identities = {x.lower() for x in + list((disk_encryption_set.identity.user_assigned_identities or {}).keys())} + + add_system_assigned = mi_system_assigned + add_user_assigned = {x.lower() for x in (mi_user_assigned or [])} + + updated_system_assigned = existing_system_identity or add_system_assigned + updated_user_assigned = list(existing_user_identities.union(add_user_assigned)) + + identity_types, user_assigned_identities = _build_identities_info_from_system_user_assigned( + cmd, updated_system_assigned, updated_user_assigned) + + encryption_set_identity = EncryptionSetIdentity(type=identity_types, + user_assigned_identities=user_assigned_identities) + + disk_encryption_set_update = DiskEncryptionSetUpdate() + disk_encryption_set_update.identity = encryption_set_identity + return patch_disk_encryption_set(cmd, resource_group_name, disk_encryption_set_name, disk_encryption_set_update) + + disk_encryption_set = assign_identity_helper(cmd.cli_ctx, getter, setter) + return disk_encryption_set.identity + + +def remove_disk_encryption_set_identity(cmd, client, resource_group_name, disk_encryption_set_name, + mi_system_assigned=None, mi_user_assigned=None): + DiskEncryptionSetUpdate = cmd.get_models('DiskEncryptionSetUpdate', operation_group='disk_encryption_sets') + client = _compute_client_factory(cmd.cli_ctx) + + def getter(cmd, resource_group_name, disk_encryption_set_name): + return client.disk_encryption_sets.get(resource_group_name, disk_encryption_set_name) + + def setter(resource_group_name, disk_encryption_set_name, disk_encryption_set): + disk_encryption_set_update = DiskEncryptionSetUpdate(identity=disk_encryption_set.identity) + return client.disk_encryption_sets.begin_update(resource_group_name, disk_encryption_set_name, + disk_encryption_set_update) + + return _remove_disk_encryption_set_identities(cmd, resource_group_name, disk_encryption_set_name, + mi_system_assigned, mi_user_assigned, getter, setter) + + +def show_disk_encryption_set_identity(cmd, resource_group_name, disk_encryption_set_name): + client = _compute_client_factory(cmd.cli_ctx) + return client.disk_encryption_sets.get(resource_group_name, disk_encryption_set_name).identity + # endregion diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_identity.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_identity.yaml new file mode 100644 index 00000000000..b01eea1a059 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_disk_encryption_set_identity.yaml @@ -0,0 +1,4131 @@ +interactions: +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + ParameterSetName: + - --display-name + User-Agent: + - python/3.8.0 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications?$filter=startswith%28displayName%2C%27test-des-app-000007%27%29 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '87' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:34 GMT + odata-version: + - '4.0' + request-id: + - a88e4f06-2b31-4158-8089-acd6acb66f85 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"SE1PEPF0000091A"}}' + x-ms-resource-unit: + - '2' + status: + code: 200 + message: OK +- request: + body: '{"displayName": "test-des-app-000007", "keyCredentials": []}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app create + Connection: + - keep-alive + Content-Length: + - '60' + Content-Type: + - application/json + ParameterSetName: + - --display-name + User-Agent: + - python/3.8.0 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 + method: POST + uri: https://graph.microsoft.com/v1.0/applications + response: + body: + string: '{"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#applications/$entity", + "id": "bf43a6aa-4d46-4f2e-947a-b2d6802f9bc4", "deletedDateTime": null, "appId": + "de5f4bce-a4c4-4ab9-8809-32268cd6fc59", "applicationTemplateId": null, "disabledByMicrosoftStatus": + null, "createdDateTime": "2022-06-29T13:03:35.7668804Z", "displayName": "test-des-app-000007", + "description": null, "groupMembershipClaims": null, "identifierUris": [], + "isDeviceOnlyAuthSupported": null, "isFallbackPublicClient": null, "notes": + null, "publisherDomain": "AzureSDKTeam.onmicrosoft.com", "serviceManagementReference": + null, "signInAudience": "AzureADandPersonalMicrosoftAccount", "tags": [], + "tokenEncryptionKeyId": null, "defaultRedirectUri": null, "certification": + null, "optionalClaims": null, "addIns": [], "api": {"acceptMappedClaims": + null, "knownClientApplications": [], "requestedAccessTokenVersion": 2, "oauth2PermissionScopes": + [], "preAuthorizedApplications": []}, "appRoles": [], "info": {"logoUrl": + null, "marketingUrl": null, "privacyStatementUrl": null, "supportUrl": null, + "termsOfServiceUrl": null}, "keyCredentials": [], "parentalControlSettings": + {"countriesBlockedForMinors": [], "legalAgeGroupRule": "Allow"}, "passwordCredentials": + [], "publicClient": {"redirectUris": []}, "requiredResourceAccess": [], "verifiedPublisher": + {"displayName": null, "verifiedPublisherId": null, "addedDateTime": null}, + "web": {"homePageUrl": null, "logoutUrl": null, "redirectUris": [], "implicitGrantSettings": + {"enableAccessTokenIssuance": false, "enableIdTokenIssuance": false}}, "spa": + {"redirectUris": []}}' + headers: + cache-control: + - no-cache + content-length: + - '1594' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:36 GMT + location: + - https://graph.microsoft.com/v2/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a/directoryObjects/bf43a6aa-4d46-4f2e-947a-b2d6802f9bc4/Microsoft.DirectoryServices.Application + odata-version: + - '4.0' + request-id: + - c164f0ce-d86b-4f5e-a195-6e9d8ec90b58 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"001","RoleInstance":"SE1PEPF00001FEC"}}' + x-ms-resource-unit: + - '1' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:02:57.1Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1023' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + Content-Type: + - application/json + User-Agent: + - azsdk-python-keyvault-keys/4.5.1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.3 + response: + body: + string: '{"error":{"code":"Unauthorized","message":"AKV10000: Request is missing + a Bearer or PoP token."}}' + headers: + cache-control: + - no-cache + content-length: + - '97' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:41 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + www-authenticate: + - Bearer authorization="https://login.windows.net/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + resource="https://vault.azure.net" + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=183.195.35.123;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - eastus2euap + x-ms-keyvault-service-version: + - 1.9.444.2 + status: + code: 401 + message: Unauthorized +- request: + body: '{"kty": "RSA", "attributes": {"enabled": true}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '47' + Content-Type: + - application/json + User-Agent: + - azsdk-python-keyvault-keys/4.5.1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://vault-000002.vault.azure.net/keys/key-000003/create?api-version=7.3 + response: + body: + string: '{"key":{"kid":"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11","kty":"RSA","key_ops":["encrypt","decrypt","sign","verify","wrapKey","unwrapKey"],"n":"76UeXiviH1jVVwKfWcfzCHVrbxJaEzKz9BojL0u0977LYSkaD7wyGvvXPho3pnGuiH2962mfYuyBnpjeNQc95iwZHo_8Qe3WUOECME0jRz1MDOdczMI4ptDa4oALb20pdLh80XBWQLDwyQmhQnRj_h-Hp8OcMf-l2DAMvPgq-M1S1a7Nh4KDLhn1Akup_LtjVZSWQQSSr3QZ8qB1Lt05guwt_6SsEewd2HYugO4x6Z3hqqP8-YHtnSrUnGEC73ToKGtB9WhVuUuRN6frmR4blt4IHIdvbdCcFbKaqjNWprWZqUVCPCtfPfB8A8ernx1ffoxJs0x9xyIx4B7jTzA37Q","e":"AQAB"},"attributes":{"enabled":true,"created":1656507823,"updated":1656507823,"recoveryLevel":"CustomizedRecoverable","recoverableDays":7}}' + headers: + cache-control: + - no-cache + content-length: + - '677' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000;includeSubDomains + x-content-type-options: + - nosniff + x-ms-keyvault-network-info: + - conn_type=Ipv4;addr=183.195.35.123;act_addr_fam=InterNetwork; + x-ms-keyvault-region: + - eastus2euap + x-ms-keyvault-service-version: + - 1.9.444.2 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001","name":"cli_test_disk_encryption_set_identity_000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T13:02:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:44 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-msi/6.0.1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1?api-version=2021-09-30-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1","name":"identity1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"eastus2euap","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","clientId":"765a104c-ce86-4bd2-a094-4d76ae2a12ed"}}' + headers: + cache-control: + - no-cache + content-length: + - '469' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:03:58 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001","name":"cli_test_disk_encryption_set_identity_000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T13:02:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '27' + Content-Type: + - application/json + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-msi/6.0.1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2?api-version=2021-09-30-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2","name":"identity2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"eastus2euap","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"4763984c-ef43-40a8-977a-f417721504da","clientId":"a085d6e3-753a-4802-a436-55c31f77b429"}}' + headers: + cache-control: + - no-cache + content-length: + - '469' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:10 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.KeyVault/vaults/hangkey","name":"hangkey","type":"Microsoft.KeyVault/vaults","location":"koreasouth","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/python-devops-key","name":"python-devops-key","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/SDKAutoPipelineSecrets","name":"SDKAutoPipelineSecrets","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.KeyVault/vaults/ystestkv","name":"ystestkv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab12844","name":"zblab12844","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab17977","name":"zblab17977","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab7701","name":"zblab7701","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblabc2183480","name":"zblabc2183480","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2423' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04: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: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:02:57.1Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1023' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2", + "permissions": {"keys": ["all"], "secrets": ["all"], "certificates": ["all"], + "storage": ["all"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": + "cd71d1e4-e85e-41ca-9773-7244b34f2fb8", "permissions": {"keys": ["wrapKey", + "get", "unwrapKey"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": + 7, "enablePurgeProtection": true, "provisioningState": "Succeeded", "publicNetworkAccess": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '781' + Content-Type: + - application/json + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:04:13.116Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1180' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.KeyVault/vaults/hangkey","name":"hangkey","type":"Microsoft.KeyVault/vaults","location":"koreasouth","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/python-devops-key","name":"python-devops-key","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/SDKAutoPipelineSecrets","name":"SDKAutoPipelineSecrets","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.KeyVault/vaults/ystestkv","name":"ystestkv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab12844","name":"zblab12844","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab17977","name":"zblab17977","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab7701","name":"zblab7701","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblabc2183480","name":"zblabc2183480","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2423' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:13 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:04:13.116Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1180' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2", + "permissions": {"keys": ["all"], "secrets": ["all"], "certificates": ["all"], + "storage": ["all"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": + "cd71d1e4-e85e-41ca-9773-7244b34f2fb8", "permissions": {"keys": ["wrapKey", + "get", "unwrapKey"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "4763984c-ef43-40a8-977a-f417721504da", "permissions": {"keys": + ["wrapKey", "get", "unwrapKey"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": + 7, "enablePurgeProtection": true, "provisioningState": "Succeeded", "publicNetworkAccess": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '945' + Content-Type: + - application/json + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:04:15.752Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"4763984c-ef43-40a8-977a-f417721504da","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1335' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --mi-user-assigned --federated-client-id + --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001","name":"cli_test_disk_encryption_set_identity_000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T13:02:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "identity": {"type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": + {}}}, "properties": {"encryptionType": "EncryptionAtRestWithCustomerKey", "activeKey": + {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11"}, + "federatedClientId": "de5f4bce-a4c4-4ab9-8809-32268cd6fc59"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + Content-Length: + - '728' + Content-Type: + - application/json + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --mi-user-assigned --federated-client-id + --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"location\": \"eastus2euap\",\r\n \"identity\": {\r\n \"type\": + \"SystemAssigned, UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {}\r\n }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/8f02e8a8-43a3-482c-87b7-c3e18849ec95?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:28 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/8f02e8a8-43a3-482c-87b7-c3e18849ec95?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;99,Microsoft.Compute/HighCostDiskEncryptionSet30Min;299 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --mi-user-assigned --federated-client-id + --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/8f02e8a8-43a3-482c-87b7-c3e18849ec95?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:04:26.7606125+00:00\",\r\n \"endTime\": + \"2022-06-29T13:04:28.6044296+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned, + UserAssigned\",\"principalId\":\"63088519-4e61-468f-a352-fd3d469be6cf\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"8f02e8a8-43a3-482c-87b7-c3e18849ec95\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1417' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49998,Microsoft.Compute/GetOperation30Min;399998 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --mi-user-assigned --federated-client-id + --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:04:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119937 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-user-assigned --federated-client-id --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001","name":"cli_test_disk_encryption_set_identity_000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T13:02:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:05:00 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "identity": {"type": "UserAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": + {}}}, "properties": {"encryptionType": "EncryptionAtRestWithCustomerKey", "activeKey": + {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11"}, + "federatedClientId": "de5f4bce-a4c4-4ab9-8809-32268cd6fc59"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + Content-Length: + - '712' + Content-Type: + - application/json + ParameterSetName: + - -g -n --key-url --source-vault --mi-user-assigned --federated-client-id --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"location\": \"eastus2euap\",\r\n \"identity\": {\r\n \"type\": + \"UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {}\r\n }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/873abd22-f7d4-43a8-8ddc-095e55064294?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '850' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:05:07 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/873abd22-f7d4-43a8-8ddc-095e55064294?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;98,Microsoft.Compute/HighCostDiskEncryptionSet30Min;298 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-user-assigned --federated-client-id --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/873abd22-f7d4-43a8-8ddc-095e55064294?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:05:07.0741153+00:00\",\r\n \"endTime\": + \"2022-06-29T13:05:07.8241317+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des2-000005\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"873abd22-f7d4-43a8-8ddc-095e55064294\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1298' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:05:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399996 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-user-assigned --federated-client-id --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1243' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:05:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14988,Microsoft.Compute/LowCostGet30Min;119942 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001","name":"cli_test_disk_encryption_set_identity_000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T13:02:43Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '371' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:05:42 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "identity": {"type": "SystemAssigned"}, "properties": + {"encryptionType": "EncryptionAtRestWithCustomerKey", "activeKey": {"sourceVault": + {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + Content-Length: + - '437' + Content-Type: + - application/json + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des3-000006?api-version=2022-03-02 + response: + body: + string: "{\r\n \"location\": \"eastus2euap\",\r\n \"identity\": {\r\n \"type\": + \"SystemAssigned\"\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n + \ \"sourceVault\": {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"provisioningState\": \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/15b437b5-5927-45e5-be89-d406d0c1364e?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '551' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:05:53 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/15b437b5-5927-45e5-be89-d406d0c1364e?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;97,Microsoft.Compute/HighCostDiskEncryptionSet30Min;297 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/15b437b5-5927-45e5-be89-d406d0c1364e?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:05:54.0496824+00:00\",\r\n \"endTime\": + \"2022-06-29T13:05:54.1277862+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des3-000006\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des3-000006\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"8b79f140-1970-476c-87a8-bfb4bd0df543\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"15b437b5-5927-45e5-be89-d406d0c1364e\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1029' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:23 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49994,Microsoft.Compute/GetOperation30Min;399994 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set create + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --mi-system-assigned --encryption-type + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des3-000006?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des3-000006\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des3-000006\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"8b79f140-1970-476c-87a8-bfb4bd0df543\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '929' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14985,Microsoft.Compute/LowCostGet30Min;119939 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.KeyVault/vaults/hangkey","name":"hangkey","type":"Microsoft.KeyVault/vaults","location":"koreasouth","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/python-devops-key","name":"python-devops-key","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/SDKAutoPipelineSecrets","name":"SDKAutoPipelineSecrets","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.KeyVault/vaults/ystestkv","name":"ystestkv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab12844","name":"zblab12844","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab17977","name":"zblab17977","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab7701","name":"zblab7701","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblabc2183480","name":"zblabc2183480","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2423' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:25 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:04:15.752Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"4763984c-ef43-40a8-977a-f417721504da","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1335' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:26 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2", + "permissions": {"keys": ["all"], "secrets": ["all"], "certificates": ["all"], + "storage": ["all"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": + "cd71d1e4-e85e-41ca-9773-7244b34f2fb8", "permissions": {"keys": ["wrapKey", + "get", "unwrapKey"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "4763984c-ef43-40a8-977a-f417721504da", "permissions": {"keys": + ["wrapKey", "get", "unwrapKey"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "63088519-4e61-468f-a352-fd3d469be6cf", "permissions": {"keys": + ["wrapKey", "get", "unwrapKey"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": + 7, "enablePurgeProtection": true, "provisioningState": "Succeeded", "publicNetworkAccess": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '1109' + Content-Type: + - application/json + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:06:27.7Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"4763984c-ef43-40a8-977a-f417721504da","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"63088519-4e61-468f-a352-fd3d469be6cf","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1488' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:27 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.KeyVault%2Fvaults%27&api-version=2015-11-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/hang-rg/providers/Microsoft.KeyVault/vaults/hangkey","name":"hangkey","type":"Microsoft.KeyVault/vaults","location":"koreasouth","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/python-devops-key","name":"python-devops-key","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/python-sdk-test/providers/Microsoft.KeyVault/vaults/SDKAutoPipelineSecrets","name":"SDKAutoPipelineSecrets","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.KeyVault/vaults/ystestkv","name":"ystestkv","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab12844","name":"zblab12844","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab17977","name":"zblab17977","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"3610e867-afa2-4bf9-90b7-2d85919815b3","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblab7701","name":"zblab7701","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/zb_test/providers/Microsoft.KeyVault/vaults/zblabc2183480","name":"zblabc2183480","type":"Microsoft.KeyVault/vaults","location":"eastus","tags":{"hidden-DevTestLabs-LabUId":"301109ba-f89e-4ba1-8c0c-be6e91e47840","CreatedBy":"DevTestLabs"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2423' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:06:27.7Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"4763984c-ef43-40a8-977a-f417721504da","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"63088519-4e61-468f-a352-fd3d469be6cf","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1488' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "tags": {}, "properties": {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": {"family": "A", "name": "standard"}, "accessPolicies": [{"tenantId": + "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": "0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2", + "permissions": {"keys": ["all"], "secrets": ["all"], "certificates": ["all"], + "storage": ["all"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", "objectId": + "cd71d1e4-e85e-41ca-9773-7244b34f2fb8", "permissions": {"keys": ["wrapKey", + "get", "unwrapKey"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "4763984c-ef43-40a8-977a-f417721504da", "permissions": {"keys": + ["wrapKey", "get", "unwrapKey"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "63088519-4e61-468f-a352-fd3d469be6cf", "permissions": {"keys": + ["wrapKey", "get", "unwrapKey"]}}, {"tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "8b79f140-1970-476c-87a8-bfb4bd0df543", "permissions": {"keys": + ["wrapKey", "get", "unwrapKey"]}}], "vaultUri": "https://vault-000002.vault.azure.net/", + "enabledForDeployment": false, "enableSoftDelete": true, "softDeleteRetentionInDays": + 7, "enablePurgeProtection": true, "provisioningState": "Succeeded", "publicNetworkAccess": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - keyvault set-policy + Connection: + - keep-alive + Content-Length: + - '1273' + Content-Type: + - application/json + ParameterSetName: + - -n --object-id --key-permissions + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-keyvault/9.3.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002?api-version=2021-06-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002","name":"vault-000002","type":"Microsoft.KeyVault/vaults","location":"eastus2euap","tags":{},"systemData":{"createdBy":"zhuyan@microsoft.com","createdByType":"User","createdAt":"2022-06-29T13:02:57.1Z","lastModifiedBy":"zhuyan@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-06-29T13:06:31.797Z"},"properties":{"sku":{"family":"A","name":"standard"},"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","accessPolicies":[{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"0581142e-ae8f-4bc0-9a0d-ffb7cbad05b2","permissions":{"keys":["all"],"secrets":["all"],"certificates":["all"],"storage":["all"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"cd71d1e4-e85e-41ca-9773-7244b34f2fb8","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"4763984c-ef43-40a8-977a-f417721504da","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"63088519-4e61-468f-a352-fd3d469be6cf","permissions":{"keys":["wrapKey","get","unwrapKey"]}},{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","objectId":"8b79f140-1970-476c-87a8-bfb4bd0df543","permissions":{"keys":["wrapKey","get","unwrapKey"]}}],"enabledForDeployment":false,"enableSoftDelete":true,"softDeleteRetentionInDays":7,"enablePurgeProtection":true,"vaultUri":"https://vault-000002.vault.azure.net/","provisioningState":"Succeeded","publicNetworkAccess":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '1645' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-IIS/10.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-aspnet-version: + - 4.0.30319 + x-content-type-options: + - nosniff + x-ms-keyvault-service-version: + - 1.5.413.0 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:33 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14984,Microsoft.Compute/LowCostGet30Min;119938 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "identity": {"type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": + {}}}, "properties": {"encryptionType": "EncryptionAtRestWithCustomerKey", "activeKey": + {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11"}, + "federatedClientId": "None"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + Content-Length: + - '696' + Content-Type: + - application/json + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"location\": \"eastus2euap\",\r\n \"identity\": {\r\n \"type\": + \"SystemAssigned, UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {}\r\n }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"None\",\r\n \"provisioningState\": \"Updating\"\r\n + \ }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/0643eca1-a229-40fc-8471-47afe52cf29a?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '834' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:06:37 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/0643eca1-a229-40fc-8471-47afe52cf29a?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;96,Microsoft.Compute/HighCostDiskEncryptionSet30Min;296 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/0643eca1-a229-40fc-8471-47afe52cf29a?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:06:38.1761231+00:00\",\r\n \"endTime\": + \"2022-06-29T13:06:38.4731691+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned, + UserAssigned\",\"principalId\":\"63088519-4e61-468f-a352-fd3d469be6cf\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"0643eca1-a229-40fc-8471-47afe52cf29a\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1358' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399992 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1310' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:08 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14983,Microsoft.Compute/LowCostGet30Min;119935 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"provisioningState\": \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1310' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14982,Microsoft.Compute/LowCostGet30Min;119934 + status: + code: 200 + message: OK +- request: + body: '{"location": "eastus2euap", "identity": {"type": "SystemAssigned, UserAssigned", + "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": + {}}}, "properties": {"encryptionType": "EncryptionAtRestWithCustomerKey", "activeKey": + {"sourceVault": {"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002"}, + "keyUrl": "https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11"}, + "federatedClientId": "de5f4bce-a4c4-4ab9-8809-32268cd6fc59"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + Content-Length: + - '728' + Content-Type: + - application/json + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"location\": \"eastus2euap\",\r\n \"identity\": {\r\n \"type\": + \"SystemAssigned, UserAssigned\",\r\n \"userAssignedIdentities\": {\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {}\r\n }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d86c4d5d-3a5a-49d7-8264-0910f0dff0ba?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '866' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:11 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d86c4d5d-3a5a-49d7-8264-0910f0dff0ba?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;96,Microsoft.Compute/HighCostDiskEncryptionSet30Min;295 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d86c4d5d-3a5a-49d7-8264-0910f0dff0ba?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:07:11.7551646+00:00\",\r\n \"endTime\": + \"2022-06-29T13:07:12.3176846+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned, + UserAssigned\",\"principalId\":\"63088519-4e61-468f-a352-fd3d469be6cf\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"d86c4d5d-3a5a-49d7-8264-0910f0dff0ba\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1417' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:41 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49992,Microsoft.Compute/GetOperation30Min;399990 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set update + Connection: + - keep-alive + ParameterSetName: + - -g -n --key-url --source-vault --federated-client-id + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14982,Microsoft.Compute/LowCostGet30Min;119929 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14981,Microsoft.Compute/LowCostGet30Min;119928 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + Content-Length: + - '40' + Content-Type: + - application/json + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/481943af-51fb-42f9-bb1e-93bfc2537d9c?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1375' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:07:46 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/481943af-51fb-42f9-bb1e-93bfc2537d9c?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;294 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/481943af-51fb-42f9-bb1e-93bfc2537d9c?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:07:46.7502533+00:00\",\r\n \"endTime\": + \"2022-06-29T13:07:47.1877717+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"63088519-4e61-468f-a352-fd3d469be6cf\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"481943af-51fb-42f9-bb1e-93bfc2537d9c\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1088' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399988 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '995' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:17 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14978,Microsoft.Compute/LowCostGet30Min;119923 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '995' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14977,Microsoft.Compute/LowCostGet30Min;119922 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "None"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"63088519-4e61-468f-a352-fd3d469be6cf\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d97a8cef-da9e-473c-9e52-2911e19107de?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '994' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d97a8cef-da9e-473c-9e52-2911e19107de?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;293 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d97a8cef-da9e-473c-9e52-2911e19107de?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:08:22.6105302+00:00\",\r\n \"endTime\": + \"2022-06-29T13:08:22.6730129+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"d97a8cef-da9e-473c-9e52-2911e19107de\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '948' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399986 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14975,Microsoft.Compute/LowCostGet30Min;119917 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14974,Microsoft.Compute/LowCostGet30Min;119916 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1243' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14973,Microsoft.Compute/LowCostGet30Min;119915 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "None"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/bf75efd6-0795-4663-9c78-1053384ea9f8?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1242' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:08:59 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/bf75efd6-0795-4663-9c78-1053384ea9f8?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;292 + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/bf75efd6-0795-4663-9c78-1053384ea9f8?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:08:59.314519+00:00\",\r\n \"endTime\": + \"2022-06-29T13:08:59.3613739+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des2-000005\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"bf75efd6-0795-4663-9c78-1053384ea9f8\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '947' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:09:28 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399984 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:09:29 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14975,Microsoft.Compute/LowCostGet30Min;119912 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:09:31 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14974,Microsoft.Compute/LowCostGet30Min;119911 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:09:32 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14973,Microsoft.Compute/LowCostGet30Min;119910 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + Content-Length: + - '40' + Content-Type: + - application/json + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/ae63944c-2a25-4393-a545-77c96b0b2b89?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '824' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:09:35 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/ae63944c-2a25-4393-a545-77c96b0b2b89?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;291 + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/ae63944c-2a25-4393-a545-77c96b0b2b89?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:09:35.3156484+00:00\",\r\n \"endTime\": + \"2022-06-29T13:09:35.5031335+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des2-000005\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"710a2435-5664-41fa-a20c-023bb313c8e5\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"ae63944c-2a25-4393-a545-77c96b0b2b89\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1088' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:05 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49991,Microsoft.Compute/GetOperation30Min;399982 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des2-000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des2-000005\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": + \"710a2435-5664-41fa-a20c-023bb313c8e5\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n + \ },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '995' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:06 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14976,Microsoft.Compute/LowCostGet30Min;119917 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '825' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14975,Microsoft.Compute/LowCostGet30Min;119916 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1": + {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + Content-Length: + - '254' + Content-Type: + - application/json + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": {\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d1591720-0407-47d9-b28a-61a205ede3b6?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '824' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:11 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d1591720-0407-47d9-b28a-61a205ede3b6?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;290 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/d1591720-0407-47d9-b28a-61a205ede3b6?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:10:11.4269814+00:00\",\r\n \"endTime\": + \"2022-06-29T13:10:12.4426349+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"d1591720-0407-47d9-b28a-61a205ede3b6\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1298' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399980 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --user-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1243' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14975,Microsoft.Compute/LowCostGet30Min;119911 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1243' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14974,Microsoft.Compute/LowCostGet30Min;119910 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned, UserAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1": + {}}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + Content-Length: + - '270' + Content-Type: + - application/json + ParameterSetName: + - -g -n --system-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/b7506157-d94f-4ee4-938c-71b445dfcd50?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1242' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:10:47 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/b7506157-d94f-4ee4-938c-71b445dfcd50?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;289 + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/b7506157-d94f-4ee4-938c-71b445dfcd50?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:10:48.3810142+00:00\",\r\n \"endTime\": + \"2022-06-29T13:10:48.7091605+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"SystemAssigned, + UserAssigned\",\"principalId\":\"4a4df963-db15-4f93-8c35-1803c1432f81\",\"tenantId\":\"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"b7506157-d94f-4ee4-938c-71b445dfcd50\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1417' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399978 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity assign + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"4a4df963-db15-4f93-8c35-1803c1432f81\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14973,Microsoft.Compute/LowCostGet30Min;119905 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"4a4df963-db15-4f93-8c35-1803c1432f81\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1376' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:19 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14972,Microsoft.Compute/LowCostGet30Min;119904 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "UserAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + Content-Length: + - '38' + Content-Type: + - application/json + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"SystemAssigned, UserAssigned\",\r\n \"principalId\": + \"4a4df963-db15-4f93-8c35-1803c1432f81\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n + \ \"userAssignedIdentities\": {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Updating\"\r\n }\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/582c5433-1d18-408d-b14f-1035adc7cf2d?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1375' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:22 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/582c5433-1d18-408d-b14f-1035adc7cf2d?p=88376d82-510f-4098-9fed-60d0fb8eb079&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskEncryptionSet3Min;95,Microsoft.Compute/HighCostDiskEncryptionSet30Min;288 + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus2euap/DiskOperations/582c5433-1d18-408d-b14f-1035adc7cf2d?p=88376d82-510f-4098-9fed-60d0fb8eb079&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T13:11:22.7099673+00:00\",\r\n \"endTime\": + \"2022-06-29T13:11:23.100598+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\"name\":\"des1-000004\",\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\"type\":\"Microsoft.Compute/diskEncryptionSets\",\"location\":\"eastus2euap\",\"identity\":{\"type\":\"UserAssigned\",\"userAssignedIdentities\":{\"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\":{\"principalId\":\"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\"clientId\":\"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"}}},\"properties\":{\"activeKey\":{\"sourceVault\":{\"id\":\"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"},\"keyUrl\":\"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"},\"encryptionType\":\"EncryptionAtRestWithCustomerKey\",\"federatedClientId\":\"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\"provisioningState\":\"Succeeded\"}}\r\n + \ },\r\n \"name\": \"582c5433-1d18-408d-b14f-1035adc7cf2d\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1297' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:52 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49990,Microsoft.Compute/GetOperation30Min;399976 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity remove + Connection: + - keep-alive + ParameterSetName: + - -g -n --system-assigned --yes + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1243' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:53 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14974,Microsoft.Compute/LowCostGet30Min;119899 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk-encryption-set identity show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.0 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"des1-000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.Compute/diskEncryptionSets/des1-000004\",\r\n + \ \"type\": \"Microsoft.Compute/diskEncryptionSets\",\r\n \"location\": \"eastus2euap\",\r\n + \ \"identity\": {\r\n \"type\": \"UserAssigned\",\r\n \"userAssignedIdentities\": + {\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_disk_encryption_set_identity_000001/providers/microsoft.managedidentity/userassignedidentities/identity1\": + {\r\n \"principalId\": \"cd71d1e4-e85e-41ca-9773-7244b34f2fb8\",\r\n + \ \"clientId\": \"765a104c-ce86-4bd2-a094-4d76ae2a12ed\"\r\n }\r\n + \ }\r\n },\r\n \"properties\": {\r\n \"activeKey\": {\r\n \"sourceVault\": + {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_disk_encryption_set_identity_000001/providers/Microsoft.KeyVault/vaults/vault-000002\"\r\n + \ },\r\n \"keyUrl\": \"https://vault-000002.vault.azure.net/keys/key-000003/d704b79829034eb4b26e4761ff9a3a11\"\r\n + \ },\r\n \"encryptionType\": \"EncryptionAtRestWithCustomerKey\",\r\n + \ \"federatedClientId\": \"de5f4bce-a4c4-4ab9-8809-32268cd6fc59\",\r\n \"provisioningState\": + \"Succeeded\"\r\n }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1243' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14973,Microsoft.Compute/LowCostGet30Min;119898 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + ParameterSetName: + - --id + User-Agent: + - python/3.8.0 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 + method: GET + uri: https://graph.microsoft.com/v1.0/applications?$filter=appId%20eq%20%27de5f4bce-a4c4-4ab9-8809-32268cd6fc59%27 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#applications","value":[{"id":"bf43a6aa-4d46-4f2e-947a-b2d6802f9bc4","deletedDateTime":null,"appId":"de5f4bce-a4c4-4ab9-8809-32268cd6fc59","applicationTemplateId":null,"disabledByMicrosoftStatus":null,"createdDateTime":"2022-06-29T13:03:35Z","displayName":"test-des-app-000007","description":null,"groupMembershipClaims":null,"identifierUris":[],"isDeviceOnlyAuthSupported":null,"isFallbackPublicClient":null,"notes":null,"publisherDomain":"AzureSDKTeam.onmicrosoft.com","serviceManagementReference":null,"signInAudience":"AzureADandPersonalMicrosoftAccount","tags":[],"tokenEncryptionKeyId":null,"defaultRedirectUri":null,"certification":null,"optionalClaims":null,"addIns":[],"api":{"acceptMappedClaims":null,"knownClientApplications":[],"requestedAccessTokenVersion":2,"oauth2PermissionScopes":[],"preAuthorizedApplications":[]},"appRoles":[],"info":{"logoUrl":null,"marketingUrl":null,"privacyStatementUrl":null,"supportUrl":null,"termsOfServiceUrl":null},"keyCredentials":[],"parentalControlSettings":{"countriesBlockedForMinors":[],"legalAgeGroupRule":"Allow"},"passwordCredentials":[],"publicClient":{"redirectUris":[]},"requiredResourceAccess":[],"verifiedPublisher":{"displayName":null,"verifiedPublisherId":null,"addedDateTime":null},"web":{"homePageUrl":null,"logoutUrl":null,"redirectUris":[],"implicitGrantSettings":{"enableAccessTokenIssuance":false,"enableIdTokenIssuance":false}},"spa":{"redirectUris":[]}}]}' + headers: + cache-control: + - no-cache + content-length: + - '1485' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 29 Jun 2022 13:11:55 GMT + odata-version: + - '4.0' + request-id: + - 828b8c91-48db-4b03-838a-10ef384fd2eb + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF000019D9"}}' + x-ms-resource-unit: + - '2' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad app delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - --id + User-Agent: + - python/3.8.0 (Windows-10-10.0.19041-SP0) AZURECLI/2.37.0 + method: DELETE + uri: https://graph.microsoft.com/v1.0/applications/bf43a6aa-4d46-4f2e-947a-b2d6802f9bc4 + response: + body: + string: '' + headers: + cache-control: + - no-cache + date: + - Wed, 29 Jun 2022 13:11:57 GMT + request-id: + - 3471008b-af29-4301-8364-b9b68148c64d + strict-transport-security: + - max-age=31536000 + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"Korea Central","Slice":"E","Ring":"3","ScaleUnit":"003","RoleInstance":"SE1PEPF00000A32"}}' + x-ms-resource-unit: + - '1' + status: + code: 204 + message: No Content +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 74e1c1850d1..19a71434953 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 @@ -6601,6 +6601,150 @@ def test_disk_encryption_set(self, resource_group, key_vault): self.check_pattern('virtualMachineProfile.storageProfile.dataDisks[1].managedDisk.diskEncryptionSet.id', self.kwargs['des3_pattern']) ]) + @ResourceGroupPreparer(name_prefix='cli_test_disk_encryption_set_identity_', location='eastus2euap') + @KeyVaultPreparer(name_prefix='vault-', name_len=20, key='vault', location='eastus2euap', + additional_params='--enable-purge-protection') + def test_disk_encryption_set_identity(self, resource_group, key_vault): + self.kwargs.update({ + 'key': self.create_random_name(prefix='key-', length=20), + 'des1': self.create_random_name(prefix='des1-', length=20), + 'des2': self.create_random_name(prefix='des2-', length=20), + 'des3': self.create_random_name(prefix='des3-', length=20), + 'identity1': 'identity1', + 'identity2': 'identity2', + 'appDisplayName': self.create_random_name(prefix='test-des-app-', length=20) + }) + + federated_client_id = self.cmd('ad app create --display-name {appDisplayName}').get_output_in_json()['appId'] + + vault_id = self.cmd('keyvault show -g {rg} -n {vault}').get_output_in_json()['id'] + kid = self.cmd('keyvault key create -n {key} --vault {vault} --protection software') \ + .get_output_in_json()['key']['kid'] + + self.kwargs.update({ + 'federated_client_id': federated_client_id, + 'vault_id': vault_id, + 'kid': kid + }) + + identity1_json = self.cmd('identity create -g {rg} -n {identity1}').get_output_in_json() + identity2_json = self.cmd('identity create -g {rg} -n {identity2}').get_output_in_json() + identity1_id = identity1_json['id'] + identity2_id = identity2_json['id'] + identity1_principalId = identity1_json['principalId'] + identity2_principalId = identity2_json['principalId'] + self.kwargs.update({ + 'identity1_id': identity1_id, + 'identity1_principalId': identity1_principalId, + 'identity2_id': identity2_id, + 'identity2_principalId': identity2_principalId + }) + + self.cmd( + 'keyvault set-policy -n {vault} --object-id {identity1_principalId} --key-permissions wrapKey unwrapKey get') + self.cmd( + 'keyvault set-policy -n {vault} --object-id {identity2_principalId} --key-permissions wrapKey unwrapKey get') + + # create disk encryption set with system and user assigned identity + des1_principalId = \ + self.cmd('disk-encryption-set create -g {rg} -n {des1} --key-url {kid} --source-vault {vault} ' + '--mi-system-assigned --mi-user-assigned {identity1_id} --federated-client-id {federated_client_id} ' + '--encryption-type EncryptionAtRestWithCustomerKey', checks=[ + self.check('federatedClientId', '{federated_client_id}'), + self.check('identity.type', 'SystemAssigned, UserAssigned'), + self.check('length(identity.userAssignedIdentities)', 1) + ]).get_output_in_json()['identity']['principalId'] + + # create disk encryption set with user assigned identity + self.cmd('disk-encryption-set create -g {rg} -n {des2} --key-url {kid} --source-vault {vault} ' + '--mi-user-assigned {identity1_id} --federated-client-id {federated_client_id} ' + '--encryption-type EncryptionAtRestWithCustomerKey', checks=[ + self.check('federatedClientId', '{federated_client_id}'), + self.check('identity.type', 'UserAssigned'), + self.check('length(identity.userAssignedIdentities)', 1) + ]) + + # create disk encryption set with system assigned identity + des3_principalId = \ + self.cmd('disk-encryption-set create -g {rg} -n {des3} --key-url {kid} --source-vault {vault} ' + '--mi-system-assigned --encryption-type EncryptionAtRestWithCustomerKey', checks=[ + self.check('identity.type', 'SystemAssigned'), + self.check('identity.userAssignedIdentities', 'None') + ]).get_output_in_json()['identity']['principalId'] + + self.kwargs.update({ + 'des1_principalId': des1_principalId, + 'des3_principalId': des3_principalId + }) + + self.cmd( + 'keyvault set-policy -n {vault} --object-id {des1_principalId} --key-permissions wrapKey unwrapKey get') + self.cmd( + 'keyvault set-policy -n {vault} --object-id {des3_principalId} --key-permissions wrapKey unwrapKey get') + + # clear federated client id of disk encryption set + self.cmd('disk-encryption-set update -g {rg} -n {des1} --key-url {kid} --source-vault {vault} ' + '--federated-client-id None', checks=[ + self.check('federatedClientId', 'None') + ]) + + # update federated client id of disk encryption set + self.cmd('disk-encryption-set update -g {rg} -n {des1} --key-url {kid} --source-vault {vault} ' + '--federated-client-id {federated_client_id}', checks=[ + self.check('federatedClientId', '{federated_client_id}') + ]) + + # remove user assigned identity from an existing disk encryption set + self.cmd('disk-encryption-set identity remove -g {rg} -n {des1} --user-assigned {identity1_id} --yes', checks=[ + self.check('type', 'SystemAssigned'), + self.check('userAssignedIdentities', 'None') + ]) + + # remove system assigned identity from an existing disk encryption set + self.cmd('disk-encryption-set identity remove -g {rg} -n {des1} --system-assigned --yes') + self.cmd('disk-encryption-set show -g {rg} -n {des1}', checks=[ + self.check('identity', 'None') + ]) + + # remove all user assigned identities from an existing disk encryption set + self.cmd('disk-encryption-set identity remove -g {rg} -n {des2} --user-assigned --yes') + self.cmd('disk-encryption-set show -g {rg} -n {des2}', checks=[ + self.check('identity', 'None') + ]) + + # assign neither system nor user assigned identity (the value of --user-assigned is none) + # to an existing disk encryption set + self.cmd('disk-encryption-set identity assign -g {rg} -n {des2} --user-assigned', checks=[ + self.check('type', 'SystemAssigned') + ]) + + # assign user assigned identity to an existing disk encryption set + self.cmd('disk-encryption-set identity assign -g {rg} -n {des1} --user-assigned {identity1_id}', checks=[ + self.check('type', 'UserAssigned'), + self.check('length(userAssignedIdentities)', 1) + ]) + + # assign system assigned identity to an existing disk encryption set + self.cmd('disk-encryption-set identity assign -g {rg} -n {des1} --system-assigned', checks=[ + self.check('type', 'SystemAssigned, UserAssigned'), + self.check('length(userAssignedIdentities)', 1) + ]) + + # remove system assigned identity from an existing disk encryption set + self.cmd('disk-encryption-set identity remove -g {rg} -n {des1} --system-assigned --yes', checks=[ + self.check('type', 'UserAssigned'), + self.check('length(userAssignedIdentities)', 1) + ]) + + # show managed identities of an existing disk encryption set + self.cmd('disk-encryption-set identity show -g {rg} -n {des1}', checks=[ + self.check('type', 'UserAssigned'), + self.check('length(userAssignedIdentities)', 1) + ]) + + # delete the application + self.cmd('ad app delete --id {federated_client_id}') + @ResourceGroupPreparer(name_prefix='cli_test_disk_encryption_set_update_', location='westcentralus') @KeyVaultPreparer(name_prefix='vault1-', name_len=20, key='vault1', parameter_name='key_vault1', location='westcentralus', additional_params='--enable-purge-protection') @KeyVaultPreparer(name_prefix='vault2-', name_len=20, key='vault2', parameter_name='key_vault2', location='westcentralus', additional_params='--enable-purge-protection')