Bicep 資源定義
contextCaches 資源類型可部署於以下操作中:
- 資源群組 - 請參見 資源群組部署指令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
要建立一個 Microsoft.Storage/contextCaches 資源,請將以下 Bicep 加入你的範本。
resource symbolicname 'Microsoft.Storage/contextCaches@2026-09-01' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {
accountKind: 'string'
description: 'string'
encryption: {
customerManagedKeyEncryption: {
keyEncryptionKeyIdentity: {
delegatedIdentityClientId: 'string'
federatedClientId: 'string'
identityType: 'string'
userAssignedIdentityResourceId: 'string'
}
keyEncryptionKeyUrl: 'string'
}
infrastructureEncryption: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft。儲存/contextCache
| Name | Description | 價值觀 |
|---|---|---|
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | string 約束: 模式 = ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$ (必要) |
| properties | 此資源的資源特定屬性。 | ContextCacheProperties (必備) |
| tags | 資源標籤 | 標記名稱和值的字典。 請參考模板中的標籤 |
AzureResourceManagerCommonTypesCustomerManagedKeyEncryption
| Name | Description | 價值觀 |
|---|---|---|
| keyEncryptionKeyIdentity | 客戶管理的金鑰設定的所有身分識別組態,定義應用來驗證 金鑰保存庫 的身分識別。 | AzureResourceManagerCommonTypesKeyEncryptionKeyIdentity |
| 金鑰加密金鑰網址 | 金鑰加密金鑰 URL、版本設定或非版本設定。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 |
字串 |
AzureResourceManagerCommonTypesEncryption
| Name | Description | 價值觀 |
|---|---|---|
| customerManagedKeyEncryption | 資源的所有客戶自控金鑰加密屬性。 | AzureResourceManagerCommonTypesCustomerManagedKeyEncryption |
| 基礎設施加密 | 值已啟用並停用。 | '已禁用' '已啟用' |
AzureResourceManagerCommonTypesKeyEncryptionKeyIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 委託身份ClientId | 用來存取金鑰加密金鑰 URL 的委派身分識別。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 和 userAssignedIdentity 互斥 - 僅供內部使用。 | string 約束: 最小長度 = 36 最大長度 = 36 圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| federatedClientId | 應用程式用戶端身分識別,用來存取不同租使用者中的密鑰加密金鑰 URL。 例如:f83c6b1b-4d34-47e4-bb34-9d83df58b540 | string 約束: 最小長度 = 36 最大長度 = 36 圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| identityType | 要使用的身分識別類型。 值可以是 systemAssignedIdentity、userAssignedIdentity 或 delegatedResourceIdentity。 | “委託資源標識” 'systemAssignedIdentity' 'userAssignedIdentity' |
| userAssignedIdentityResourceId | 使用者指派的身分識別可用來存取金鑰加密金鑰 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 互斥。 | 字串 |
ContextCacheProperties
| Name | Description | 價值觀 |
|---|---|---|
| accountKind | 那種帳號決定儲存拓撲。 | 「資料區」 “全球” 「區域性」(必修) |
| description | 帳戶說明。 | string 約束: 最大長度 = 250 |
| 加密 | 帳號的加密設定。 | AzureResourceManagerCommonTypesEncryption |
ManagedServiceIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | 價值觀 |
|---|
UserAssignedIdentities
| Name | Description | 價值觀 |
|---|
UserAssignedIdentity
| Name | Description | 價值觀 |
|---|
ARM 樣本資源定義
contextCaches 資源類型可部署於以下操作中:
使用範例
資源格式
要建立一個 Microsoft.Storage/contextCaches 資源,請將以下 JSON 加入你的範本。
{
"type": "Microsoft.Storage/contextCaches",
"apiVersion": "2026-09-01",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
"accountKind": "string",
"description": "string",
"encryption": {
"customerManagedKeyEncryption": {
"keyEncryptionKeyIdentity": {
"delegatedIdentityClientId": "string",
"federatedClientId": "string",
"identityType": "string",
"userAssignedIdentityResourceId": "string"
},
"keyEncryptionKeyUrl": "string"
},
"infrastructureEncryption": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft。儲存/contextCache
| Name | Description | 價值觀 |
|---|---|---|
| apiVersion | API 版本 | '2026-09-01' |
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | string 約束: 模式 = ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$ (必要) |
| properties | 此資源的資源特定屬性。 | ContextCacheProperties (必備) |
| tags | 資源標籤 | 標記名稱和值的字典。 請參考模板中的標籤 |
| 型別 | 資源類型 | 「Microsoft。儲存/contextCaches」 |
AzureResourceManagerCommonTypesCustomerManagedKeyEncryption
| Name | Description | 價值觀 |
|---|---|---|
| keyEncryptionKeyIdentity | 客戶管理的金鑰設定的所有身分識別組態,定義應用來驗證 金鑰保存庫 的身分識別。 | AzureResourceManagerCommonTypesKeyEncryptionKeyIdentity |
| 金鑰加密金鑰網址 | 金鑰加密金鑰 URL、版本設定或非版本設定。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 |
字串 |
AzureResourceManagerCommonTypesEncryption
| Name | Description | 價值觀 |
|---|---|---|
| customerManagedKeyEncryption | 資源的所有客戶自控金鑰加密屬性。 | AzureResourceManagerCommonTypesCustomerManagedKeyEncryption |
| 基礎設施加密 | 值已啟用並停用。 | '已禁用' '已啟用' |
AzureResourceManagerCommonTypesKeyEncryptionKeyIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 委託身份ClientId | 用來存取金鑰加密金鑰 URL 的委派身分識別。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 和 userAssignedIdentity 互斥 - 僅供內部使用。 | string 約束: 最小長度 = 36 最大長度 = 36 圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| federatedClientId | 應用程式用戶端身分識別,用來存取不同租使用者中的密鑰加密金鑰 URL。 例如:f83c6b1b-4d34-47e4-bb34-9d83df58b540 | string 約束: 最小長度 = 36 最大長度 = 36 圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| identityType | 要使用的身分識別類型。 值可以是 systemAssignedIdentity、userAssignedIdentity 或 delegatedResourceIdentity。 | “委託資源標識” 'systemAssignedIdentity' 'userAssignedIdentity' |
| userAssignedIdentityResourceId | 使用者指派的身分識別可用來存取金鑰加密金鑰 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 互斥。 | 字串 |
ContextCacheProperties
| Name | Description | 價值觀 |
|---|---|---|
| accountKind | 那種帳號決定儲存拓撲。 | 「資料區」 “全球” 「區域性」(必修) |
| description | 帳戶說明。 | string 約束: 最大長度 = 250 |
| 加密 | 帳號的加密設定。 | AzureResourceManagerCommonTypesEncryption |
ManagedServiceIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | 價值觀 |
|---|
UserAssignedIdentities
| Name | Description | 價值觀 |
|---|
UserAssignedIdentity
| Name | Description | 價值觀 |
|---|
Terraform (AzAPI 提供者) 資源定義
contextCaches 資源類型可部署於以下操作中:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
要建立一個 Microsoft.Storage/contextCaches 資源,請將以下 Terraform 加入你的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Storage/contextCaches@2026-09-01"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
accountKind = "string"
description = "string"
encryption = {
customerManagedKeyEncryption = {
keyEncryptionKeyIdentity = {
delegatedIdentityClientId = "string"
federatedClientId = "string"
identityType = "string"
userAssignedIdentityResourceId = "string"
}
keyEncryptionKeyUrl = "string"
}
infrastructureEncryption = "string"
}
}
}
}
屬性值
Microsoft。儲存/contextCache
| Name | Description | 價值觀 |
|---|---|---|
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| 名字 | 資源名稱 | string 約束: 模式 = ^[a-z0-9][a-z0-9-]{1,22}[a-z0-9]$ (必要) |
| properties | 此資源的資源特定屬性。 | ContextCacheProperties (必備) |
| tags | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Microsoft。儲存/contextCaches@2026-09-01」 |
AzureResourceManagerCommonTypesCustomerManagedKeyEncryption
| Name | Description | 價值觀 |
|---|---|---|
| keyEncryptionKeyIdentity | 客戶管理的金鑰設定的所有身分識別組態,定義應用來驗證 金鑰保存庫 的身分識別。 | AzureResourceManagerCommonTypesKeyEncryptionKeyIdentity |
| 金鑰加密金鑰網址 | 金鑰加密金鑰 URL、版本設定或非版本設定。 例如:https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 或 https://contosovault.vault.azure.net/keys/contosokek。 |
字串 |
AzureResourceManagerCommonTypesEncryption
| Name | Description | 價值觀 |
|---|---|---|
| customerManagedKeyEncryption | 資源的所有客戶自控金鑰加密屬性。 | AzureResourceManagerCommonTypesCustomerManagedKeyEncryption |
| 基礎設施加密 | 值已啟用並停用。 | '已禁用' '已啟用' |
AzureResourceManagerCommonTypesKeyEncryptionKeyIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 委託身份ClientId | 用來存取金鑰加密金鑰 URL 的委派身分識別。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 和 userAssignedIdentity 互斥 - 僅供內部使用。 | string 約束: 最小長度 = 36 最大長度 = 36 圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| federatedClientId | 應用程式用戶端身分識別,用來存取不同租使用者中的密鑰加密金鑰 URL。 例如:f83c6b1b-4d34-47e4-bb34-9d83df58b540 | string 約束: 最小長度 = 36 最大長度 = 36 圖案 = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ |
| identityType | 要使用的身分識別類型。 值可以是 systemAssignedIdentity、userAssignedIdentity 或 delegatedResourceIdentity。 | “委託資源標識” 'systemAssignedIdentity' 'userAssignedIdentity' |
| userAssignedIdentityResourceId | 使用者指派的身分識別可用來存取金鑰加密金鑰 URL。 例如:/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<資源群組>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId。 與 identityType systemAssignedIdentity 互斥。 | 字串 |
ContextCacheProperties
| Name | Description | 價值觀 |
|---|---|---|
| accountKind | 那種帳號決定儲存拓撲。 | 「資料區」 “全球” 「區域性」(必修) |
| description | 帳戶說明。 | string 約束: 最大長度 = 250 |
| 加密 | 帳號的加密設定。 | AzureResourceManagerCommonTypesEncryption |
ManagedServiceIdentity
| Name | Description | 價值觀 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
TrackedResourceTags
| Name | Description | 價值觀 |
|---|
UserAssignedIdentities
| Name | Description | 價值觀 |
|---|
UserAssignedIdentity
| Name | Description | 價值觀 |
|---|