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 | 資源位置。 | 字串 |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
etag | 選擇性 ETag。 | 字串 |
身分識別 | 輸入受控識別詳細數據 | DppIdentityDetails |
properties | BackupVaultResource 屬性 | BackupVault (必要) |
DppIdentityDetails
名稱 | 描述 | 值 |
---|---|---|
類型 | identityType,可以是 SystemAssigned 或 None | 字串 |
BackupVault
名稱 | 描述 | 值 |
---|---|---|
monitoringSettings | 監視設定 | MonitoringSettings |
securitySettings | 安全性設定 | SecuritySettings |
storageSettings | 儲存設定 | StorageSetting[] (必要) |
MonitoringSettings
名稱 | 描述 | 值 |
---|---|---|
azureMonitorAlertSettings | Azure 監視器型警示的設定 | AzureMonitorAlertSettings |
AzureMonitorAlertSettings
名稱 | 描述 | 值 |
---|---|---|
alertsForAllJobFailures | 'Disabled' 'Enabled' |
SecuritySettings
名稱 | 描述 | 值 |
---|---|---|
immutabilitySettings | 保存庫層級的不變性設定 | ImmutabilitySettings |
softDeleteSettings | 虛刪除相關設定 | SoftDeleteSettings |
ImmutabilitySettings
名稱 | 描述 | 值 |
---|---|---|
狀態 | 不變性狀態 | 'Disabled' 'Locked' 'Unlocked' |
SoftDeleteSettings
名稱 | 描述 | 值 |
---|---|---|
retentionDurationInDays | 虛刪除保留期間 | int |
狀態 | 虛刪除的狀態 | '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
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.DataProtection/backupVaults' |
apiVersion | 資源 API 版本 | '2022-11-01-preview' |
NAME | 資源名稱 | 需要字串 () |
location | 資源位置。 | 字串 |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
etag | 選擇性 ETag。 | 字串 |
身分識別 | 輸入受控識別詳細數據 | DppIdentityDetails |
properties | BackupVaultResource 屬性 | 需要 BackupVault () |
DppIdentityDetails
名稱 | 描述 | 值 |
---|---|---|
類型 | identityType,可以是 SystemAssigned 或 None | 字串 |
BackupVault
名稱 | 描述 | 值 |
---|---|---|
monitoringSettings | 監視設定 | MonitoringSettings |
securitySettings | 安全性設定 | SecuritySettings |
storageSettings | 儲存設定 | StorageSetting[] (必要) |
MonitoringSettings
名稱 | 描述 | 值 |
---|---|---|
azureMonitorAlertSettings | Azure 監視器型警示的設定 | AzureMonitorAlertSettings |
AzureMonitorAlertSettings
名稱 | 描述 | 值 |
---|---|---|
alertsForAllJobFailures | 'Disabled' 'Enabled' |
SecuritySettings
名稱 | 描述 | 值 |
---|---|---|
immutabilitySettings | 保存庫層級的不變性設定 | ImmutabilitySettings |
softDeleteSettings | 虛刪除相關設定 | SoftDeleteSettings |
ImmutabilitySettings
名稱 | 描述 | 值 |
---|---|---|
狀態 | 不變性狀態 | 'Disabled' 'Locked' 「已解除鎖定」 |
SoftDeleteSettings
名稱 | 描述 | 值 |
---|---|---|
retentionDurationInDays | 虛刪除保留期間 | int |
狀態 | 虛刪除的狀態 | 'AlwaysOn' 'Off' '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
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.DataProtection/backupVaults@2022-11-01-preview” |
NAME | 資源名稱 | 字串 (必要) |
location | 資源位置。 | 字串 |
parent_id | 若要部署至資源群組,請使用該資源群組的標識碼。 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 |
etag | 選擇性 ETag。 | 字串 |
身分識別 | 輸入受控識別詳細數據 | DppIdentityDetails |
properties | BackupVaultResource 屬性 | 需要 BackupVault () |
DppIdentityDetails
名稱 | 描述 | 值 |
---|---|---|
類型 | identityType,可以是 SystemAssigned 或 None | 字串 |
BackupVault
名稱 | 描述 | 值 |
---|---|---|
monitoringSettings | 監視設定 | MonitoringSettings |
securitySettings | 安全性設定 | SecuritySettings |
storageSettings | 儲存設定 | StorageSetting[] (必要) |
MonitoringSettings
名稱 | 描述 | 值 |
---|---|---|
azureMonitorAlertSettings | Azure 監視器型警示的設定 | AzureMonitorAlertSettings |
AzureMonitorAlertSettings
名稱 | 描述 | 值 |
---|---|---|
alertsForAllJobFailures | “Disabled” “Enabled” |
SecuritySettings
名稱 | 描述 | 值 |
---|---|---|
immutabilitySettings | 保存庫層級的不變性設定 | ImmutabilitySettings |
softDeleteSettings | 虛刪除相關設定 | SoftDeleteSettings |
ImmutabilitySettings
名稱 | 描述 | 值 |
---|---|---|
狀態 | 不變性狀態 | “Disabled” “Locked” 「已解除鎖定」 |
SoftDeleteSettings
名稱 | 描述 | 值 |
---|---|---|
retentionDurationInDays | 虛刪除保留期間 | int |
狀態 | 虛刪除的狀態 | “AlwaysOn” “Off” “On” |
StorageSetting
名稱 | 描述 | 值 |
---|---|---|
datastoreType | 取得或設定數據存放區的型別。 | “ArchiveStore” “SnapshotStore” “VaultStore” |
類型 | 取得或設定型別。 | “GeoRedundant” “LocallyRedundant” “ZoneRedundant” |