Microsoft.RecoveryServices 保管庫/backupFabrics/protectionContainers/protectedItems 2020-10-01

Bicep 資源定義

保存庫/backupFabrics/protectionContainers/protectedItems 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

使用範例

Bicep 範例

部署 Azure 備份受保護專案的基本範例。

param resourceName string = 'acctest0001'
param location string = 'westus'
@secure()
@description('The administrator password for the virtual machine')
param adminPassword string

var saBase = substring(toLower(join(split(resourceName, '-'), '')), 0, 24)
var dnsLabel = substring(toLower(resourceName), 0, 63)
var compName = substring(resourceName, 0, 15)
var saName = saBase

resource storageAccount 'Microsoft.Storage/storageAccounts@2023-05-01' = {
  name: saName
  location: location
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'StorageV2'
  properties: {
    accessTier: 'Hot'
    allowBlobPublicAccess: true
    allowCrossTenantReplication: false
    allowSharedKeyAccess: true
    defaultToOAuthAuthentication: false
    dnsEndpointType: 'Standard'
    encryption: {
      keySource: 'Microsoft.Storage'
      services: {
        queue: {
          keyType: 'Service'
        }
        table: {
          keyType: 'Service'
        }
      }
    }
    isHnsEnabled: false
    isLocalUserEnabled: true
    isNfsV3Enabled: false
    isSftpEnabled: false
    minimumTlsVersion: 'TLS1_2'
    networkAcls: {
      bypass: 'AzureServices'
      defaultAction: 'Allow'
      ipRules: []
      resourceAccessRules: []
      virtualNetworkRules: []
    }
    publicNetworkAccess: 'Enabled'
    supportsHttpsTrafficOnly: true
  }
}

resource vault 'Microsoft.RecoveryServices/vaults@2024-01-01' = {
  name: '${resourceName}-rsv'
  location: location
  sku: {
    name: 'Standard'
  }
  properties: {
    publicNetworkAccess: 'Enabled'
    redundancySettings: {
      crossRegionRestore: 'Disabled'
      standardTierStorageRedundancy: 'GeoRedundant'
    }
  }
}

resource virtualNetwork 'Microsoft.Network/virtualNetworks@2024-05-01' = {
  name: '${resourceName}-vnet'
  location: location
  properties: {
    addressSpace: {
      addressPrefixes: [
        '10.0.0.0/16'
      ]
    }
    dhcpOptions: {
      dnsServers: []
    }
    privateEndpointVNetPolicies: 'Disabled'
    subnets: []
  }
}

resource subnet 'Microsoft.Network/virtualNetworks/subnets@2024-05-01' = {
  name: '${resourceName}-subnet'
  parent: virtualNetwork
  properties: {
    addressPrefix: '10.0.10.0/24'
    defaultOutboundAccess: true
    delegations: []
    privateEndpointNetworkPolicies: 'Disabled'
    privateLinkServiceNetworkPolicies: 'Enabled'
    serviceEndpointPolicies: []
    serviceEndpoints: []
  }
}

resource protectedItem 'Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2023-02-01' = {
  name: 'VM;iaasvmcontainerv2;${resourceGroup().name};${virtualMachine.name}'
  properties: {
    extendedProperties: {
      diskExclusionProperties: {
        diskLunList: [
          0
        ]
        isInclusionList: true
      }
    }
    policyId: backupPolicy.id
    protectedItemType: 'Microsoft.Compute/virtualMachines'
    sourceResourceId: virtualMachine.id
  }
}

resource disk 'Microsoft.Compute/disks@2023-04-02' = {
  name: '${resourceName}-datadisk'
  location: location
  sku: {
    name: 'Standard_LRS'
  }
  properties: {
    creationData: {
      createOption: 'Empty'
    }
    diskSizeGB: 1023
    encryption: {
      type: 'EncryptionAtRestWithPlatformKey'
    }
    networkAccessPolicy: 'AllowAll'
    optimizedForFrequentAttach: false
    publicNetworkAccess: 'Enabled'
  }
}

resource networkInterface 'Microsoft.Network/networkInterfaces@2024-05-01' = {
  name: '${resourceName}-nic'
  location: location
  properties: {
    enableAcceleratedNetworking: false
    enableIPForwarding: false
    ipConfigurations: [
      {
        name: 'acctestipconfig'
        properties: {
          primary: true
          privateIPAddressVersion: 'IPv4'
          privateIPAllocationMethod: 'Dynamic'
          publicIPAddress: {
            id: publicIPAddress.id
          }
          subnet: {
            id: subnet.id
          }
        }
      }
    ]
  }
}

resource publicIPAddress 'Microsoft.Network/publicIPAddresses@2024-05-01' = {
  name: '${resourceName}-pip'
  location: location
  sku: {
    name: 'Basic'
    tier: 'Regional'
  }
  properties: {
    ddosSettings: {
      protectionMode: 'VirtualNetworkInherited'
    }
    dnsSettings: {
      domainNameLabel: dnsLabel
    }
    idleTimeoutInMinutes: 4
    publicIPAddressVersion: 'IPv4'
    publicIPAllocationMethod: 'Dynamic'
  }
}

resource virtualMachine 'Microsoft.Compute/virtualMachines@2024-03-01' = {
  name: '${resourceName}-vm'
  location: location
  properties: {
    diagnosticsProfile: {
      bootDiagnostics: {
        enabled: true
        storageUri: 'https://${saName}.blob.core.windows.net/'
      }
    }
    hardwareProfile: {
      vmSize: 'Standard_B1s'
    }
    networkProfile: {
      networkInterfaces: [
        {
          id: networkInterface.id
          properties: {
            primary: true
          }
        }
      ]
    }
    osProfile: {
      adminPassword: adminPassword
      adminUsername: 'vmadmin'
      computerName: compName
      linuxConfiguration: {
        disablePasswordAuthentication: false
      }
    }
    storageProfile: {
      dataDisks: [
        {
          createOption: 'Attach'
          diskSizeGB: 1023
          lun: 0
          managedDisk: {
            id: disk.id
            storageAccountType: 'Standard_LRS'
          }
          name: '${resourceName}-datadisk'
          writeAcceleratorEnabled: false
        }
        {
          createOption: 'Empty'
          diskSizeGB: 4
          lun: 1
          managedDisk: {
            storageAccountType: 'Standard_LRS'
          }
          name: '${resourceName}-datadisk2'
          writeAcceleratorEnabled: false
        }
      ]
      imageReference: {
        offer: '0001-com-ubuntu-server-jammy'
        publisher: 'Canonical'
        sku: '22_04-lts'
        version: 'latest'
      }
      osDisk: {
        caching: 'ReadWrite'
        createOption: 'FromImage'
        managedDisk: {
          storageAccountType: 'Standard_LRS'
        }
        name: '${resourceName}-osdisk'
        writeAcceleratorEnabled: false
      }
    }
  }
}

resource backupPolicy 'Microsoft.RecoveryServices/vaults/backupPolicies@2024-10-01' = {
  name: '${resourceName}-policy'
  parent: vault
  properties: {
    backupManagementType: 'AzureIaasVM'
    policyType: 'V1'
    retentionPolicy: {
      dailySchedule: {
        retentionDuration: {
          count: 10
          durationType: 'Days'
        }
        retentionTimes: [
          '2025-07-03T23:00:00Z'
        ]
      }
      retentionPolicyType: 'LongTermRetentionPolicy'
    }
    schedulePolicy: {
      schedulePolicyType: 'SimpleSchedulePolicy'
      scheduleRunDays: []
      scheduleRunFrequency: 'Daily'
      scheduleRunTimes: [
        '2025-07-03T23:00:00Z'
      ]
    }
    tieringPolicy: {
      ArchivedRP: {
        duration: 0
        durationType: 'Invalid'
        tieringMode: 'DoNotTier'
      }
    }
    timeZone: 'UTC'
  }
}

Azure 已驗證的模組

下列 Azure 驗證模組 可用來部署此資源類型。

Module 說明
復原服務保險庫 - 備份 Fabric - Prot Cont - 受保護項目 AVM 復原服務保險庫子模組 - 備份 Fabric - Prot Cont - 受保護項目

Azure 快速入門範例

下列 Azure 快速入門範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 說明
Azure 虛擬機中工作負載的 Azure 備份 此範本會建立復原服務保存庫和工作負載特定的備份原則。 向備份服務和設定保護註冊 VM
使用復原服務備份現有的檔案分享 (每日) 此範本會設定現有記憶體帳戶中現有檔案共享的保護。 它會根據 set 參數值,建立新的 或使用現有的復原服務保存庫和備份原則。
使用復原服務備份現有的檔案分享 (每小時) 此範本會以每小時頻率設定現有記憶體帳戶中現有檔案共享的保護。 它會根據 set 參數值,建立新的 或使用現有的復原服務保存庫和備份原則。
使用復原服務備份現有的 IaasVM 此範本將使用現有的復原服務保存庫和現有的備份原則,並設定多個傳統和 ARM 型 Azure IaasVM 的保護。
使用復原服務保存庫備份 Resource Manager VM 此範本會使用現有的復原服務保存庫和現有的備份原則,並設定多個屬於相同資源群組的 Resource Manager VM 備份
使用 FSLogix 和 AD DS Join 建立 AVD 此範本可讓您建立 Azure 虛擬桌面資源,例如主機集區、應用程式群組、工作區、FSLogix 儲存器帳戶、檔案共用、檔案共用、用於檔案共享的復原服務保存庫備份測試會話主機,其擴充功能與 Microsoft Entra ID join pr Active Directory 網域加入。
部署 Windows VM 並使用 Azure 備份 啟用備份 此範本可讓您部署使用DefaultPolicy for Protection 設定的 Windows VM 和復原服務保存庫。

資源格式

若要建立Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2020-10-01' = {
  parent: resourceSymbolicName
  eTag: 'string'
  location: 'string'
  name: 'string'
  properties: {
    backupManagementType: 'string'
    backupSetName: 'string'
    containerName: 'string'
    createMode: 'string'
    deferredDeleteTimeInUTC: 'string'
    deferredDeleteTimeRemaining: 'string'
    isDeferredDeleteScheduleUpcoming: bool
    isRehydrate: bool
    isScheduledForDeferredDelete: bool
    lastRecoveryPoint: 'string'
    policyId: 'string'
    sourceResourceId: 'string'
    workloadType: 'string'
    protectedItemType: 'string'
    // For remaining properties, see ProtectedItem objects
  }
  tags: {
    {customized property}: 'string'
  }
}

ProtectedItem 物件

設定 protectedItemType 屬性以指定對象的類型。

針對 AzureFileShareProtectedItem,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyState: 'string'
    recoveryPointCount: int
  }
  friendlyName: 'string'
  kpisHealths: {
    {customized property}: {
      resourceHealthDetails: [
        {}
      ]
      resourceHealthStatus: 'string'
    }
  }
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  protectedItemType: 'AzureFileShareProtectedItem'
  protectionState: 'string'
  protectionStatus: 'string'
}

針對 Microsoft.ClassicCompute/virtualMachines,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyInconsistent: bool
    recoveryPointCount: int
  }
  extendedProperties: {
    diskExclusionProperties: {
      diskLunList: [
        int
      ]
      isInclusionList: bool
    }
  }
  friendlyName: 'string'
  healthDetails: [
    {}
  ]
  healthStatus: 'string'
  kpisHealths: {
    {customized property}: {
      resourceHealthDetails: [
        {}
      ]
      resourceHealthStatus: 'string'
    }
  }
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  protectedItemDataId: 'string'
  protectedItemType: 'Microsoft.ClassicCompute/virtualMachines'
  protectionState: 'string'
  protectionStatus: 'string'
  virtualMachineId: 'string'
}

針對 Microsoft.Compute/virtualMachines,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyInconsistent: bool
    recoveryPointCount: int
  }
  extendedProperties: {
    diskExclusionProperties: {
      diskLunList: [
        int
      ]
      isInclusionList: bool
    }
  }
  friendlyName: 'string'
  healthDetails: [
    {}
  ]
  healthStatus: 'string'
  kpisHealths: {
    {customized property}: {
      resourceHealthDetails: [
        {}
      ]
      resourceHealthStatus: 'string'
    }
  }
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  protectedItemDataId: 'string'
  protectedItemType: 'Microsoft.Compute/virtualMachines'
  protectionState: 'string'
  protectionStatus: 'string'
  virtualMachineId: 'string'
}

針對 AzureVmWorkloadSAPAseDatabase,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyState: 'string'
    recoveryPointCount: int
  }
  friendlyName: 'string'
  kpisHealths: {
    {customized property}: {
      resourceHealthDetails: [
        {}
      ]
      resourceHealthStatus: 'string'
    }
  }
  lastBackupErrorDetail: {}
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  parentName: 'string'
  parentType: 'string'
  protectedItemDataSourceId: 'string'
  protectedItemHealthStatus: 'string'
  protectedItemType: 'AzureVmWorkloadSAPAseDatabase'
  protectionState: 'string'
  protectionStatus: 'string'
  serverName: 'string'
}

針對 AzureVmWorkloadSAPHanaDatabase,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyState: 'string'
    recoveryPointCount: int
  }
  friendlyName: 'string'
  kpisHealths: {
    {customized property}: {
      resourceHealthDetails: [
        {}
      ]
      resourceHealthStatus: 'string'
    }
  }
  lastBackupErrorDetail: {}
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  parentName: 'string'
  parentType: 'string'
  protectedItemDataSourceId: 'string'
  protectedItemHealthStatus: 'string'
  protectedItemType: 'AzureVmWorkloadSAPHanaDatabase'
  protectionState: 'string'
  protectionStatus: 'string'
  serverName: 'string'
}

針對 AzureVmWorkloadSQLDatabase,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyState: 'string'
    recoveryPointCount: int
  }
  friendlyName: 'string'
  kpisHealths: {
    {customized property}: {
      resourceHealthDetails: [
        {}
      ]
      resourceHealthStatus: 'string'
    }
  }
  lastBackupErrorDetail: {}
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  parentName: 'string'
  parentType: 'string'
  protectedItemDataSourceId: 'string'
  protectedItemHealthStatus: 'string'
  protectedItemType: 'AzureVmWorkloadSQLDatabase'
  protectionState: 'string'
  protectionStatus: 'string'
  serverName: 'string'
}

針對 DPMProtectedItem,請使用:

{
  backupEngineName: 'string'
  extendedInfo: {
    diskStorageUsedInBytes: 'string'
    isCollocated: bool
    isPresentOnCloud: bool
    lastBackupStatus: 'string'
    lastRefreshedAt: 'string'
    oldestRecoveryPoint: 'string'
    onPremiseLatestRecoveryPoint: 'string'
    onPremiseOldestRecoveryPoint: 'string'
    onPremiseRecoveryPointCount: int
    protectableObjectLoadPath: {
      {customized property}: 'string'
    }
    protected: bool
    protectionGroupName: 'string'
    recoveryPointCount: int
    totalDiskStorageSizeInBytes: 'string'
  }
  friendlyName: 'string'
  protectedItemType: 'DPMProtectedItem'
  protectionState: 'string'
}

針對 GenericProtectedItem,請使用:

{
  fabricName: 'string'
  friendlyName: 'string'
  policyState: 'string'
  protectedItemId: int
  protectedItemType: 'GenericProtectedItem'
  protectionState: 'string'
  sourceAssociations: {
    {customized property}: 'string'
  }
}

針對 MabFileFolderProtectedItem,請使用:

{
  computerName: 'string'
  deferredDeleteSyncTimeInUTC: int
  extendedInfo: {
    lastRefreshedAt: 'string'
    oldestRecoveryPoint: 'string'
    recoveryPointCount: int
  }
  friendlyName: 'string'
  lastBackupStatus: 'string'
  lastBackupTime: 'string'
  protectedItemType: 'MabFileFolderProtectedItem'
  protectionState: 'string'
}

針對 Microsoft.Sql/servers/databases,請使用:

{
  extendedInfo: {
    oldestRecoveryPoint: 'string'
    policyState: 'string'
    recoveryPointCount: int
  }
  protectedItemDataId: 'string'
  protectedItemType: 'Microsoft.Sql/servers/databases'
  protectionState: 'string'
}

屬性值

Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems

名稱 說明 價值觀
eTag 標籤 選擇性 ETag。 字串
位置 資源位置。 字串
名稱 資源名稱 字串 (必要)
父代 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源。
類型資源的符號名稱: vaults/backupFabrics/protectionContainers
屬性 ProtectedItemResource 屬性 ProtectedItem (受保護的專案)
標記 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

AzureFileshareProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureFileshareProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之檔案共用的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureFileshareProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemType 備份項目類型。 'AzureFileShareProtectedItem' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串

AzureFileshareProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 服務中此專案可用的最舊備份複本。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
recoveryPointCount 與此備份項目相關聯的可用備份複本數目。 整數 (int)

AzureFileshareProtectedItemKpisHealths

名稱 說明 價值觀

AzureIaaSClassicComputeVMProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureIaaSVMProtectedItemExtendedInfo
extendedProperties Azure IaasVM 備份的擴充屬性。 擴展屬性
友善名稱 這個備份專案所代表之 VM 的易記名稱。 字串
健康詳情 此備份專案的健康情況詳細數據。 AzureIaaSVMHealthDetails[]
健康狀態 受保護專案的健全狀態。 “所需作”
'建議採取行動'
“無效”
“通過”
kpisHealths 不同 KPI 的健康情況詳細數據 AzureIaaSVMProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemDataId 受保護項目的數據識別碼。 字串
protectedItemType 備份項目類型。 'Microsoft.ClassicCompute/virtualMachines' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
虛擬機器ID 這個專案所代表之虛擬機的完整ARM標識碼。 字串

AzureIaaSComputeVMProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureIaaSVMProtectedItemExtendedInfo
extendedProperties Azure IaasVM 備份的擴充屬性。 擴展屬性
友善名稱 這個備份專案所代表之 VM 的易記名稱。 字串
健康詳情 此備份專案的健康情況詳細數據。 AzureIaaSVMHealthDetails[]
健康狀態 受保護專案的健全狀態。 “所需作”
'建議採取行動'
“無效”
“通過”
kpisHealths 不同 KPI 的健康情況詳細數據 AzureIaaSVMProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemDataId 受保護項目的數據識別碼。 字串
protectedItemType 備份項目類型。 'Microsoft.Compute/virtualMachines' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
虛擬機器ID 這個專案所代表之虛擬機的完整ARM標識碼。 字串

AzureIaaSVMHealthDetails

名稱 說明 價值觀

AzureIaaSVMProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 此備份專案可用的最舊備份複本。 字串
policy不一致 指定與備份項目相關聯的備份原則是否不一致。 布爾 (bool)
recoveryPointCount 此備份專案可用的備份複本數目。 整數 (int)

AzureIaaSVMProtectedItemKpisHealths

名稱 說明 價值觀

AzureIaaSVMProtectedItemKpisHealths

名稱 說明 價值觀

AzureSqlProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureSqlProtectedItemExtendedInfo
protectedItemDataId 備份項目的內部標識碼。 由 Azure SQL 備份引擎用來連絡復原服務。 字串
protectedItemType 備份項目類型。 'Microsoft.Sql/servers/databases' (必要)
保護狀態 備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'

AzureSqlProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 服務中此專案可用的最舊備份複本。 字串
策略狀態 與此備份項目相關聯的備份原則狀態。 字串
recoveryPointCount 與此備份項目相關聯的可用備份複本數目。 整數 (int)

AzureVmWorkloadProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 此備份專案可用的最舊備份複本。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
recoveryPointCount 此備份專案可用的備份複本數目。 整數 (int)

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadSAPAseDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSAPAseDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

AzureVmWorkloadSAPHanaDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSAPHanaDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

AzureVmWorkloadSQLDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSQLDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

DiskExclusionProperties

名稱 說明 價值觀
diskLunList 磁碟清單 要用於 VM 保護的磁碟邏輯單元號碼清單。 int[]
isInclusionList 旗標,指出是否要在備份中包含/排除 DiskLunList。 布爾 (bool)

DPMProtectedItem

名稱 說明 價值觀
backupEngine名稱 保護此備份項目的備份管理伺服器 字串
擴展資訊 備份項目的擴充資訊。 DPMProtectedItemExtendedInfo
友善名稱 Managed 專案的易記名稱 字串
protectedItemType 備份項目類型。 'DPMProtectedItem' (必要)
保護狀態 備份引擎的保護狀態 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'

DPMProtectedItemExtendedInfo

名稱 說明 價值觀
diskStorageUsedInBytes 使用的磁碟記憶體,以位元組為單位。 字串
is並置 檢查備份專案是否已共置。 布爾 (bool)
isPresentOnCloud 雲 檢查備份專案是否受到雲端保護。 布爾 (bool)
lastBackupStatus (上次備份狀態) 備份專案上的上次備份狀態資訊。 字串
lastRefreshedAt 備份專案的上次重新整理時間。 字串
oldestRecoveryPoint (最舊恢復點) 最舊的雲端恢復點時間。 字串
onPremiseLatestRecoveryPoint 最新的磁碟恢復點時間。 字串
onPremiseOldestRecoveryPoint 最舊的磁碟恢復點時間。 字串
onPremiseRecoveryPointCount 磁碟恢復點計數。 整數 (int)
protectableObjectLoadPath 提供各種 DB 相關信息的屬性。 DPMProtectedItemExtendedInfoProtectableObjectLoadPath
受保護 檢查備份專案是否受到磁碟保護。 布爾 (bool)
protectionGroupName (保護組名稱) 備份項目的保護組名。 字串
recoveryPointCount 雲端恢復點計數。 整數 (int)
totalDiskStorageSize(位元節) 磁碟記憶體總計,以位元組為單位。 字串

DPMProtectedItemExtendedInfoProtectableObjectLoadPath

名稱 說明 價值觀

錯誤詳細資訊

名稱 說明 價值觀

擴展屬性

名稱 說明 價值觀
diskExclusionProperties 磁碟排除的擴充屬性。 DiskExclusionProperties

GenericProtectedItem (通用保護項)

名稱 說明 價值觀
fabricName (織物名稱) 此備份專案的網狀架構名稱。 字串
友善名稱 容器的易記名稱。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
protectedItemId 受保護項目的數據平面服務標識碼。 整數 (int)
protectedItemType 備份項目類型。 'GenericProtectedItem' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
源關聯 鬆散結合 (類型, 值) 關聯 (範例 - 受保護項目的父系) GenericProtectedItemSource關聯

GenericProtectedItemSource關聯

名稱 說明 價值觀

KPIResourceHealthDetails

名稱 說明 價值觀
resourceHealthDetails 資源健康狀態 資源健康詳細資訊
resourceHealthStatus 資源健康狀態 「狀況良好」
“無效”
“PersistentDegraded”
“PersistentUnhealthy”
“瞬態降級”
“TransientUnhealthy”

MabFileFolderProtectedItem

名稱 說明 價值觀
計算機名稱 與此備份項目相關聯的計算機名稱。 字串
deferredDeleteSyncTimeInUTC UTC 延遲刪除的同步時間 整數 (int)
擴展資訊 此備份專案的其他資訊。 MabFileFolderProtectedItemExtendedInfo
友善名稱 這個備份專案的易記名稱。 字串
lastBackupStatus (上次備份狀態) 上次備份作業的狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemType 備份項目類型。 'MabFileFolderProtectedItem' (必要)
保護狀態 Protected、ProtectionStopped、IRPending 或 ProtectionError 字串

MabFileFolderProtectedItemExtendedInfo

名稱 說明 價值觀
lastRefreshedAt 上次代理程式數據同步至服務的時間。 字串
oldestRecoveryPoint (最舊恢復點) 可用的最舊備份複本。 字串
recoveryPointCount 與備份項目相關聯的備份複本數目。 整數 (int)

ProtectedItem (受保護的專案)

名稱 說明 價值觀
backupManagementType 備份項目的備份管理類型。 “AzureBackupServer”
“AzureIaasVM”
“AzureSql”
“AzureStorage”
“AzureWorkload”
'默認備份'
“每分鐘”
“無效”
“MAB”
backupSetName (備份集名稱) 備份項目所屬備份集的名稱 字串
容器名稱 容器的唯一名稱 字串
createMode 建立模式,表示復原現有的虛刪除數據源或建立新的數據源。 預設
“無效”
“恢復”
deferredDeleteTimeInUTC UTC 延遲刪除的時間 字串
deferredDeleteTimeRemaining 在標示延遲刪除的 DS 之前剩餘的時間會永久刪除 字串
isDeferredDeleteSchedule即將來臨 旗標,以識別延遲刪除的 DS 是否即將清除 布爾 (bool)
isRehydrate 用來識別延遲刪除的 DS 要移至暫停狀態的旗標 布爾 (bool)
isScheduledForDeferredDelete 旗標,以識別 DS 是否排程延遲刪除 布爾 (bool)
lastRecoveryPoint (最後恢復點) 為此備份專案建立最後一個(最新)備份複本時的時間戳。 字串
政策識別碼 備份此項目的備份原則標識碼。 字串
protectedItemType 針對 AzureFileshareProtectedItem 類型,設定為 『AzureFileShareProtectedItem』。 針對 AzureIaaSClassicComputeVMProtectedItem 類型,設定為 'Microsoft.ClassicCompute/virtualMachines'。 針對 AzureIaaSComputeVMProtectedItem 類型,設定為 'Microsoft.Compute/virtualMachines'。 針對 AzureVmWorkloadSAPAseDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSAPAseDatabase'。 針對 AzureVmWorkloadSAPHanaDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSAPHanaDatabase'。 針對 AzureVmWorkloadSQLDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSQLDatabase'。 針對 DPMProtectedItem 類型,設定為 'DPMProtectedItem'。 針對 GenericProtectedItem 類型,設定為 'GenericProtectedItem'。 針對 MabFileFolderProtectedItem 類型,設定為 'MabFileFolderProtectedItem'。 針對 AzureSqlProtectedItem 類型,設定為 'Microsoft.Sql/servers/databases'。 “AzureFileShareProtectedItem”
“AzureVmWorkloadSAPAseDatabase”
“AzureVmWorkloadSAPHanaDatabase”
“AzureVmWorkloadSQLDatabase”
'DPMProtectedItem'
“GenericProtectedItem”
“MabFileFolderProtectedItem”
“Microsoft.ClassicCompute/virtualMachines”
“Microsoft.Compute/virtualMachines”
'Microsoft.Sql/servers/databases' (必要)
源資源ID 要備份之資源的 ARM 識別碼。 字串
workloadType 此專案代表的工作負載類型。 “AzureFileShare”
'AzureSqlDb'
“客戶”
“交換”
'資料夾'
'GenericDataSource'
“無效”
“SAPAseDatabase”
“SAPHanaDatabase”
“Sharepoint”
“SQLDataBase”
“SQLDB”
'系統狀態'
“VM”
“VMwareVM”

ResourceHealthDetails

名稱 說明 價值觀

資源標籤

名稱 說明 價值觀

ARM 樣本資源定義

保存庫/backupFabrics/protectionContainers/protectedItems 資源類型可以使用目標作業來部署:

使用範例

Azure 快速入門範本

下列 Azure 快速入門範本 部署此資源類型。

範本 說明
Azure 虛擬機中工作負載的 Azure 備份

部署至 Azure
此範本會建立復原服務保存庫和工作負載特定的備份原則。 向備份服務和設定保護註冊 VM
使用復原服務備份現有的檔案分享 (每日)

部署至 Azure
此範本會設定現有記憶體帳戶中現有檔案共享的保護。 它會根據 set 參數值,建立新的 或使用現有的復原服務保存庫和備份原則。
使用復原服務備份現有的檔案分享 (每小時)

部署至 Azure
此範本會以每小時頻率設定現有記憶體帳戶中現有檔案共享的保護。 它會根據 set 參數值,建立新的 或使用現有的復原服務保存庫和備份原則。
使用復原服務備份現有的 IaasVM

部署至 Azure
此範本將使用現有的復原服務保存庫和現有的備份原則,並設定多個傳統和 ARM 型 Azure IaasVM 的保護。
使用復原服務保存庫備份 Resource Manager VM

部署至 Azure
此範本會使用現有的復原服務保存庫和現有的備份原則,並設定多個屬於相同資源群組的 Resource Manager VM 備份
使用 FSLogix 和 AD DS Join 建立 AVD

部署至 Azure
此範本可讓您建立 Azure 虛擬桌面資源,例如主機集區、應用程式群組、工作區、FSLogix 儲存器帳戶、檔案共用、檔案共用、用於檔案共享的復原服務保存庫備份測試會話主機,其擴充功能與 Microsoft Entra ID join pr Active Directory 網域加入。
部署 Windows VM 並使用 Azure 備份 啟用備份

部署至 Azure
此範本可讓您部署使用DefaultPolicy for Protection 設定的 Windows VM 和復原服務保存庫。
Azure 上的 IBM Cloud Pak for Data

部署至 Azure
此範本會在 Azure 上部署 Openshift 叢集,其中包含所有必要的資源、基礎結構,然後部署 IBM Cloud Pak for Data,以及使用者選擇的附加元件。
Openshift 容器平臺 4.3

部署至 Azure
Openshift 容器平臺 4.3

資源格式

若要建立Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems",
  "apiVersion": "2020-10-01",
  "name": "string",
  "eTag": "string",
  "location": "string",
  "properties": {
    "backupManagementType": "string",
    "backupSetName": "string",
    "containerName": "string",
    "createMode": "string",
    "deferredDeleteTimeInUTC": "string",
    "deferredDeleteTimeRemaining": "string",
    "isDeferredDeleteScheduleUpcoming": "bool",
    "isRehydrate": "bool",
    "isScheduledForDeferredDelete": "bool",
    "lastRecoveryPoint": "string",
    "policyId": "string",
    "sourceResourceId": "string",
    "workloadType": "string",
    "protectedItemType": "string"
    // For remaining properties, see ProtectedItem objects
  },
  "tags": {
    "{customized property}": "string"
  }
}

ProtectedItem 物件

設定 protectedItemType 屬性以指定對象的類型。

針對 AzureFileShareProtectedItem,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyState": "string",
    "recoveryPointCount": "int"
  },
  "friendlyName": "string",
  "kpisHealths": {
    "{customized property}": {
      "resourceHealthDetails": [
        {
        }
      ],
      "resourceHealthStatus": "string"
    }
  },
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "protectedItemType": "AzureFileShareProtectedItem",
  "protectionState": "string",
  "protectionStatus": "string"
}

針對 Microsoft.ClassicCompute/virtualMachines,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyInconsistent": "bool",
    "recoveryPointCount": "int"
  },
  "extendedProperties": {
    "diskExclusionProperties": {
      "diskLunList": [ "int" ],
      "isInclusionList": "bool"
    }
  },
  "friendlyName": "string",
  "healthDetails": [
    {
    }
  ],
  "healthStatus": "string",
  "kpisHealths": {
    "{customized property}": {
      "resourceHealthDetails": [
        {
        }
      ],
      "resourceHealthStatus": "string"
    }
  },
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "protectedItemDataId": "string",
  "protectedItemType": "Microsoft.ClassicCompute/virtualMachines",
  "protectionState": "string",
  "protectionStatus": "string",
  "virtualMachineId": "string"
}

針對 Microsoft.Compute/virtualMachines,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyInconsistent": "bool",
    "recoveryPointCount": "int"
  },
  "extendedProperties": {
    "diskExclusionProperties": {
      "diskLunList": [ "int" ],
      "isInclusionList": "bool"
    }
  },
  "friendlyName": "string",
  "healthDetails": [
    {
    }
  ],
  "healthStatus": "string",
  "kpisHealths": {
    "{customized property}": {
      "resourceHealthDetails": [
        {
        }
      ],
      "resourceHealthStatus": "string"
    }
  },
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "protectedItemDataId": "string",
  "protectedItemType": "Microsoft.Compute/virtualMachines",
  "protectionState": "string",
  "protectionStatus": "string",
  "virtualMachineId": "string"
}

針對 AzureVmWorkloadSAPAseDatabase,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyState": "string",
    "recoveryPointCount": "int"
  },
  "friendlyName": "string",
  "kpisHealths": {
    "{customized property}": {
      "resourceHealthDetails": [
        {
        }
      ],
      "resourceHealthStatus": "string"
    }
  },
  "lastBackupErrorDetail": {
  },
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "parentName": "string",
  "parentType": "string",
  "protectedItemDataSourceId": "string",
  "protectedItemHealthStatus": "string",
  "protectedItemType": "AzureVmWorkloadSAPAseDatabase",
  "protectionState": "string",
  "protectionStatus": "string",
  "serverName": "string"
}

針對 AzureVmWorkloadSAPHanaDatabase,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyState": "string",
    "recoveryPointCount": "int"
  },
  "friendlyName": "string",
  "kpisHealths": {
    "{customized property}": {
      "resourceHealthDetails": [
        {
        }
      ],
      "resourceHealthStatus": "string"
    }
  },
  "lastBackupErrorDetail": {
  },
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "parentName": "string",
  "parentType": "string",
  "protectedItemDataSourceId": "string",
  "protectedItemHealthStatus": "string",
  "protectedItemType": "AzureVmWorkloadSAPHanaDatabase",
  "protectionState": "string",
  "protectionStatus": "string",
  "serverName": "string"
}

針對 AzureVmWorkloadSQLDatabase,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyState": "string",
    "recoveryPointCount": "int"
  },
  "friendlyName": "string",
  "kpisHealths": {
    "{customized property}": {
      "resourceHealthDetails": [
        {
        }
      ],
      "resourceHealthStatus": "string"
    }
  },
  "lastBackupErrorDetail": {
  },
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "parentName": "string",
  "parentType": "string",
  "protectedItemDataSourceId": "string",
  "protectedItemHealthStatus": "string",
  "protectedItemType": "AzureVmWorkloadSQLDatabase",
  "protectionState": "string",
  "protectionStatus": "string",
  "serverName": "string"
}

針對 DPMProtectedItem,請使用:

{
  "backupEngineName": "string",
  "extendedInfo": {
    "diskStorageUsedInBytes": "string",
    "isCollocated": "bool",
    "isPresentOnCloud": "bool",
    "lastBackupStatus": "string",
    "lastRefreshedAt": "string",
    "oldestRecoveryPoint": "string",
    "onPremiseLatestRecoveryPoint": "string",
    "onPremiseOldestRecoveryPoint": "string",
    "onPremiseRecoveryPointCount": "int",
    "protectableObjectLoadPath": {
      "{customized property}": "string"
    },
    "protected": "bool",
    "protectionGroupName": "string",
    "recoveryPointCount": "int",
    "totalDiskStorageSizeInBytes": "string"
  },
  "friendlyName": "string",
  "protectedItemType": "DPMProtectedItem",
  "protectionState": "string"
}

針對 GenericProtectedItem,請使用:

{
  "fabricName": "string",
  "friendlyName": "string",
  "policyState": "string",
  "protectedItemId": "int",
  "protectedItemType": "GenericProtectedItem",
  "protectionState": "string",
  "sourceAssociations": {
    "{customized property}": "string"
  }
}

針對 MabFileFolderProtectedItem,請使用:

{
  "computerName": "string",
  "deferredDeleteSyncTimeInUTC": "int",
  "extendedInfo": {
    "lastRefreshedAt": "string",
    "oldestRecoveryPoint": "string",
    "recoveryPointCount": "int"
  },
  "friendlyName": "string",
  "lastBackupStatus": "string",
  "lastBackupTime": "string",
  "protectedItemType": "MabFileFolderProtectedItem",
  "protectionState": "string"
}

針對 Microsoft.Sql/servers/databases,請使用:

{
  "extendedInfo": {
    "oldestRecoveryPoint": "string",
    "policyState": "string",
    "recoveryPointCount": "int"
  },
  "protectedItemDataId": "string",
  "protectedItemType": "Microsoft.Sql/servers/databases",
  "protectionState": "string"
}

屬性值

Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems

名稱 說明 價值觀
apiVersion API 版本 '2020-10-01'
eTag 標籤 選擇性 ETag。 字串
位置 資源位置。 字串
名稱 資源名稱 字串 (必要)
屬性 ProtectedItemResource 屬性 ProtectedItem (受保護的專案)
標記 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 “Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems”

AzureFileshareProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureFileshareProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之檔案共用的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureFileshareProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemType 備份項目類型。 'AzureFileShareProtectedItem' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串

AzureFileshareProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 服務中此專案可用的最舊備份複本。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
recoveryPointCount 與此備份項目相關聯的可用備份複本數目。 整數 (int)

AzureFileshareProtectedItemKpisHealths

名稱 說明 價值觀

AzureIaaSClassicComputeVMProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureIaaSVMProtectedItemExtendedInfo
extendedProperties Azure IaasVM 備份的擴充屬性。 擴展屬性
友善名稱 這個備份專案所代表之 VM 的易記名稱。 字串
健康詳情 此備份專案的健康情況詳細數據。 AzureIaaSVMHealthDetails[]
健康狀態 受保護專案的健全狀態。 “所需作”
'建議採取行動'
“無效”
“通過”
kpisHealths 不同 KPI 的健康情況詳細數據 AzureIaaSVMProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemDataId 受保護項目的數據識別碼。 字串
protectedItemType 備份項目類型。 'Microsoft.ClassicCompute/virtualMachines' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
虛擬機器ID 這個專案所代表之虛擬機的完整ARM標識碼。 字串

AzureIaaSComputeVMProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureIaaSVMProtectedItemExtendedInfo
extendedProperties Azure IaasVM 備份的擴充屬性。 擴展屬性
友善名稱 這個備份專案所代表之 VM 的易記名稱。 字串
健康詳情 此備份專案的健康情況詳細數據。 AzureIaaSVMHealthDetails[]
健康狀態 受保護專案的健全狀態。 “所需作”
'建議採取行動'
“無效”
“通過”
kpisHealths 不同 KPI 的健康情況詳細數據 AzureIaaSVMProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemDataId 受保護項目的數據識別碼。 字串
protectedItemType 備份項目類型。 'Microsoft.Compute/virtualMachines' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
虛擬機器ID 這個專案所代表之虛擬機的完整ARM標識碼。 字串

AzureIaaSVMHealthDetails

名稱 說明 價值觀

AzureIaaSVMProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 此備份專案可用的最舊備份複本。 字串
policy不一致 指定與備份項目相關聯的備份原則是否不一致。 布爾 (bool)
recoveryPointCount 此備份專案可用的備份複本數目。 整數 (int)

AzureIaaSVMProtectedItemKpisHealths

名稱 說明 價值觀

AzureIaaSVMProtectedItemKpisHealths

名稱 說明 價值觀

AzureSqlProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureSqlProtectedItemExtendedInfo
protectedItemDataId 備份項目的內部標識碼。 由 Azure SQL 備份引擎用來連絡復原服務。 字串
protectedItemType 備份項目類型。 'Microsoft.Sql/servers/databases' (必要)
保護狀態 備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'

AzureSqlProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 服務中此專案可用的最舊備份複本。 字串
策略狀態 與此備份項目相關聯的備份原則狀態。 字串
recoveryPointCount 與此備份項目相關聯的可用備份複本數目。 整數 (int)

AzureVmWorkloadProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 此備份專案可用的最舊備份複本。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
recoveryPointCount 此備份專案可用的備份複本數目。 整數 (int)

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadSAPAseDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSAPAseDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

AzureVmWorkloadSAPHanaDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSAPHanaDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

AzureVmWorkloadSQLDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSQLDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

DiskExclusionProperties

名稱 說明 價值觀
diskLunList 磁碟清單 要用於 VM 保護的磁碟邏輯單元號碼清單。 int[]
isInclusionList 旗標,指出是否要在備份中包含/排除 DiskLunList。 布爾 (bool)

DPMProtectedItem

名稱 說明 價值觀
backupEngine名稱 保護此備份項目的備份管理伺服器 字串
擴展資訊 備份項目的擴充資訊。 DPMProtectedItemExtendedInfo
友善名稱 Managed 專案的易記名稱 字串
protectedItemType 備份項目類型。 'DPMProtectedItem' (必要)
保護狀態 備份引擎的保護狀態 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'

DPMProtectedItemExtendedInfo

名稱 說明 價值觀
diskStorageUsedInBytes 使用的磁碟記憶體,以位元組為單位。 字串
is並置 檢查備份專案是否已共置。 布爾 (bool)
isPresentOnCloud 雲 檢查備份專案是否受到雲端保護。 布爾 (bool)
lastBackupStatus (上次備份狀態) 備份專案上的上次備份狀態資訊。 字串
lastRefreshedAt 備份專案的上次重新整理時間。 字串
oldestRecoveryPoint (最舊恢復點) 最舊的雲端恢復點時間。 字串
onPremiseLatestRecoveryPoint 最新的磁碟恢復點時間。 字串
onPremiseOldestRecoveryPoint 最舊的磁碟恢復點時間。 字串
onPremiseRecoveryPointCount 磁碟恢復點計數。 整數 (int)
protectableObjectLoadPath 提供各種 DB 相關信息的屬性。 DPMProtectedItemExtendedInfoProtectableObjectLoadPath
受保護 檢查備份專案是否受到磁碟保護。 布爾 (bool)
protectionGroupName (保護組名稱) 備份項目的保護組名。 字串
recoveryPointCount 雲端恢復點計數。 整數 (int)
totalDiskStorageSize(位元節) 磁碟記憶體總計,以位元組為單位。 字串

DPMProtectedItemExtendedInfoProtectableObjectLoadPath

名稱 說明 價值觀

錯誤詳細資訊

名稱 說明 價值觀

擴展屬性

名稱 說明 價值觀
diskExclusionProperties 磁碟排除的擴充屬性。 DiskExclusionProperties

GenericProtectedItem (通用保護項)

名稱 說明 價值觀
fabricName (織物名稱) 此備份專案的網狀架構名稱。 字串
友善名稱 容器的易記名稱。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
protectedItemId 受保護項目的數據平面服務標識碼。 整數 (int)
protectedItemType 備份項目類型。 'GenericProtectedItem' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
源關聯 鬆散結合 (類型, 值) 關聯 (範例 - 受保護項目的父系) GenericProtectedItemSource關聯

GenericProtectedItemSource關聯

名稱 說明 價值觀

KPIResourceHealthDetails

名稱 說明 價值觀
resourceHealthDetails 資源健康狀態 資源健康詳細資訊
resourceHealthStatus 資源健康狀態 「狀況良好」
“無效”
“PersistentDegraded”
“PersistentUnhealthy”
“瞬態降級”
“TransientUnhealthy”

MabFileFolderProtectedItem

名稱 說明 價值觀
計算機名稱 與此備份項目相關聯的計算機名稱。 字串
deferredDeleteSyncTimeInUTC UTC 延遲刪除的同步時間 整數 (int)
擴展資訊 此備份專案的其他資訊。 MabFileFolderProtectedItemExtendedInfo
友善名稱 這個備份專案的易記名稱。 字串
lastBackupStatus (上次備份狀態) 上次備份作業的狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemType 備份項目類型。 'MabFileFolderProtectedItem' (必要)
保護狀態 Protected、ProtectionStopped、IRPending 或 ProtectionError 字串

MabFileFolderProtectedItemExtendedInfo

名稱 說明 價值觀
lastRefreshedAt 上次代理程式數據同步至服務的時間。 字串
oldestRecoveryPoint (最舊恢復點) 可用的最舊備份複本。 字串
recoveryPointCount 與備份項目相關聯的備份複本數目。 整數 (int)

ProtectedItem (受保護的專案)

名稱 說明 價值觀
backupManagementType 備份項目的備份管理類型。 “AzureBackupServer”
“AzureIaasVM”
“AzureSql”
“AzureStorage”
“AzureWorkload”
'默認備份'
“每分鐘”
“無效”
“MAB”
backupSetName (備份集名稱) 備份項目所屬備份集的名稱 字串
容器名稱 容器的唯一名稱 字串
createMode 建立模式,表示復原現有的虛刪除數據源或建立新的數據源。 預設
“無效”
“恢復”
deferredDeleteTimeInUTC UTC 延遲刪除的時間 字串
deferredDeleteTimeRemaining 在標示延遲刪除的 DS 之前剩餘的時間會永久刪除 字串
isDeferredDeleteSchedule即將來臨 旗標,以識別延遲刪除的 DS 是否即將清除 布爾 (bool)
isRehydrate 用來識別延遲刪除的 DS 要移至暫停狀態的旗標 布爾 (bool)
isScheduledForDeferredDelete 旗標,以識別 DS 是否排程延遲刪除 布爾 (bool)
lastRecoveryPoint (最後恢復點) 為此備份專案建立最後一個(最新)備份複本時的時間戳。 字串
政策識別碼 備份此項目的備份原則標識碼。 字串
protectedItemType 針對 AzureFileshareProtectedItem 類型,設定為 『AzureFileShareProtectedItem』。 針對 AzureIaaSClassicComputeVMProtectedItem 類型,設定為 'Microsoft.ClassicCompute/virtualMachines'。 針對 AzureIaaSComputeVMProtectedItem 類型,設定為 'Microsoft.Compute/virtualMachines'。 針對 AzureVmWorkloadSAPAseDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSAPAseDatabase'。 針對 AzureVmWorkloadSAPHanaDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSAPHanaDatabase'。 針對 AzureVmWorkloadSQLDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSQLDatabase'。 針對 DPMProtectedItem 類型,設定為 'DPMProtectedItem'。 針對 GenericProtectedItem 類型,設定為 'GenericProtectedItem'。 針對 MabFileFolderProtectedItem 類型,設定為 'MabFileFolderProtectedItem'。 針對 AzureSqlProtectedItem 類型,設定為 'Microsoft.Sql/servers/databases'。 “AzureFileShareProtectedItem”
“AzureVmWorkloadSAPAseDatabase”
“AzureVmWorkloadSAPHanaDatabase”
“AzureVmWorkloadSQLDatabase”
'DPMProtectedItem'
“GenericProtectedItem”
“MabFileFolderProtectedItem”
“Microsoft.ClassicCompute/virtualMachines”
“Microsoft.Compute/virtualMachines”
'Microsoft.Sql/servers/databases' (必要)
源資源ID 要備份之資源的 ARM 識別碼。 字串
workloadType 此專案代表的工作負載類型。 “AzureFileShare”
'AzureSqlDb'
“客戶”
“交換”
'資料夾'
'GenericDataSource'
“無效”
“SAPAseDatabase”
“SAPHanaDatabase”
“Sharepoint”
“SQLDataBase”
“SQLDB”
'系統狀態'
“VM”
“VMwareVM”

ResourceHealthDetails

名稱 說明 價值觀

資源標籤

名稱 說明 價值觀

Terraform (AzAPI 提供者) 資源定義

保存庫/backupFabrics/protectionContainers/protectedItems 資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

使用範例

Terraform 範例

部署 Azure 備份受保護專案的基本範例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westus"
}

variable "admin_password" {
  type        = string
  sensitive   = true
  description = "The administrator password for the virtual machine"
}

locals {
  sa_base   = substr(lower(join("", split("-", var.resource_name))), 0, 24)
  sa_name   = local.sa_base
  dns_label = substr(lower(var.resource_name), 0, 63)
  comp_name = substr(var.resource_name, 0, 15)
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "publicIPAddress" {
  type      = "Microsoft.Network/publicIPAddresses@2024-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-pip"
  location  = var.location
  body = {
    properties = {
      ddosSettings = {
        protectionMode = "VirtualNetworkInherited"
      }
      dnsSettings = {
        domainNameLabel = local.dns_label
      }
      idleTimeoutInMinutes     = 4
      publicIPAddressVersion   = "IPv4"
      publicIPAllocationMethod = "Dynamic"
    }
    sku = {
      name = "Basic"
      tier = "Regional"
    }
  }
}

resource "azapi_resource" "virtualNetwork" {
  type      = "Microsoft.Network/virtualNetworks@2024-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-vnet"
  location  = var.location
  body = {
    properties = {
      addressSpace = {
        addressPrefixes = ["10.0.0.0/16"]
      }
      dhcpOptions = {
        dnsServers = []
      }
      privateEndpointVNetPolicies = "Disabled"
      subnets                     = []
    }
  }
}

resource "azapi_resource" "subnet" {
  type      = "Microsoft.Network/virtualNetworks/subnets@2024-05-01"
  parent_id = azapi_resource.virtualNetwork.id
  name      = "${var.resource_name}-subnet"
  body = {
    properties = {
      addressPrefix                     = "10.0.10.0/24"
      defaultOutboundAccess             = true
      delegations                       = []
      privateEndpointNetworkPolicies    = "Disabled"
      privateLinkServiceNetworkPolicies = "Enabled"
      serviceEndpointPolicies           = []
      serviceEndpoints                  = []
    }
  }
}

resource "azapi_resource" "networkInterface" {
  type      = "Microsoft.Network/networkInterfaces@2024-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-nic"
  location  = var.location
  body = {
    properties = {
      enableAcceleratedNetworking = false
      enableIPForwarding          = false
      ipConfigurations = [{
        name = "acctestipconfig"
        properties = {
          primary                   = true
          privateIPAddressVersion   = "IPv4"
          privateIPAllocationMethod = "Dynamic"
          publicIPAddress = {
            id = azapi_resource.publicIPAddress.id
          }
          subnet = {
            id = azapi_resource.subnet.id
          }
        }
      }]
    }
  }
}

resource "azapi_resource" "disk" {
  type      = "Microsoft.Compute/disks@2023-04-02"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-datadisk"
  location  = var.location
  body = {
    properties = {
      creationData = {
        createOption = "Empty"
      }
      diskSizeGB = 1023
      encryption = {
        type = "EncryptionAtRestWithPlatformKey"
      }
      networkAccessPolicy        = "AllowAll"
      optimizedForFrequentAttach = false
      osType                     = null
      publicNetworkAccess        = "Enabled"
    }
    sku = {
      name = "Standard_LRS"
    }
  }
}

resource "azapi_resource" "storageAccount" {
  type      = "Microsoft.Storage/storageAccounts@2023-05-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = local.sa_name
  location  = var.location
  body = {
    kind = "StorageV2"
    properties = {
      accessTier                   = "Hot"
      allowBlobPublicAccess        = true
      allowCrossTenantReplication  = false
      allowSharedKeyAccess         = true
      defaultToOAuthAuthentication = false
      dnsEndpointType              = "Standard"
      encryption = {
        keySource = "Microsoft.Storage"
        services = {
          queue = {
            keyType = "Service"
          }
          table = {
            keyType = "Service"
          }
        }
      }
      isHnsEnabled       = false
      isLocalUserEnabled = true
      isNfsV3Enabled     = false
      isSftpEnabled      = false
      minimumTlsVersion  = "TLS1_2"
      networkAcls = {
        bypass              = "AzureServices"
        defaultAction       = "Allow"
        ipRules             = []
        resourceAccessRules = []
        virtualNetworkRules = []
      }
      publicNetworkAccess      = "Enabled"
      supportsHttpsTrafficOnly = true
    }
    sku = {
      name = "Standard_LRS"
    }
  }
}

resource "azapi_resource" "vault" {
  type      = "Microsoft.RecoveryServices/vaults@2024-01-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-rsv"
  location  = var.location
  body = {
    properties = {
      publicNetworkAccess = "Enabled"
      redundancySettings = {
        crossRegionRestore            = "Disabled"
        standardTierStorageRedundancy = "GeoRedundant"
      }
    }
    sku = {
      name = "Standard"
    }
  }
}

resource "azapi_resource" "backupPolicy" {
  type      = "Microsoft.RecoveryServices/vaults/backupPolicies@2024-10-01"
  parent_id = azapi_resource.vault.id
  name      = "${var.resource_name}-policy"
  body = {
    properties = {
      backupManagementType = "AzureIaasVM"
      policyType           = "V1"
      retentionPolicy = {
        dailySchedule = {
          retentionDuration = {
            count        = 10
            durationType = "Days"
          }
          retentionTimes = ["2025-07-03T23:00:00Z"]
        }
        retentionPolicyType = "LongTermRetentionPolicy"
      }
      schedulePolicy = {
        schedulePolicyType   = "SimpleSchedulePolicy"
        scheduleRunDays      = []
        scheduleRunFrequency = "Daily"
        scheduleRunTimes     = ["2025-07-03T23:00:00Z"]
      }
      tieringPolicy = {
        ArchivedRP = {
          duration     = 0
          durationType = "Invalid"
          tieringMode  = "DoNotTier"
        }
      }
      timeZone = "UTC"
    }
  }
}

resource "azapi_resource" "virtualMachine" {
  type      = "Microsoft.Compute/virtualMachines@2024-03-01"
  parent_id = azapi_resource.resourceGroup.id
  name      = "${var.resource_name}-vm"
  location  = var.location
  body = {
    properties = {
      diagnosticsProfile = {
        bootDiagnostics = {
          enabled    = true
          storageUri = "https://${local.sa_name}.blob.core.windows.net/"
        }
      }
      hardwareProfile = {
        vmSize = "Standard_B1s"
      }
      networkProfile = {
        networkInterfaces = [{
          id = azapi_resource.networkInterface.id
          properties = {
            primary = true
          }
        }]
      }
      osProfile = {
        adminPassword = var.admin_password
        adminUsername = "vmadmin"
        computerName  = local.comp_name
        linuxConfiguration = {
          disablePasswordAuthentication = false
        }
      }
      storageProfile = {
        dataDisks = [{
          createOption = "Attach"
          diskSizeGB   = 1023
          lun          = 0
          managedDisk = {
            id                 = azapi_resource.disk.id
            storageAccountType = "Standard_LRS"
          }
          name                    = "${var.resource_name}-datadisk"
          writeAcceleratorEnabled = false
          }, {
          createOption = "Empty"
          diskSizeGB   = 4
          lun          = 1
          managedDisk = {
            storageAccountType = "Standard_LRS"
          }
          name                    = "${var.resource_name}-datadisk2"
          writeAcceleratorEnabled = false
        }]
        imageReference = {
          offer     = "0001-com-ubuntu-server-jammy"
          publisher = "Canonical"
          sku       = "22_04-lts"
          version   = "latest"
        }
        osDisk = {
          caching      = "ReadWrite"
          createOption = "FromImage"
          managedDisk = {
            storageAccountType = "Standard_LRS"
          }
          name                    = "${var.resource_name}-osdisk"
          writeAcceleratorEnabled = false
        }
      }
    }
  }
}

resource "azapi_resource" "protectedItem" {
  type      = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2023-02-01"
  parent_id = "${azapi_resource.vault.id}/backupFabrics/Azure/protectionContainers/iaasvmcontainer;iaasvmcontainerv2;${azapi_resource.resourceGroup.name};${azapi_resource.virtualMachine.name}"
  name      = "VM;iaasvmcontainerv2;${azapi_resource.resourceGroup.name};${azapi_resource.virtualMachine.name}"
  body = {
    properties = {
      extendedProperties = {
        diskExclusionProperties = {
          diskLunList     = [0]
          isInclusionList = true
        }
      }
      policyId          = azapi_resource.backupPolicy.id
      protectedItemType = "Microsoft.Compute/virtualMachines"
      sourceResourceId  = azapi_resource.virtualMachine.id
    }
  }
}

資源格式

若要建立 Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2020-10-01"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    eTag = "string"
    properties = {
      backupManagementType = "string"
      backupSetName = "string"
      containerName = "string"
      createMode = "string"
      deferredDeleteTimeInUTC = "string"
      deferredDeleteTimeRemaining = "string"
      isDeferredDeleteScheduleUpcoming = bool
      isRehydrate = bool
      isScheduledForDeferredDelete = bool
      lastRecoveryPoint = "string"
      policyId = "string"
      sourceResourceId = "string"
      workloadType = "string"
      protectedItemType = "string"
      // For remaining properties, see ProtectedItem objects
    }
  }
}

ProtectedItem 物件

設定 protectedItemType 屬性以指定對象的類型。

針對 AzureFileShareProtectedItem,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyState = "string"
    recoveryPointCount = int
  }
  friendlyName = "string"
  kpisHealths = {
    {customized property} = {
      resourceHealthDetails = [
        {
        }
      ]
      resourceHealthStatus = "string"
    }
  }
  lastBackupStatus = "string"
  lastBackupTime = "string"
  protectedItemType = "AzureFileShareProtectedItem"
  protectionState = "string"
  protectionStatus = "string"
}

針對 Microsoft.ClassicCompute/virtualMachines,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyInconsistent = bool
    recoveryPointCount = int
  }
  extendedProperties = {
    diskExclusionProperties = {
      diskLunList = [
        int
      ]
      isInclusionList = bool
    }
  }
  friendlyName = "string"
  healthDetails = [
    {
    }
  ]
  healthStatus = "string"
  kpisHealths = {
    {customized property} = {
      resourceHealthDetails = [
        {
        }
      ]
      resourceHealthStatus = "string"
    }
  }
  lastBackupStatus = "string"
  lastBackupTime = "string"
  protectedItemDataId = "string"
  protectedItemType = "Microsoft.ClassicCompute/virtualMachines"
  protectionState = "string"
  protectionStatus = "string"
  virtualMachineId = "string"
}

針對 Microsoft.Compute/virtualMachines,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyInconsistent = bool
    recoveryPointCount = int
  }
  extendedProperties = {
    diskExclusionProperties = {
      diskLunList = [
        int
      ]
      isInclusionList = bool
    }
  }
  friendlyName = "string"
  healthDetails = [
    {
    }
  ]
  healthStatus = "string"
  kpisHealths = {
    {customized property} = {
      resourceHealthDetails = [
        {
        }
      ]
      resourceHealthStatus = "string"
    }
  }
  lastBackupStatus = "string"
  lastBackupTime = "string"
  protectedItemDataId = "string"
  protectedItemType = "Microsoft.Compute/virtualMachines"
  protectionState = "string"
  protectionStatus = "string"
  virtualMachineId = "string"
}

針對 AzureVmWorkloadSAPAseDatabase,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyState = "string"
    recoveryPointCount = int
  }
  friendlyName = "string"
  kpisHealths = {
    {customized property} = {
      resourceHealthDetails = [
        {
        }
      ]
      resourceHealthStatus = "string"
    }
  }
  lastBackupErrorDetail = {
  }
  lastBackupStatus = "string"
  lastBackupTime = "string"
  parentName = "string"
  parentType = "string"
  protectedItemDataSourceId = "string"
  protectedItemHealthStatus = "string"
  protectedItemType = "AzureVmWorkloadSAPAseDatabase"
  protectionState = "string"
  protectionStatus = "string"
  serverName = "string"
}

針對 AzureVmWorkloadSAPHanaDatabase,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyState = "string"
    recoveryPointCount = int
  }
  friendlyName = "string"
  kpisHealths = {
    {customized property} = {
      resourceHealthDetails = [
        {
        }
      ]
      resourceHealthStatus = "string"
    }
  }
  lastBackupErrorDetail = {
  }
  lastBackupStatus = "string"
  lastBackupTime = "string"
  parentName = "string"
  parentType = "string"
  protectedItemDataSourceId = "string"
  protectedItemHealthStatus = "string"
  protectedItemType = "AzureVmWorkloadSAPHanaDatabase"
  protectionState = "string"
  protectionStatus = "string"
  serverName = "string"
}

針對 AzureVmWorkloadSQLDatabase,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyState = "string"
    recoveryPointCount = int
  }
  friendlyName = "string"
  kpisHealths = {
    {customized property} = {
      resourceHealthDetails = [
        {
        }
      ]
      resourceHealthStatus = "string"
    }
  }
  lastBackupErrorDetail = {
  }
  lastBackupStatus = "string"
  lastBackupTime = "string"
  parentName = "string"
  parentType = "string"
  protectedItemDataSourceId = "string"
  protectedItemHealthStatus = "string"
  protectedItemType = "AzureVmWorkloadSQLDatabase"
  protectionState = "string"
  protectionStatus = "string"
  serverName = "string"
}

針對 DPMProtectedItem,請使用:

{
  backupEngineName = "string"
  extendedInfo = {
    diskStorageUsedInBytes = "string"
    isCollocated = bool
    isPresentOnCloud = bool
    lastBackupStatus = "string"
    lastRefreshedAt = "string"
    oldestRecoveryPoint = "string"
    onPremiseLatestRecoveryPoint = "string"
    onPremiseOldestRecoveryPoint = "string"
    onPremiseRecoveryPointCount = int
    protectableObjectLoadPath = {
      {customized property} = "string"
    }
    protected = bool
    protectionGroupName = "string"
    recoveryPointCount = int
    totalDiskStorageSizeInBytes = "string"
  }
  friendlyName = "string"
  protectedItemType = "DPMProtectedItem"
  protectionState = "string"
}

針對 GenericProtectedItem,請使用:

{
  fabricName = "string"
  friendlyName = "string"
  policyState = "string"
  protectedItemId = int
  protectedItemType = "GenericProtectedItem"
  protectionState = "string"
  sourceAssociations = {
    {customized property} = "string"
  }
}

針對 MabFileFolderProtectedItem,請使用:

{
  computerName = "string"
  deferredDeleteSyncTimeInUTC = int
  extendedInfo = {
    lastRefreshedAt = "string"
    oldestRecoveryPoint = "string"
    recoveryPointCount = int
  }
  friendlyName = "string"
  lastBackupStatus = "string"
  lastBackupTime = "string"
  protectedItemType = "MabFileFolderProtectedItem"
  protectionState = "string"
}

針對 Microsoft.Sql/servers/databases,請使用:

{
  extendedInfo = {
    oldestRecoveryPoint = "string"
    policyState = "string"
    recoveryPointCount = int
  }
  protectedItemDataId = "string"
  protectedItemType = "Microsoft.Sql/servers/databases"
  protectionState = "string"
}

屬性值

Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems

名稱 說明 價值觀
eTag 標籤 選擇性 ETag。 字串
位置 資源位置。 字串
名稱 資源名稱 字串 (必要)
父項識別碼 此資源為父系之資源的標識碼。 類型資源的標識碼: vaults/backupFabrics/protectionContainers
屬性 ProtectedItemResource 屬性 ProtectedItem (受保護的專案)
標記 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2020-10-01”

AzureFileshareProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureFileshareProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之檔案共用的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureFileshareProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemType 備份項目類型。 'AzureFileShareProtectedItem' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串

AzureFileshareProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 服務中此專案可用的最舊備份複本。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
recoveryPointCount 與此備份項目相關聯的可用備份複本數目。 整數 (int)

AzureFileshareProtectedItemKpisHealths

名稱 說明 價值觀

AzureIaaSClassicComputeVMProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureIaaSVMProtectedItemExtendedInfo
extendedProperties Azure IaasVM 備份的擴充屬性。 擴展屬性
友善名稱 這個備份專案所代表之 VM 的易記名稱。 字串
健康詳情 此備份專案的健康情況詳細數據。 AzureIaaSVMHealthDetails[]
健康狀態 受保護專案的健全狀態。 “所需作”
'建議採取行動'
“無效”
“通過”
kpisHealths 不同 KPI 的健康情況詳細數據 AzureIaaSVMProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemDataId 受保護項目的數據識別碼。 字串
protectedItemType 備份項目類型。 'Microsoft.ClassicCompute/virtualMachines' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
虛擬機器ID 這個專案所代表之虛擬機的完整ARM標識碼。 字串

AzureIaaSComputeVMProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureIaaSVMProtectedItemExtendedInfo
extendedProperties Azure IaasVM 備份的擴充屬性。 擴展屬性
友善名稱 這個備份專案所代表之 VM 的易記名稱。 字串
健康詳情 此備份專案的健康情況詳細數據。 AzureIaaSVMHealthDetails[]
健康狀態 受保護專案的健全狀態。 “所需作”
'建議採取行動'
“無效”
“通過”
kpisHealths 不同 KPI 的健康情況詳細數據 AzureIaaSVMProtectedItemKpisHealths
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemDataId 受保護項目的數據識別碼。 字串
protectedItemType 備份項目類型。 'Microsoft.Compute/virtualMachines' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
虛擬機器ID 這個專案所代表之虛擬機的完整ARM標識碼。 字串

AzureIaaSVMHealthDetails

名稱 說明 價值觀

AzureIaaSVMProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 此備份專案可用的最舊備份複本。 字串
policy不一致 指定與備份項目相關聯的備份原則是否不一致。 布爾 (bool)
recoveryPointCount 此備份專案可用的備份複本數目。 整數 (int)

AzureIaaSVMProtectedItemKpisHealths

名稱 說明 價值觀

AzureIaaSVMProtectedItemKpisHealths

名稱 說明 價值觀

AzureSqlProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureSqlProtectedItemExtendedInfo
protectedItemDataId 備份項目的內部標識碼。 由 Azure SQL 備份引擎用來連絡復原服務。 字串
protectedItemType 備份項目類型。 'Microsoft.Sql/servers/databases' (必要)
保護狀態 備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'

AzureSqlProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 服務中此專案可用的最舊備份複本。 字串
策略狀態 與此備份項目相關聯的備份原則狀態。 字串
recoveryPointCount 與此備份項目相關聯的可用備份複本數目。 整數 (int)

AzureVmWorkloadProtectedItemExtendedInfo

名稱 說明 價值觀
oldestRecoveryPoint (最舊恢復點) 此備份專案可用的最舊備份複本。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
recoveryPointCount 此備份專案可用的備份複本數目。 整數 (int)

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadProtectedItemKpisHealths

名稱 說明 價值觀

AzureVmWorkloadSAPAseDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSAPAseDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

AzureVmWorkloadSAPHanaDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSAPHanaDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

AzureVmWorkloadSQLDatabaseProtectedItem

名稱 說明 價值觀
擴展資訊 此備份專案的其他資訊。 AzureVmWorkloadProtectedItemExtendedInfo
友善名稱 這個備份專案所表示之 DB 的易記名稱。 字串
kpisHealths 不同 KPI 的健康情況詳細數據 AzureVmWorkloadProtectedItemKpisHealths
lastBackupErrorDetail 上次備份中的錯誤詳細數據 錯誤詳細資訊
lastBackupStatus (上次備份狀態) 上次備份作業狀態。 可能的值:狀況良好、狀況不良。 「狀況良好」
“無效”
“IRPending”
「狀況不良」
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
parentName (父名稱) 實例或可用性群組等 DB 的父名稱。 字串
父類型 受保護專案的父類型,例如:DB、獨立伺服器或分散式 字串
protectedItemDataSourceId 受保護項目的數據識別碼。 字串
protectedItemHealthStatus 備份專案的健全狀態,根據收到的最後一個活動訊號進行評估 「狀況良好」
“無效”
“IRPending”
“NotReachable”
「狀況不良」
protectedItemType 備份項目類型。 'AzureVmWorkloadSQLDatabase' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
protectionStatus 此備份項目的備份狀態。 字串
伺服器名稱 實例或 AG 的主機/叢集名稱 字串

DiskExclusionProperties

名稱 說明 價值觀
diskLunList 磁碟清單 要用於 VM 保護的磁碟邏輯單元號碼清單。 int[]
isInclusionList 旗標,指出是否要在備份中包含/排除 DiskLunList。 布爾 (bool)

DPMProtectedItem

名稱 說明 價值觀
backupEngine名稱 保護此備份項目的備份管理伺服器 字串
擴展資訊 備份項目的擴充資訊。 DPMProtectedItemExtendedInfo
友善名稱 Managed 專案的易記名稱 字串
protectedItemType 備份項目類型。 'DPMProtectedItem' (必要)
保護狀態 備份引擎的保護狀態 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'

DPMProtectedItemExtendedInfo

名稱 說明 價值觀
diskStorageUsedInBytes 使用的磁碟記憶體,以位元組為單位。 字串
is並置 檢查備份專案是否已共置。 布爾 (bool)
isPresentOnCloud 雲 檢查備份專案是否受到雲端保護。 布爾 (bool)
lastBackupStatus (上次備份狀態) 備份專案上的上次備份狀態資訊。 字串
lastRefreshedAt 備份專案的上次重新整理時間。 字串
oldestRecoveryPoint (最舊恢復點) 最舊的雲端恢復點時間。 字串
onPremiseLatestRecoveryPoint 最新的磁碟恢復點時間。 字串
onPremiseOldestRecoveryPoint 最舊的磁碟恢復點時間。 字串
onPremiseRecoveryPointCount 磁碟恢復點計數。 整數 (int)
protectableObjectLoadPath 提供各種 DB 相關信息的屬性。 DPMProtectedItemExtendedInfoProtectableObjectLoadPath
受保護 檢查備份專案是否受到磁碟保護。 布爾 (bool)
protectionGroupName (保護組名稱) 備份項目的保護組名。 字串
recoveryPointCount 雲端恢復點計數。 整數 (int)
totalDiskStorageSize(位元節) 磁碟記憶體總計,以位元組為單位。 字串

DPMProtectedItemExtendedInfoProtectableObjectLoadPath

名稱 說明 價值觀

錯誤詳細資訊

名稱 說明 價值觀

擴展屬性

名稱 說明 價值觀
diskExclusionProperties 磁碟排除的擴充屬性。 DiskExclusionProperties

GenericProtectedItem (通用保護項)

名稱 說明 價值觀
fabricName (織物名稱) 此備份專案的網狀架構名稱。 字串
友善名稱 容器的易記名稱。 字串
策略狀態 表示套用至此備份項目的原則對象和原則的一致性。 字串
protectedItemId 受保護項目的數據平面服務標識碼。 整數 (int)
protectedItemType 備份項目類型。 'GenericProtectedItem' (必要)
保護狀態 此備份項目的備份狀態。 “無效”
“IRPending”
“受保護”
“ProtectionError”
“ProtectionPaused”
'ProtectionStopped'
源關聯 鬆散結合 (類型, 值) 關聯 (範例 - 受保護項目的父系) GenericProtectedItemSource關聯

GenericProtectedItemSource關聯

名稱 說明 價值觀

KPIResourceHealthDetails

名稱 說明 價值觀
resourceHealthDetails 資源健康狀態 資源健康詳細資訊
resourceHealthStatus 資源健康狀態 「狀況良好」
“無效”
“PersistentDegraded”
“PersistentUnhealthy”
“瞬態降級”
“TransientUnhealthy”

MabFileFolderProtectedItem

名稱 說明 價值觀
計算機名稱 與此備份項目相關聯的計算機名稱。 字串
deferredDeleteSyncTimeInUTC UTC 延遲刪除的同步時間 整數 (int)
擴展資訊 此備份專案的其他資訊。 MabFileFolderProtectedItemExtendedInfo
友善名稱 這個備份專案的易記名稱。 字串
lastBackupStatus (上次備份狀態) 上次備份作業的狀態。 字串
lastBackupTime (上次備份時間) 此備份項目上最後一次備份作業的時間戳。 字串
protectedItemType 備份項目類型。 'MabFileFolderProtectedItem' (必要)
保護狀態 Protected、ProtectionStopped、IRPending 或 ProtectionError 字串

MabFileFolderProtectedItemExtendedInfo

名稱 說明 價值觀
lastRefreshedAt 上次代理程式數據同步至服務的時間。 字串
oldestRecoveryPoint (最舊恢復點) 可用的最舊備份複本。 字串
recoveryPointCount 與備份項目相關聯的備份複本數目。 整數 (int)

ProtectedItem (受保護的專案)

名稱 說明 價值觀
backupManagementType 備份項目的備份管理類型。 “AzureBackupServer”
“AzureIaasVM”
“AzureSql”
“AzureStorage”
“AzureWorkload”
'默認備份'
“每分鐘”
“無效”
“MAB”
backupSetName (備份集名稱) 備份項目所屬備份集的名稱 字串
容器名稱 容器的唯一名稱 字串
createMode 建立模式,表示復原現有的虛刪除數據源或建立新的數據源。 預設
“無效”
“恢復”
deferredDeleteTimeInUTC UTC 延遲刪除的時間 字串
deferredDeleteTimeRemaining 在標示延遲刪除的 DS 之前剩餘的時間會永久刪除 字串
isDeferredDeleteSchedule即將來臨 旗標,以識別延遲刪除的 DS 是否即將清除 布爾 (bool)
isRehydrate 用來識別延遲刪除的 DS 要移至暫停狀態的旗標 布爾 (bool)
isScheduledForDeferredDelete 旗標,以識別 DS 是否排程延遲刪除 布爾 (bool)
lastRecoveryPoint (最後恢復點) 為此備份專案建立最後一個(最新)備份複本時的時間戳。 字串
政策識別碼 備份此項目的備份原則標識碼。 字串
protectedItemType 針對 AzureFileshareProtectedItem 類型,設定為 『AzureFileShareProtectedItem』。 針對 AzureIaaSClassicComputeVMProtectedItem 類型,設定為 'Microsoft.ClassicCompute/virtualMachines'。 針對 AzureIaaSComputeVMProtectedItem 類型,設定為 'Microsoft.Compute/virtualMachines'。 針對 AzureVmWorkloadSAPAseDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSAPAseDatabase'。 針對 AzureVmWorkloadSAPHanaDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSAPHanaDatabase'。 針對 AzureVmWorkloadSQLDatabaseProtectedItem 類型,設定為 'AzureVmWorkloadSQLDatabase'。 針對 DPMProtectedItem 類型,設定為 'DPMProtectedItem'。 針對 GenericProtectedItem 類型,設定為 'GenericProtectedItem'。 針對 MabFileFolderProtectedItem 類型,設定為 'MabFileFolderProtectedItem'。 針對 AzureSqlProtectedItem 類型,設定為 'Microsoft.Sql/servers/databases'。 “AzureFileShareProtectedItem”
“AzureVmWorkloadSAPAseDatabase”
“AzureVmWorkloadSAPHanaDatabase”
“AzureVmWorkloadSQLDatabase”
'DPMProtectedItem'
“GenericProtectedItem”
“MabFileFolderProtectedItem”
“Microsoft.ClassicCompute/virtualMachines”
“Microsoft.Compute/virtualMachines”
'Microsoft.Sql/servers/databases' (必要)
源資源ID 要備份之資源的 ARM 識別碼。 字串
workloadType 此專案代表的工作負載類型。 “AzureFileShare”
'AzureSqlDb'
“客戶”
“交換”
'資料夾'
'GenericDataSource'
“無效”
“SAPAseDatabase”
“SAPHanaDatabase”
“Sharepoint”
“SQLDataBase”
“SQLDB”
'系統狀態'
“VM”
“VMwareVM”

ResourceHealthDetails

名稱 說明 價值觀

資源標籤

名稱 說明 價值觀