你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.StorageCache 缓存 2020-03-01
Bicep 资源定义
缓存资源类型可以使用面向以下对象的操作进行部署:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.StorageCache/caches 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.StorageCache/caches@2020-03-01' = {
name: 'string'
location: 'string'
tags: any()
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
sku: {
name: 'string'
}
identity: {
type: 'string'
}
properties: {
cacheSizeGB: int
encryptionSettings: {
keyEncryptionKey: {
keyUrl: 'string'
sourceVault: {
id: 'string'
}
}
}
networkSettings: {
mtu: int
}
provisioningState: 'string'
securitySettings: {
rootSquash: bool
}
subnet: 'string'
upgradeStatus: {}
}
}
属性值
caches
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 | 字符串 (必需) |
location | 区域名称字符串。 | string |
标记 | ARM 标记作为名称/值对。 | 对于 Bicep,可以使用 any () 函数。 |
sku | 缓存的 SKU。 | CacheSku |
标识 | 缓存的标识(如果已配置)。 | CacheIdentity |
properties | 缓存的属性。 | CacheProperties |
CacheIdentity
名称 | 说明 | Value |
---|---|---|
type | 用于缓存的标识类型 | “None” “SystemAssigned” |
CacheProperties
名称 | 说明 | 值 |
---|---|---|
cacheSizeGB | 此缓存的大小(以 GB 为单位)。 | int |
encryptionSettings | 指定缓存的加密设置。 | CacheEncryptionSettings |
networkSettings | 指定缓存的网络设置。 | CacheNetworkSettings |
provisioningState | ARM 预配状态,请参阅 https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property |
“已取消” “正在创建” “正在删除” “失败” “成功” “正在更新” |
securitySettings | 指定缓存的安全设置。 | CacheSecuritySettings |
子网 | 用于缓存的子网。 | 字符串 |
upgradeStatus | 缓存的升级状态。 | CacheUpgradeStatus |
CacheEncryptionSettings
名称 | 说明 | 值 |
---|---|---|
keyEncryptionKey | 指定密钥加密密钥在 密钥保管库 中的位置。 | KeyVaultKeyReference |
KeyVaultKeyReference
名称 | 说明 | 值 |
---|---|---|
keyUrl | 引用 密钥保管库 中密钥加密密钥的 URL。 | 字符串 (必需) |
sourceVault | 描述源密钥保管库的资源 ID。 | KeyVaultKeyReferenceSourceVault (必需) |
KeyVaultKeyReferenceSourceVault
名称 | 说明 | Value |
---|---|---|
id | 资源 ID。 | string |
CacheNetworkSettings
名称 | 说明 | 值 |
---|---|---|
Mtu | 为子网配置的 IPv4 最大传输单元。 | int |
CacheSecuritySettings
名称 | 说明 | 值 |
---|---|---|
rootSquash | 缓存属性的根 squash。 | bool |
CacheUpgradeStatus
此对象不包含在部署期间要设置的任何属性。 所有属性均为 ReadOnly。
CacheSku
名称 | 说明 | 值 |
---|---|---|
name | 此缓存的 SKU 名称。 | 字符串 |
ARM 模板资源定义
缓存资源类型可以使用面向以下对象的操作进行部署:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.StorageCache/caches 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.StorageCache/caches",
"apiVersion": "2020-03-01",
"name": "string",
"location": "string",
"tags": {},
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"sku": {
"name": "string"
},
"identity": {
"type": "string"
},
"properties": {
"cacheSizeGB": "int",
"encryptionSettings": {
"keyEncryptionKey": {
"keyUrl": "string",
"sourceVault": {
"id": "string"
}
}
},
"networkSettings": {
"mtu": "int"
},
"provisioningState": "string",
"securitySettings": {
"rootSquash": "bool"
},
"subnet": "string",
"upgradeStatus": {}
}
}
属性值
caches
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.StorageCache/caches” |
apiVersion | 资源 API 版本 | '2020-03-01' |
name | 资源名称 | 字符串 (必需) |
location | 区域名称字符串。 | 字符串 |
标记 | ARM 标记作为名称/值对。 | |
sku | 缓存的 SKU。 | CacheSku |
标识 | 缓存的标识(如果已配置)。 | CacheIdentity |
properties | 缓存的属性。 | CacheProperties |
CacheIdentity
名称 | 说明 | Value |
---|---|---|
type | 用于缓存的标识类型 | “None” “SystemAssigned” |
CacheProperties
名称 | 说明 | 值 |
---|---|---|
cacheSizeGB | 此缓存的大小(以 GB 为单位)。 | int |
encryptionSettings | 指定缓存的加密设置。 | CacheEncryptionSettings |
networkSettings | 指定缓存的网络设置。 | CacheNetworkSettings |
provisioningState | ARM 预配状态,请参阅 https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property |
“已取消” “正在创建” “正在删除” “失败” “成功” “正在更新” |
securitySettings | 指定缓存的安全设置。 | CacheSecuritySettings |
子网 | 用于缓存的子网。 | 字符串 |
upgradeStatus | 缓存的升级状态。 | CacheUpgradeStatus |
CacheEncryptionSettings
名称 | 说明 | 值 |
---|---|---|
keyEncryptionKey | 指定密钥加密密钥在 密钥保管库 中的位置。 | KeyVaultKeyReference |
KeyVaultKeyReference
名称 | 说明 | 值 |
---|---|---|
keyUrl | 引用 密钥保管库 中的密钥加密密钥的 URL。 | 字符串 (必需) |
sourceVault | 描述源密钥保管库的资源 ID。 | KeyVaultKeyReferenceSourceVault (所需的) |
KeyVaultKeyReferenceSourceVault
名称 | 说明 | Value |
---|---|---|
id | 资源 ID。 | 字符串 |
CacheNetworkSettings
名称 | 说明 | 值 |
---|---|---|
Mtu | 为子网配置的 IPv4 最大传输单元。 | int |
CacheSecuritySettings
名称 | 说明 | 值 |
---|---|---|
rootSquash | 缓存属性的根 squash。 | bool |
CacheUpgradeStatus
此对象不包含部署期间要设置的任何属性。 所有属性均为 ReadOnly。
CacheSku
名称 | 说明 | 值 |
---|---|---|
name | 此缓存的 SKU 名称。 | 字符串 |
Terraform (AzAPI 提供程序) 资源定义
可以使用面向以下操作部署缓存资源类型:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.StorageCache/caches 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.StorageCache/caches@2020-03-01"
name = "string"
location = "string"
parent_id = "string"
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
identity {
type = "SystemAssigned"
}
body = jsonencode({
properties = {
cacheSizeGB = int
encryptionSettings = {
keyEncryptionKey = {
keyUrl = "string"
sourceVault = {
id = "string"
}
}
}
networkSettings = {
mtu = int
}
provisioningState = "string"
securitySettings = {
rootSquash = bool
}
subnet = "string"
upgradeStatus = {}
}
sku = {
name = "string"
}
})
}
属性值
caches
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.StorageCache/caches@2020-03-01” |
name | 资源名称 | 字符串 (必需) |
location | 区域名称字符串。 | 字符串 |
parent_id | 若要部署到资源组,请使用该资源组的 ID。 | 字符串 (必需) |
标记 | ARM 标记作为名称/值对。 | |
sku | 缓存的 SKU。 | CacheSku |
标识 | 缓存的标识(如果已配置)。 | CacheIdentity |
properties | 缓存的属性。 | CacheProperties |
CacheIdentity
名称 | 说明 | Value |
---|---|---|
type | 用于缓存的标识类型 | “SystemAssigned” |
CacheProperties
名称 | 说明 | 值 |
---|---|---|
cacheSizeGB | 此缓存的大小(以 GB 为单位)。 | int |
encryptionSettings | 指定缓存的加密设置。 | CacheEncryptionSettings |
networkSettings | 指定缓存的网络设置。 | CacheNetworkSettings |
provisioningState | ARM 预配状态,请参阅 https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property |
“已取消” “正在创建” “正在删除” “失败” “成功” “正在更新” |
securitySettings | 指定缓存的安全设置。 | CacheSecuritySettings |
子网 | 用于缓存的子网。 | 字符串 |
upgradeStatus | 缓存的升级状态。 | CacheUpgradeStatus |
CacheEncryptionSettings
名称 | 说明 | 值 |
---|---|---|
keyEncryptionKey | 指定密钥加密密钥在 密钥保管库 中的位置。 | KeyVaultKeyReference |
KeyVaultKeyReference
名称 | 说明 | 值 |
---|---|---|
keyUrl | 引用 密钥保管库 中密钥加密密钥的 URL。 | 字符串 (必需) |
sourceVault | 描述源密钥保管库的资源 ID。 | KeyVaultKeyReferenceSourceVault (必需) |
KeyVaultKeyReferenceSourceVault
名称 | 说明 | Value |
---|---|---|
id | 资源 ID。 | 字符串 |
CacheNetworkSettings
名称 | 说明 | 值 |
---|---|---|
Mtu | 为子网配置的 IPv4 最大传输单元。 | int |
CacheSecuritySettings
名称 | 说明 | 值 |
---|---|---|
rootSquash | 缓存属性的根 squash。 | bool |
CacheUpgradeStatus
此对象不包含在部署期间要设置的任何属性。 所有属性均为 ReadOnly。
CacheSku
名称 | 说明 | 值 |
---|---|---|
name | 此缓存的 SKU 名称。 | 字符串 |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈