你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Compute diskEncryptionSets 2024-03-02

Bicep 资源定义

可以使用目标操作部署 diskEncryptionSets 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/diskEncryptionSets 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Compute/diskEncryptionSets@2024-03-02' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    activeKey: {
      keyUrl: 'string'
      sourceVault: {
        id: 'string'
      }
    }
    encryptionType: 'string'
    federatedClientId: 'string'
    rotationToLatestKeyVersionEnabled: bool
  }
  tags: {
    {customized property}: 'string'
  }
}

属性值

Microsoft.Compute/diskEncryptionSets

名字 描述 价值
标识 磁盘加密集的托管标识。 它应授予对密钥保管库的权限,然后才能用于加密磁盘。 EncryptionSetIdentity
位置 资源所在的地理位置 string (必需)
名字 资源名称 string (必需)
性能 EncryptionSet属性
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记

EncryptionSetIdentity

名字 描述 价值
类型 DiskEncryptionSet 使用的托管标识的类型。 新创建仅支持 SystemAssigned。 将订阅迁移到新的 Azure Active Directory 租户期间,可以使用标识类型 None 更新磁盘加密集;这将导致加密的资源失去对密钥的访问权限。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
用户分配的标识 与磁盘加密集关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 EncryptionSetIdentityUserAssignedIdentities

EncryptionSetIdentityUserAssignedIdentities

名字 描述 价值

EncryptionSet属性

名字 描述 价值
activeKey 此磁盘加密集当前使用的密钥保管库密钥。 KeyForDiskEncryptionSet
encryptionType 用于加密磁盘数据的密钥类型。 “ConfidentialVmEncryptedWithCustomerKey”
“EncryptionAtRestWithCustomerKey”
“EncryptionAtRestWithPlatformAndCustomerKeys”
federatedClientId 多租户应用程序客户端 ID,用于访问不同租户中的密钥保管库。 将值设置为“None”将清除该属性。 字符串
rotationToLatestKeyVersionEnabled 将此标志设置为 true 以启用此磁盘加密设置为最新密钥版本的自动更新。 布尔

KeyForDiskEncryptionSet

名字 描述 价值
keyUrl 的 指向 KeyVault 中的密钥的完全版本控制密钥 URL。 无论 rotationToLatestKeyVersionEnabled 值如何,都需要 URL 的版本段。 string (必需)
sourceVault (源保险库) 包含密钥或机密的 KeyVault 的资源 ID。 此属性是可选的,如果 KeyVault 订阅与磁盘加密集订阅不同,则不能使用此属性。 SourceVault

SourceVault

名字 描述 价值
身份证 资源 ID 字符串

TrackedResourceTags

名字 描述 价值

UserAssignedIdentitiesValue

名字 描述 价值

用法示例

Azure 验证模块

以下 Azure 验证模块 可用于部署此资源类型。

模块 描述
磁盘加密集 磁盘加密集的 AVM 资源模块

ARM 模板资源定义

可以使用目标操作部署 diskEncryptionSets 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/diskEncryptionSets 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Compute/diskEncryptionSets",
  "apiVersion": "2024-03-02",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "activeKey": {
      "keyUrl": "string",
      "sourceVault": {
        "id": "string"
      }
    },
    "encryptionType": "string",
    "federatedClientId": "string",
    "rotationToLatestKeyVersionEnabled": "bool"
  },
  "tags": {
    "{customized property}": "string"
  }
}

属性值

Microsoft.Compute/diskEncryptionSets

名字 描述 价值
apiVersion API 版本 '2024-03-02'
标识 磁盘加密集的托管标识。 它应授予对密钥保管库的权限,然后才能用于加密磁盘。 EncryptionSetIdentity
位置 资源所在的地理位置 string (必需)
名字 资源名称 string (必需)
性能 EncryptionSet属性
标签 资源标记 标记名称和值的字典。 请参阅模板 中的 标记
类型 资源类型 “Microsoft.Compute/diskEncryptionSets”

EncryptionSetIdentity

名字 描述 价值
类型 DiskEncryptionSet 使用的托管标识的类型。 新创建仅支持 SystemAssigned。 将订阅迁移到新的 Azure Active Directory 租户期间,可以使用标识类型 None 更新磁盘加密集;这将导致加密的资源失去对密钥的访问权限。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
用户分配的标识 与磁盘加密集关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 EncryptionSetIdentityUserAssignedIdentities

EncryptionSetIdentityUserAssignedIdentities

名字 描述 价值

EncryptionSet属性

名字 描述 价值
activeKey 此磁盘加密集当前使用的密钥保管库密钥。 KeyForDiskEncryptionSet
encryptionType 用于加密磁盘数据的密钥类型。 “ConfidentialVmEncryptedWithCustomerKey”
“EncryptionAtRestWithCustomerKey”
“EncryptionAtRestWithPlatformAndCustomerKeys”
federatedClientId 多租户应用程序客户端 ID,用于访问不同租户中的密钥保管库。 将值设置为“None”将清除该属性。 字符串
rotationToLatestKeyVersionEnabled 将此标志设置为 true 以启用此磁盘加密设置为最新密钥版本的自动更新。 布尔

KeyForDiskEncryptionSet

名字 描述 价值
keyUrl 的 指向 KeyVault 中的密钥的完全版本控制密钥 URL。 无论 rotationToLatestKeyVersionEnabled 值如何,都需要 URL 的版本段。 string (必需)
sourceVault (源保险库) 包含密钥或机密的 KeyVault 的资源 ID。 此属性是可选的,如果 KeyVault 订阅与磁盘加密集订阅不同,则不能使用此属性。 SourceVault

SourceVault

名字 描述 价值
身份证 资源 ID 字符串

TrackedResourceTags

名字 描述 价值

UserAssignedIdentitiesValue

名字 描述 价值

用法示例

Terraform (AzAPI 提供程序)资源定义

可以使用目标操作部署 diskEncryptionSets 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/diskEncryptionSets 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/diskEncryptionSets@2024-03-02"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      activeKey = {
        keyUrl = "string"
        sourceVault = {
          id = "string"
        }
      }
      encryptionType = "string"
      federatedClientId = "string"
      rotationToLatestKeyVersionEnabled = bool
    }
  }
}

属性值

Microsoft.Compute/diskEncryptionSets

名字 描述 价值
标识 磁盘加密集的托管标识。 它应授予对密钥保管库的权限,然后才能用于加密磁盘。 EncryptionSetIdentity
位置 资源所在的地理位置 string (必需)
名字 资源名称 string (必需)
性能 EncryptionSet属性
标签 资源标记 标记名称和值的字典。
类型 资源类型 “Microsoft.Compute/diskEncryptionSets@2024-03-02”

EncryptionSetIdentity

名字 描述 价值
类型 DiskEncryptionSet 使用的托管标识的类型。 新创建仅支持 SystemAssigned。 将订阅迁移到新的 Azure Active Directory 租户期间,可以使用标识类型 None 更新磁盘加密集;这将导致加密的资源失去对密钥的访问权限。 “None”
“SystemAssigned”
“SystemAssigned,UserAssigned”
“UserAssigned”
用户分配的标识 与磁盘加密集关联的用户标识列表。 用户标识字典密钥引用的格式为 ARM 资源 ID:“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 EncryptionSetIdentityUserAssignedIdentities

EncryptionSetIdentityUserAssignedIdentities

名字 描述 价值

EncryptionSet属性

名字 描述 价值
activeKey 此磁盘加密集当前使用的密钥保管库密钥。 KeyForDiskEncryptionSet
encryptionType 用于加密磁盘数据的密钥类型。 “ConfidentialVmEncryptedWithCustomerKey”
“EncryptionAtRestWithCustomerKey”
“EncryptionAtRestWithPlatformAndCustomerKeys”
federatedClientId 多租户应用程序客户端 ID,用于访问不同租户中的密钥保管库。 将值设置为“None”将清除该属性。 字符串
rotationToLatestKeyVersionEnabled 将此标志设置为 true 以启用此磁盘加密设置为最新密钥版本的自动更新。 布尔

KeyForDiskEncryptionSet

名字 描述 价值
keyUrl 的 指向 KeyVault 中的密钥的完全版本控制密钥 URL。 无论 rotationToLatestKeyVersionEnabled 值如何,都需要 URL 的版本段。 string (必需)
sourceVault (源保险库) 包含密钥或机密的 KeyVault 的资源 ID。 此属性是可选的,如果 KeyVault 订阅与磁盘加密集订阅不同,则不能使用此属性。 SourceVault

SourceVault

名字 描述 价值
身份证 资源 ID 字符串

TrackedResourceTags

名字 描述 价值

UserAssignedIdentitiesValue

名字 描述 价值

用法示例

Azure 验证模块

以下 Azure 验证模块 可用于部署此资源类型。

模块 描述
磁盘加密集 磁盘加密集的 AVM 资源模块