Bicep 資源定義
devcenters/encryptionSets 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.DevCenter/devcenters/encryptionSets 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.DevCenter/devcenters/encryptionSets@2026-01-01-preview' = {
parent: resourceSymbolicName
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
devboxDisksEncryptionEnableStatus: 'string'
keyEncryptionKeyIdentity: {
type: 'string'
userAssignedIdentityResourceId: 'string'
}
keyEncryptionKeyUrl: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.DevCenter/devcenters/encryptionSets
| Name | Description | Value |
|---|---|---|
| 身分識別 | 受控識別屬性。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string Constraints: 最小長度 = 3 最大長度 = 63 模式 = ^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$ (必要) |
| 父代 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:devcenters |
| properties | 開發人員中心加密集的屬性。 | DevCenterEncryptionSetProperties |
| tags | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
DevCenterEncryptionSetProperties
| Name | Description | Value |
|---|---|---|
| devboxDisksEncryptionEnableStatus | Devbox 磁碟加密啟用或停用狀態。 指出是否啟用使用 DevCenter CMK 的 Devbox 磁碟加密。 | 'Disabled' 'Enabled' |
| keyEncryptionKeyIdentity | 用於金鑰保管庫訪問的託管標識配置。 | KeyEncryptionKeyIdentityUpdate |
| keyEncryptionKeyUrl | 金鑰加密金鑰 URL、版本設定或非版本設定。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 |
字串 |
KeyEncryptionKeyIdentityUpdate
| Name | Description | Value |
|---|---|---|
| 型別 | 用於金鑰保管庫訪問的託管標識類型。 | 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentityResourceId | 對於系統分配的標識,這將為 null。 對於使用者分配的標識,這應該是標識的資源ID。 | 字串 |
ManagedServiceIdentity
| Name | Description | Value |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentities
| Name | Description | Value |
|---|
UserAssignedIdentity
| Name | Description | Value |
|---|
ARM 樣本資源定義
devcenters/encryptionSets 資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.DevCenter/devcenters/encryptionSets 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.DevCenter/devcenters/encryptionSets",
"apiVersion": "2026-01-01-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"devboxDisksEncryptionEnableStatus": "string",
"keyEncryptionKeyIdentity": {
"type": "string",
"userAssignedIdentityResourceId": "string"
},
"keyEncryptionKeyUrl": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.DevCenter/devcenters/encryptionSets
| Name | Description | Value |
|---|---|---|
| apiVersion | API 版本 | 「2026-01-01-預覽」 |
| 身分識別 | 受控識別屬性。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string Constraints: 最小長度 = 3 最大長度 = 63 模式 = ^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$ (必要) |
| properties | 開發人員中心加密集的屬性。 | DevCenterEncryptionSetProperties |
| tags | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | 'Microsoft.DevCenter/devcenters/encryptionSets' |
DevCenterEncryptionSetProperties
| Name | Description | Value |
|---|---|---|
| devboxDisksEncryptionEnableStatus | Devbox 磁碟加密啟用或停用狀態。 指出是否啟用使用 DevCenter CMK 的 Devbox 磁碟加密。 | 'Disabled' 'Enabled' |
| keyEncryptionKeyIdentity | 用於金鑰保管庫訪問的託管標識配置。 | KeyEncryptionKeyIdentityUpdate |
| keyEncryptionKeyUrl | 金鑰加密金鑰 URL、版本設定或非版本設定。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 |
字串 |
KeyEncryptionKeyIdentityUpdate
| Name | Description | Value |
|---|---|---|
| 型別 | 用於金鑰保管庫訪問的託管標識類型。 | 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentityResourceId | 對於系統分配的標識,這將為 null。 對於使用者分配的標識,這應該是標識的資源ID。 | 字串 |
ManagedServiceIdentity
| Name | Description | Value |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentities
| Name | Description | Value |
|---|
UserAssignedIdentity
| Name | Description | Value |
|---|
Terraform (AzAPI 提供者) 資源定義
devcenters/encryptionSets 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
若要建立 Microsoft.DevCenter/devcenters/encryptionSets 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DevCenter/devcenters/encryptionSets@2026-01-01-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
devboxDisksEncryptionEnableStatus = "string"
keyEncryptionKeyIdentity = {
type = "string"
userAssignedIdentityResourceId = "string"
}
keyEncryptionKeyUrl = "string"
}
}
}
屬性值
Microsoft.DevCenter/devcenters/encryptionSets
| Name | Description | Value |
|---|---|---|
| 身分識別 | 受控識別屬性。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string Constraints: 最小長度 = 3 最大長度 = 63 模式 = ^[a-zA-Z0-9][a-zA-Z0-9-]{2,25}$ (必要) |
| parent_id | 此資源為父系之資源的標識碼。 | 類型的資源標識碼:devcenters |
| properties | 開發人員中心加密集的屬性。 | DevCenterEncryptionSetProperties |
| tags | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Microsoft.DevCenter/devcenters/encryptionSets@2026-01-01-preview」 |
DevCenterEncryptionSetProperties
| Name | Description | Value |
|---|---|---|
| devboxDisksEncryptionEnableStatus | Devbox 磁碟加密啟用或停用狀態。 指出是否啟用使用 DevCenter CMK 的 Devbox 磁碟加密。 | 'Disabled' 'Enabled' |
| keyEncryptionKeyIdentity | 用於金鑰保管庫訪問的託管標識配置。 | KeyEncryptionKeyIdentityUpdate |
| keyEncryptionKeyUrl | 金鑰加密金鑰 URL、版本設定或非版本設定。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 |
字串 |
KeyEncryptionKeyIdentityUpdate
| Name | Description | Value |
|---|---|---|
| 型別 | 用於金鑰保管庫訪問的託管標識類型。 | 'SystemAssigned' 'UserAssigned' |
| userAssignedIdentityResourceId | 對於系統分配的標識,這將為 null。 對於使用者分配的標識,這應該是標識的資源ID。 | 字串 |
ManagedServiceIdentity
| Name | Description | Value |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | Value |
|---|
UserAssignedIdentities
| Name | Description | Value |
|---|
UserAssignedIdentity
| Name | Description | Value |
|---|