PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/?api-version=2023-10-02

Updates (patches) a disk encryption set.

Servers

Path parameters

Name Type Required Description
diskEncryptionSetName String Yes

The name of the disk encryption set that is being created. The name can't be changed after the disk encryption set is created. Supported characters for the name are a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters.

subscriptionId String Yes

Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

resourceGroupName String Yes

The name of the resource group.

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
properties Object No

disk encryption set resource update properties.

properties.federatedClientId String No

Multi-tenant application client id to access key vault in a different tenant. Setting the value to 'None' will clear the property.

properties.rotationToLatestKeyVersionEnabled Boolean No

Set this flag to true to enable auto-updating of this disk encryption set to the latest key version.

properties.encryptionType String No

The type of key used to encrypt the data of the disk.

Possible values:

  • "EncryptionAtRestWithCustomerKey"
  • "EncryptionAtRestWithPlatformAndCustomerKeys"
  • "ConfidentialVmEncryptedWithCustomerKey"
properties.activeKey Object No

Key Vault Key Url to be used for server side encryption of Managed Disks and Snapshots

properties.activeKey.sourceVault Object No

The vault id is an Azure Resource Manager Resource id in the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}

properties.activeKey.sourceVault.id String No

Resource Id

properties.activeKey.keyUrl String Yes

Fully versioned Key Url pointing to a key in KeyVault. Version segment of the Url is required regardless of rotationToLatestKeyVersionEnabled value.

tags Object No

Resource tags

identity Object No

The managed identity for the disk encryption set. It should be given permission on the key vault before it can be used to encrypt disks.

identity.tenantId String No

The tenant id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-client-tenant-id header in the PUT request if the resource has a systemAssigned(implicit) identity

identity.type String No

The type of Managed Identity used by the DiskEncryptionSet. Only SystemAssigned is supported for new creations. Disk Encryption Sets can be updated with Identity type None during migration of subscription to a new Azure Active Directory tenant; it will cause the encrypted resources to lose access to the keys.

Possible values:

  • "SystemAssigned"
  • "UserAssigned"
  • "None"
  • "SystemAssigned, UserAssigned"
identity.userAssignedIdentities Object No

The list of user identities associated with the Virtual Machine. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.

identity.principalId String No

The object id of the Managed Identity Resource. This will be sent to the RP from ARM via the x-ms-identity-principal-id header in the PUT request if the resource has a systemAssigned(implicit) identity

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.