你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Microsoft.DataProtection backupVaults
Bicep 资源定义
backupVaults 资源类型可部署到:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DataProtection/backupVaults 资源,请将以下 Bicep 添加到模板。
resource symbolicname 'Microsoft.DataProtection/backupVaults@2022-11-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
eTag: 'string'
identity: {
type: 'string'
}
properties: {
monitoringSettings: {
azureMonitorAlertSettings: {
alertsForAllJobFailures: 'string'
}
}
securitySettings: {
immutabilitySettings: {
state: 'string'
}
softDeleteSettings: {
retentionDurationInDays: int
state: 'string'
}
}
storageSettings: [
{
datastoreType: 'string'
type: 'string'
}
]
}
}
属性值
backupVaults
名称 | 说明 | 值 |
---|---|---|
name | 资源名称 | 字符串 (必需) |
location | 资源位置。 | string |
标记 | 资源标记。 | 标记名称和值的字典。 请参阅 模板中的标记 |
eTag | 可选 ETag。 | 字符串 |
标识 | 输入托管标识详细信息 | DppIdentityDetails |
properties | BackupVaultResource 属性 | BackupVault (必需) |
DppIdentityDetails
名称 | 说明 | Value |
---|---|---|
type | IdentityType,可以是 SystemAssigned 或 None | string |
BackupVault
名称 | 说明 | 值 |
---|---|---|
monitoringSettings | 监视设置 | MonitoringSettings |
securitySettings | 安全设置 | SecuritySettings |
storageSettings | “存储设置” | StorageSetting[] (必需的) |
MonitoringSettings
名称 | 说明 | 值 |
---|---|---|
azureMonitorAlertSettings | 基于 Azure Monitor 的警报的设置 | AzureMonitorAlertSettings |
AzureMonitorAlertSettings
名称 | 说明 | 值 |
---|---|---|
alertsForAllJobFailures | “Disabled” “已启用” |
SecuritySettings
名称 | 说明 | 值 |
---|---|---|
immutabilitySettings | 保管库级别的不可变性设置 | ImmutabilitySettings |
softDeleteSettings | 软删除相关设置 | SoftDeleteSettings |
ImmutabilitySettings
名称 | 说明 | 值 |
---|---|---|
state | 不可变性状态 | “Disabled” “已锁定” “已解锁” |
SoftDeleteSettings
名称 | 说明 | 值 |
---|---|---|
retentionDurationInDays | 软删除保留期 | int |
state | 软删除的状态 | “AlwaysOn” “Off” “On” |
StorageSetting
名称 | 说明 | 值 |
---|---|---|
datastoreType | 获取或设置数据存储的类型。 | “ArchiveStore” “SnapshotStore” “VaultStore” |
类型 | 获取或设置类型。 | “GeoRedundant” “LocallyRedundant” “ZoneRedundant” |
快速入门模板
以下快速入门模板部署此资源类型。
模板 | 说明 |
---|---|
创建磁盘 & 通过备份保管库启用保护 |
用于创建磁盘并通过备份保管库启用保护的模板 |
创建存储帐户 & 通过备份保管库启用保护 |
通过备份保管库创建存储帐户并启用保护的模板 |
创建备份保管库 |
用于创建备份保管库的简单模板 |
ARM 模板资源定义
backupVaults 资源类型可部署到:
- 资源组 - 请参阅 资源组部署命令
有关每个 API 版本中更改的属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DataProtection/backupVaults 资源,请将以下 JSON 添加到模板。
{
"type": "Microsoft.DataProtection/backupVaults",
"apiVersion": "2022-11-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"eTag": "string",
"identity": {
"type": "string"
},
"properties": {
"monitoringSettings": {
"azureMonitorAlertSettings": {
"alertsForAllJobFailures": "string"
}
},
"securitySettings": {
"immutabilitySettings": {
"state": "string"
},
"softDeleteSettings": {
"retentionDurationInDays": "int",
"state": "string"
}
},
"storageSettings": [
{
"datastoreType": "string",
"type": "string"
}
]
}
}
属性值
backupVaults
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.DataProtection/backupVaults” |
apiVersion | 资源 API 版本 | “2022-11-01-preview” |
name | 资源名称 | 字符串 (必需) |
location | 资源位置。 | 字符串 |
标记 | 资源标记。 | 标记名称和值的字典。 请参阅 模板中的标记 |
eTag | 可选 ETag。 | 字符串 |
标识 | 输入托管标识详细信息 | DppIdentityDetails |
properties | BackupVaultResource 属性 | BackupVault (必需) |
DppIdentityDetails
名称 | 说明 | Value |
---|---|---|
type | IdentityType,可以是 SystemAssigned 或 None | 字符串 |
BackupVault
名称 | 说明 | 值 |
---|---|---|
monitoringSettings | 监视设置 | MonitoringSettings |
securitySettings | 安全设置 | SecuritySettings |
storageSettings | “存储设置” | StorageSetting[] (必需的) |
MonitoringSettings
名称 | 说明 | 值 |
---|---|---|
azureMonitorAlertSettings | 基于 Azure Monitor 的警报的设置 | AzureMonitorAlertSettings |
AzureMonitorAlertSettings
名称 | 说明 | 值 |
---|---|---|
alertsForAllJobFailures | 'Disabled' 'Enabled' |
SecuritySettings
名称 | 说明 | 值 |
---|---|---|
immutabilitySettings | 保管库级别的不可变性设置 | ImmutabilitySettings |
softDeleteSettings | 软删除相关设置 | SoftDeleteSettings |
ImmutabilitySettings
名称 | 说明 | 值 |
---|---|---|
state | 不可变性状态 | 'Disabled' “Locked” “Unlocked” |
SoftDeleteSettings
名称 | 说明 | 值 |
---|---|---|
retentionDurationInDays | 软删除保留期 | int |
state | 软删除状态 | “AlwaysOn” “关” 'On' |
StorageSetting
名称 | 说明 | 值 |
---|---|---|
datastoreType | 获取或设置数据存储的类型。 | “ArchiveStore” 'SnapshotStore' “VaultStore” |
类型 | 获取或设置类型。 | “GeoRedundant” 'LocallyRedundant' “ZoneRedundant” |
快速入门模板
以下快速入门模板部署此资源类型。
模板 | 说明 |
---|---|
创建磁盘 & 通过备份保管库启用保护 |
创建磁盘并通过备份保管库启用保护的模板 |
创建存储帐户 & 通过备份保管库启用保护 |
用于创建存储帐户并通过备份保管库启用保护的模板 |
创建备份保管库 |
用于创建备份保管库的简单模板 |
Terraform (AzAPI 提供程序) 资源定义
backupVaults 资源类型可以部署到:
- 资源组
有关每个 API 版本中已更改属性的列表,请参阅 更改日志。
资源格式
若要创建 Microsoft.DataProtection/backupVaults 资源,请将以下 Terraform 添加到模板。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DataProtection/backupVaults@2022-11-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
identity {
type = "string"
}
body = jsonencode({
properties = {
monitoringSettings = {
azureMonitorAlertSettings = {
alertsForAllJobFailures = "string"
}
}
securitySettings = {
immutabilitySettings = {
state = "string"
}
softDeleteSettings = {
retentionDurationInDays = int
state = "string"
}
}
storageSettings = [
{
datastoreType = "string"
type = "string"
}
]
}
eTag = "string"
})
}
属性值
backupVaults
名称 | 说明 | Value |
---|---|---|
type | 资源类型 | “Microsoft.DataProtection/backupVaults@2022-11-01-preview” |
name | 资源名称 | 字符串 (必需) |
location | 资源位置。 | 字符串 |
parent_id | 若要部署到资源组,请使用该资源组的 ID。 | 字符串 (必需) |
标记 | 资源标记。 | 标记名称和值的字典。 |
eTag | 可选 ETag。 | 字符串 |
标识 | 输入托管标识详细信息 | DppIdentityDetails |
properties | BackupVaultResource 属性 | 需要 BackupVault () |
DppIdentityDetails
名称 | 说明 | Value |
---|---|---|
type | IdentityType,可以是 SystemAssigned 或 None | string |
BackupVault
名称 | 说明 | 值 |
---|---|---|
monitoringSettings | 监视设置 | MonitoringSettings |
securitySettings | 安全设置 | SecuritySettings |
storageSettings | “存储设置” | StorageSetting[] (必需) |
MonitoringSettings
名称 | 说明 | 值 |
---|---|---|
azureMonitorAlertSettings | 基于 Azure Monitor 的警报的设置 | AzureMonitorAlertSettings |
AzureMonitorAlertSettings
名称 | 说明 | 值 |
---|---|---|
alertsForAllJobFailures | “Disabled” “Enabled” |
SecuritySettings
名称 | 说明 | 值 |
---|---|---|
immutabilitySettings | 保管库级别的不可变性设置 | ImmutabilitySettings |
softDeleteSettings | 软删除相关设置 | SoftDeleteSettings |
ImmutabilitySettings
名称 | 说明 | 值 |
---|---|---|
state | 不可变性状态 | “Disabled” “Locked” “Unlocked” |
SoftDeleteSettings
名称 | 说明 | 值 |
---|---|---|
retentionDurationInDays | 软删除保留期 | int |
state | 软删除状态 | “AlwaysOn” "Off" "On" |
StorageSetting
名称 | 说明 | 值 |
---|---|---|
datastoreType | 获取或设置数据存储的类型。 | “ArchiveStore” “SnapshotStore” “VaultStore” |
类型 | 获取或设置类型。 | “GeoRedundant” “LocallyRedundant” “ZoneRedundant” |
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈