- Latest
- 2026-08-31-預覽
- 2026-07-01
- 2026-05-31-預覽
- 2026-05-01
- 2026-03-31-預覽
- 2026-02-01
- 2026-01-01
- 2025-08-01
- 2025-02-01
- 2025-01-01
- 2024-10-01
- 2024-04-01
- 2024-02-01
- 2024-01-01
- 2023-08-01
- 2023-06-01
- 2023-04-01
- 2023-02-01
- 2023-01-01
- 2022-10-01
- 2022-09-10
- 2022-08-01
- 2022-05-01
- 2022-04-01
- 2022-03-01
- 2022-02-01
- 2022-01-01
- 2021-12-01
- 2021-11-01
- 2021-10-01
- 2021-08-01
- 2021-07-01
- 2021-06-01
- 2021-04-01
- 2021-03-01
- 2021-02-10
- 2018-07-10
- 2018-01-10
- 2016-08-10
Bicep 資源定義
保存庫/replicationRecoveryPlans 資源類型可以使用目標作業來部署:
- 資源群組 - 請參見 資源群組部署指令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
創造一個 Microsoft。RecoveryServices/vaults/replicationRecoveryPlans 資源,請將以下 Bicep 加入你的範本。
resource symbolicname 'Microsoft.RecoveryServices/vaults/replicationRecoveryPlans@2021-02-10' = {
parent: resourceSymbolicName
name: 'string'
properties: {
failoverDeploymentModel: 'string'
groups: [
{
endGroupActions: [
{
actionName: 'string'
customDetails: {
instanceType: 'string'
// For remaining properties, see RecoveryPlanActionDetails objects
}
failoverDirections: [
'string'
]
failoverTypes: [
'string'
]
}
]
groupType: 'string'
replicationProtectedItems: [
{
id: 'string'
virtualMachineId: 'string'
}
]
startGroupActions: [
{
actionName: 'string'
customDetails: {
instanceType: 'string'
// For remaining properties, see RecoveryPlanActionDetails objects
}
failoverDirections: [
'string'
]
failoverTypes: [
'string'
]
}
]
}
]
primaryFabricId: 'string'
providerSpecificInput: [
{
instanceType: 'string'
// For remaining properties, see RecoveryPlanProviderSpecificInput objects
}
]
recoveryFabricId: 'string'
}
}
RecoveryPlanProviderSpecificInput 物件
設置 instanceType 屬性以指定物件的類型。
對於 A2A,請使用:
{
instanceType: 'A2A'
primaryZone: 'string'
recoveryZone: 'string'
}
RecoveryPlanActionDetails 物件
設置 instanceType 屬性以指定物件的類型。
對於 AutomationRunbookActionDetails,請使用:
{
fabricLocation: 'string'
instanceType: 'AutomationRunbookActionDetails'
runbookId: 'string'
timeout: 'string'
}
對於 ManualActionDetails,請使用:
{
description: 'string'
instanceType: 'ManualActionDetails'
}
對於 ScriptActionDetails,請使用:
{
fabricLocation: 'string'
instanceType: 'ScriptActionDetails'
path: 'string'
timeout: 'string'
}
屬性值
Microsoft。RecoveryServices/vaults/replicationRecoveryPlans
| Name | Description | Value |
|---|---|---|
| name | 資源名稱 | 字串 (必要) |
| 父代 | 在 Bicep 中,你可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 欲了解更多資訊,請參閱 Child 資源 外部 parent resource。 |
類型為:vaults 的資源的符號名稱 |
| properties | 復原計劃建立屬性。 | CreateRecoveryPlanInputPropertiesOrRecoveryPlanProperties (必需) |
CreateRecoveryPlanInputPropertiesOrRecoveryPlanProperties
| Name | Description | Value |
|---|---|---|
| failoverDeploymentModel | 故障轉移部署模型。 | 'Classic' 'NotApplicable' 'ResourceManager' |
| groups | 復原方案群組。 | RecoveryPlanGroup[](必需) |
| primaryFabricId | 主要網狀架構標識碼。 | 字串 (必要) |
| providerSpecificInput | 提供者特定的輸入。 | RecoveryPlanProviderSpecificInput[] |
| recoveryFabricId | 復原網狀架構標識碼。 | 字串 (必要) |
RecoveryPlanA2AInput
| Name | Description | Value |
|---|---|---|
| instanceType | 取得實例類型。 | “A2A”(必填) |
| primaryZone | 主要區域。 | 字串 |
| recoveryZone | 復原區域。 | 字串 |
RecoveryPlanAction
| Name | Description | Value |
|---|---|---|
| actionName | 動作名稱。 | 字串 (必要) |
| customDetails | 自訂詳細數據。 | RecoveryPlanActionDetails (必需) |
| failoverDirections | 故障轉移指示的清單。 | 包含任何的字串數組: 'PrimaryToRecovery' 'RecoveryToPrimary' (必要) |
| failoverTypes | 故障轉移類型清單。 | 包含任何的字串數組: 'CancelFailover' 'ChangePit' 'Commit' 'CompleteMigration' 'DisableProtection' 'Failback' 'FinalizeFailback' 'PlannedFailover' 'RepairReplication' 'ReverseReplicate' 'SwitchProtection' 'TestFailover' 'TestFailoverCleanup' 'UnplannedFailover' (必要) |
RecoveryPlanActionDetails
| Name | Description | Value |
|---|---|---|
| instanceType | 對於 類型 RecoveryPlanAutomationRunbookActionDetails,設置為“AutomationRunbookActionDetails”。 對於 類型 RecoveryPlanManualActionDetails,設置為“ManualActionDetails”。 對於 類型 RecoveryPlanScriptActionDetails,設置為“ScriptActionDetails”。 | 'AutomationRunbookActionDetails' 'ManualActionDetails' 'ScriptActionDetails' (必要) |
RecoveryPlanAutomationRunbookActionDetails
| Name | Description | Value |
|---|---|---|
| fabricLocation | 網狀架構位置。 | 'Primary' 「復原」(必要) |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'AutomationRunbookActionDetails' (必要) |
| runbookId | Runbook ARM 識別碼。 | 字串 |
| timeout | Runbook 逾時。 | 字串 |
RecoveryPlanGroup
| Name | Description | Value |
|---|---|---|
| endGroupActions | 結束群組動作。 | RecoveryPlanAction[] |
| groupType | 群組類型。 | 'Boot' 'Failover' 「關機」(必要) |
| replicationProtectedItems | 受保護的項目清單。 | RecoveryPlanProtectedItem[] |
| startGroupActions | 開始群組動作。 | RecoveryPlanAction[] |
RecoveryPlanManualActionDetails
| Name | Description | Value |
|---|---|---|
| description | 手動動作描述。 | 字串 |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'ManualActionDetails' (必要) |
RecoveryPlanProtectedItem
| Name | Description | Value |
|---|---|---|
| id | 復原方案受保護專案的 ARM 識別碼。 | 字串 |
| virtualMachineId | 虛擬機標識碼。 | 字串 |
RecoveryPlanProviderSpecificInput
| Name | Description | Value |
|---|---|---|
| instanceType | 對於 類型 RecoveryPlanA2AInput,設置為“A2A”。 | “A2A”(必填) |
RecoveryPlanScriptActionDetails
| Name | Description | Value |
|---|---|---|
| fabricLocation | 網狀架構位置。 | 'Primary' 「復原」(必要) |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'ScriptActionDetails' (必要) |
| 路徑 | 腳本路徑。 | 字串 (必要) |
| timeout | 腳本逾時。 | 字串 |
ARM 樣本資源定義
保存庫/replicationRecoveryPlans 資源類型可以使用目標作業來部署:
使用範例
資源格式
創造一個 Microsoft。RecoveryServices/vaults/replicationRecoveryPlans 資源,請將以下 JSON 加入你的範本。
{
"type": "Microsoft.RecoveryServices/vaults/replicationRecoveryPlans",
"apiVersion": "2021-02-10",
"name": "string",
"properties": {
"failoverDeploymentModel": "string",
"groups": [
{
"endGroupActions": [
{
"actionName": "string",
"customDetails": {
"instanceType": "string"
// For remaining properties, see RecoveryPlanActionDetails objects
},
"failoverDirections": [ "string" ],
"failoverTypes": [ "string" ]
}
],
"groupType": "string",
"replicationProtectedItems": [
{
"id": "string",
"virtualMachineId": "string"
}
],
"startGroupActions": [
{
"actionName": "string",
"customDetails": {
"instanceType": "string"
// For remaining properties, see RecoveryPlanActionDetails objects
},
"failoverDirections": [ "string" ],
"failoverTypes": [ "string" ]
}
]
}
],
"primaryFabricId": "string",
"providerSpecificInput": [ {
"instanceType": "string"
// For remaining properties, see RecoveryPlanProviderSpecificInput objects
} ],
"recoveryFabricId": "string"
}
}
RecoveryPlanProviderSpecificInput 物件
設置 instanceType 屬性以指定物件的類型。
對於 A2A,請使用:
{
"instanceType": "A2A",
"primaryZone": "string",
"recoveryZone": "string"
}
RecoveryPlanActionDetails 物件
設置 instanceType 屬性以指定物件的類型。
對於 AutomationRunbookActionDetails,請使用:
{
"fabricLocation": "string",
"instanceType": "AutomationRunbookActionDetails",
"runbookId": "string",
"timeout": "string"
}
對於 ManualActionDetails,請使用:
{
"description": "string",
"instanceType": "ManualActionDetails"
}
對於 ScriptActionDetails,請使用:
{
"fabricLocation": "string",
"instanceType": "ScriptActionDetails",
"path": "string",
"timeout": "string"
}
屬性值
Microsoft。RecoveryServices/vaults/replicationRecoveryPlans
| Name | Description | Value |
|---|---|---|
| apiVersion | API 版本 | '2021-02-10' |
| name | 資源名稱 | 字串 (必要) |
| properties | 復原計劃建立屬性。 | CreateRecoveryPlanInputPropertiesOrRecoveryPlanProperties (必需) |
| 型別 | 資源類型 | 「Microsoft。RecoveryServices/vaults/replicationRecoveryPlans' |
CreateRecoveryPlanInputPropertiesOrRecoveryPlanProperties
| Name | Description | Value |
|---|---|---|
| failoverDeploymentModel | 故障轉移部署模型。 | 'Classic' 'NotApplicable' 'ResourceManager' |
| groups | 復原方案群組。 | RecoveryPlanGroup[](必需) |
| primaryFabricId | 主要網狀架構標識碼。 | 字串 (必要) |
| providerSpecificInput | 提供者特定的輸入。 | RecoveryPlanProviderSpecificInput[] |
| recoveryFabricId | 復原網狀架構標識碼。 | 字串 (必要) |
RecoveryPlanA2AInput
| Name | Description | Value |
|---|---|---|
| instanceType | 取得實例類型。 | “A2A”(必填) |
| primaryZone | 主要區域。 | 字串 |
| recoveryZone | 復原區域。 | 字串 |
RecoveryPlanAction
| Name | Description | Value |
|---|---|---|
| actionName | 動作名稱。 | 字串 (必要) |
| customDetails | 自訂詳細數據。 | RecoveryPlanActionDetails (必需) |
| failoverDirections | 故障轉移指示的清單。 | 包含任何的字串數組: 'PrimaryToRecovery' 'RecoveryToPrimary' (必要) |
| failoverTypes | 故障轉移類型清單。 | 包含任何的字串數組: 'CancelFailover' 'ChangePit' 'Commit' 'CompleteMigration' 'DisableProtection' 'Failback' 'FinalizeFailback' 'PlannedFailover' 'RepairReplication' 'ReverseReplicate' 'SwitchProtection' 'TestFailover' 'TestFailoverCleanup' 'UnplannedFailover' (必要) |
RecoveryPlanActionDetails
| Name | Description | Value |
|---|---|---|
| instanceType | 對於 類型 RecoveryPlanAutomationRunbookActionDetails,設置為“AutomationRunbookActionDetails”。 對於 類型 RecoveryPlanManualActionDetails,設置為“ManualActionDetails”。 對於 類型 RecoveryPlanScriptActionDetails,設置為“ScriptActionDetails”。 | 'AutomationRunbookActionDetails' 'ManualActionDetails' 'ScriptActionDetails' (必要) |
RecoveryPlanAutomationRunbookActionDetails
| Name | Description | Value |
|---|---|---|
| fabricLocation | 網狀架構位置。 | 'Primary' 「復原」(必要) |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'AutomationRunbookActionDetails' (必要) |
| runbookId | Runbook ARM 識別碼。 | 字串 |
| timeout | Runbook 逾時。 | 字串 |
RecoveryPlanGroup
| Name | Description | Value |
|---|---|---|
| endGroupActions | 結束群組動作。 | RecoveryPlanAction[] |
| groupType | 群組類型。 | 'Boot' 'Failover' 「關機」(必要) |
| replicationProtectedItems | 受保護的項目清單。 | RecoveryPlanProtectedItem[] |
| startGroupActions | 開始群組動作。 | RecoveryPlanAction[] |
RecoveryPlanManualActionDetails
| Name | Description | Value |
|---|---|---|
| description | 手動動作描述。 | 字串 |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'ManualActionDetails' (必要) |
RecoveryPlanProtectedItem
| Name | Description | Value |
|---|---|---|
| id | 復原方案受保護專案的 ARM 識別碼。 | 字串 |
| virtualMachineId | 虛擬機標識碼。 | 字串 |
RecoveryPlanProviderSpecificInput
| Name | Description | Value |
|---|---|---|
| instanceType | 對於 類型 RecoveryPlanA2AInput,設置為“A2A”。 | “A2A”(必填) |
RecoveryPlanScriptActionDetails
| Name | Description | Value |
|---|---|---|
| fabricLocation | 網狀架構位置。 | 'Primary' 「復原」(必要) |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'ScriptActionDetails' (必要) |
| 路徑 | 腳本路徑。 | 字串 (必要) |
| timeout | 腳本逾時。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
保存庫/replicationRecoveryPlans 資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
創造一個 Microsoft。RecoveryServices/vaults/replicationRecoveryPlans 資源,將以下 Terraform 加入你的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.RecoveryServices/vaults/replicationRecoveryPlans@2021-02-10"
name = "string"
parent_id = "string"
body = {
properties = {
failoverDeploymentModel = "string"
groups = [
{
endGroupActions = [
{
actionName = "string"
customDetails = {
instanceType = "string"
// For remaining properties, see RecoveryPlanActionDetails objects
}
failoverDirections = [
"string"
]
failoverTypes = [
"string"
]
}
]
groupType = "string"
replicationProtectedItems = [
{
id = "string"
virtualMachineId = "string"
}
]
startGroupActions = [
{
actionName = "string"
customDetails = {
instanceType = "string"
// For remaining properties, see RecoveryPlanActionDetails objects
}
failoverDirections = [
"string"
]
failoverTypes = [
"string"
]
}
]
}
]
primaryFabricId = "string"
providerSpecificInput = [
{
instanceType = "string"
// For remaining properties, see RecoveryPlanProviderSpecificInput objects
}
]
recoveryFabricId = "string"
}
}
}
RecoveryPlanProviderSpecificInput 物件
設置 instanceType 屬性以指定物件的類型。
對於 A2A,請使用:
{
instanceType = "A2A"
primaryZone = "string"
recoveryZone = "string"
}
RecoveryPlanActionDetails 物件
設置 instanceType 屬性以指定物件的類型。
對於 AutomationRunbookActionDetails,請使用:
{
fabricLocation = "string"
instanceType = "AutomationRunbookActionDetails"
runbookId = "string"
timeout = "string"
}
對於 ManualActionDetails,請使用:
{
description = "string"
instanceType = "ManualActionDetails"
}
對於 ScriptActionDetails,請使用:
{
fabricLocation = "string"
instanceType = "ScriptActionDetails"
path = "string"
timeout = "string"
}
屬性值
Microsoft。RecoveryServices/vaults/replicationRecoveryPlans
| Name | Description | Value |
|---|---|---|
| name | 資源名稱 | 字串 (必要) |
| parent_id | 此資源為父系之資源的標識碼。 | 類型為:vaults 的資源的ID |
| properties | 復原計劃建立屬性。 | CreateRecoveryPlanInputPropertiesOrRecoveryPlanProperties (必需) |
| 型別 | 資源類型 | 「Microsoft。RecoveryServices/vaults/replicationRecoveryPlans@2021-02-10” |
CreateRecoveryPlanInputPropertiesOrRecoveryPlanProperties
| Name | Description | Value |
|---|---|---|
| failoverDeploymentModel | 故障轉移部署模型。 | 'Classic' 'NotApplicable' 'ResourceManager' |
| groups | 復原方案群組。 | RecoveryPlanGroup[](必需) |
| primaryFabricId | 主要網狀架構標識碼。 | 字串 (必要) |
| providerSpecificInput | 提供者特定的輸入。 | RecoveryPlanProviderSpecificInput[] |
| recoveryFabricId | 復原網狀架構標識碼。 | 字串 (必要) |
RecoveryPlanA2AInput
| Name | Description | Value |
|---|---|---|
| instanceType | 取得實例類型。 | “A2A”(必填) |
| primaryZone | 主要區域。 | 字串 |
| recoveryZone | 復原區域。 | 字串 |
RecoveryPlanAction
| Name | Description | Value |
|---|---|---|
| actionName | 動作名稱。 | 字串 (必要) |
| customDetails | 自訂詳細數據。 | RecoveryPlanActionDetails (必需) |
| failoverDirections | 故障轉移指示的清單。 | 包含任何的字串數組: 'PrimaryToRecovery' 'RecoveryToPrimary' (必要) |
| failoverTypes | 故障轉移類型清單。 | 包含任何的字串數組: 'CancelFailover' 'ChangePit' 'Commit' 'CompleteMigration' 'DisableProtection' 'Failback' 'FinalizeFailback' 'PlannedFailover' 'RepairReplication' 'ReverseReplicate' 'SwitchProtection' 'TestFailover' 'TestFailoverCleanup' 'UnplannedFailover' (必要) |
RecoveryPlanActionDetails
| Name | Description | Value |
|---|---|---|
| instanceType | 對於 類型 RecoveryPlanAutomationRunbookActionDetails,設置為“AutomationRunbookActionDetails”。 對於 類型 RecoveryPlanManualActionDetails,設置為“ManualActionDetails”。 對於 類型 RecoveryPlanScriptActionDetails,設置為“ScriptActionDetails”。 | 'AutomationRunbookActionDetails' 'ManualActionDetails' 'ScriptActionDetails' (必要) |
RecoveryPlanAutomationRunbookActionDetails
| Name | Description | Value |
|---|---|---|
| fabricLocation | 網狀架構位置。 | 'Primary' 「復原」(必要) |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'AutomationRunbookActionDetails' (必要) |
| runbookId | Runbook ARM 識別碼。 | 字串 |
| timeout | Runbook 逾時。 | 字串 |
RecoveryPlanGroup
| Name | Description | Value |
|---|---|---|
| endGroupActions | 結束群組動作。 | RecoveryPlanAction[] |
| groupType | 群組類型。 | 'Boot' 'Failover' 「關機」(必要) |
| replicationProtectedItems | 受保護的項目清單。 | RecoveryPlanProtectedItem[] |
| startGroupActions | 開始群組動作。 | RecoveryPlanAction[] |
RecoveryPlanManualActionDetails
| Name | Description | Value |
|---|---|---|
| description | 手動動作描述。 | 字串 |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'ManualActionDetails' (必要) |
RecoveryPlanProtectedItem
| Name | Description | Value |
|---|---|---|
| id | 復原方案受保護專案的 ARM 識別碼。 | 字串 |
| virtualMachineId | 虛擬機標識碼。 | 字串 |
RecoveryPlanProviderSpecificInput
| Name | Description | Value |
|---|---|---|
| instanceType | 對於 類型 RecoveryPlanA2AInput,設置為“A2A”。 | “A2A”(必填) |
RecoveryPlanScriptActionDetails
| Name | Description | Value |
|---|---|---|
| fabricLocation | 網狀架構位置。 | 'Primary' 「復原」(必要) |
| instanceType | 取得動作詳細數據的類型(如需可能的值,請參閱 RecoveryPlanActionDetailsTypes 列舉)。 | 'ScriptActionDetails' (必要) |
| 路徑 | 腳本路徑。 | 字串 (必要) |
| timeout | 腳本逾時。 | 字串 |