你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Compute restorePointCollections/restorePoints 2023-03-01

Bicep 资源定义

restorePointCollections/restorePoints 资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/restorePointCollections/restorePoints 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Compute/restorePointCollections/restorePoints@2023-03-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    consistencyMode: 'string'
    excludeDisks: [
      {
        id: 'string'
      }
    ]
    sourceMetadata: {
      storageProfile: {
        dataDisks: [
          {
            caching: 'string'
            diskRestorePoint: {
              encryption: {
                diskEncryptionSet: {
                  id: 'string'
                }
                type: 'string'
              }
              sourceDiskRestorePoint: {
                id: 'string'
              }
            }
            managedDisk: {
              diskEncryptionSet: {
                id: 'string'
              }
              id: 'string'
              securityProfile: {
                diskEncryptionSet: {
                  id: 'string'
                }
                securityEncryptionType: 'string'
              }
              storageAccountType: 'string'
            }
          }
        ]
        osDisk: {
          caching: 'string'
          diskRestorePoint: {
            encryption: {
              diskEncryptionSet: {
                id: 'string'
              }
              type: 'string'
            }
            sourceDiskRestorePoint: {
              id: 'string'
            }
          }
          managedDisk: {
            diskEncryptionSet: {
              id: 'string'
            }
            id: 'string'
            securityProfile: {
              diskEncryptionSet: {
                id: 'string'
              }
              securityEncryptionType: 'string'
            }
            storageAccountType: 'string'
          }
        }
      }
    }
    sourceRestorePoint: {
      id: 'string'
    }
    timeCreated: 'string'
  }
}

属性值

restorePointCollections/restorePoints

名称 说明
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: restorePointCollections
properties 还原点属性。 RestorePointProperties

RestorePointProperties

名称 说明
consistencyMode RestorePoint 的 ConsistencyMode。 可以在创建还原点时在输入中指定。 目前,仅接受 CrashConsistent 作为有效输入。 有关更多详细信息,请参阅 https://aka.ms/RestorePoints “ApplicationConsistent”
'CrashConsistent'
“FileSystemConsistent”
excludeDisks 客户希望从还原点中排除的磁盘资源 ID 的列表。 如果未指定磁盘,则将包含所有磁盘。 ApiEntityReference[]
sourceMetadata 获取在创建还原点时捕获的 VM 的详细信息。 RestorePointSourceMetadata
sourceRestorePoint 需要从中创建副本的源还原点的资源 ID。 ApiEntityReference
timeCreated 获取还原点的创建时间。 字符串

ApiEntityReference

名称 说明 Value
id 采用 /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... 格式的 ARM 资源 ID。 字符串

RestorePointSourceMetadata

名称 说明
storageProfile 获取存储配置文件。 RestorePointSourceVMStorageProfile

RestorePointSourceVMStorageProfile

名称 说明
dataDisks 获取创建还原点时捕获的 VM 的数据磁盘。 RestorePointSourceVMDataDisk[]
osDisk 获取在创建还原点时捕获的 VM 的 OS 磁盘。 RestorePointSourceVmosDisk

RestorePointSourceVMDataDisk

名称 说明
缓存 获取缓存类型。 “None”
“ReadOnly”
“ReadWrite”
diskRestorePoint 包含磁盘还原点属性。 DiskRestorePointAttributes
managedDisk 包含托管磁盘详细信息。 ManagedDiskParameters

DiskRestorePointAttributes

名称 说明
加密 磁盘还原点的静态加密设置。 它是一个可选属性,可在创建还原点时在输入中指定。 RestorePointEncryption
sourceDiskRestorePoint 源磁盘还原点的资源 ID。 ApiEntityReference

RestorePointEncryption

名称 说明
diskEncryptionSet 描述可为磁盘指定的客户托管磁盘加密集资源 ID 的参数。 注意: 只能为托管磁盘指定磁盘加密集资源 ID。 有关更多详细信息,请参阅 https://aka.ms/mdssewithcmkoverview DiskEncryptionSetParameters
类型 用于加密磁盘还原点数据的密钥类型。 “EncryptionAtRestWithCustomerKey”
'EncryptionAtRestWithPlatformAndCustomerKeys'
“EncryptionAtRestWithPlatformKey”

DiskEncryptionSetParameters

名称 说明 Value
id 资源 ID 字符串

ManagedDiskParameters

名称 说明
diskEncryptionSet 指定托管磁盘的客户托管磁盘加密集资源 ID。 DiskEncryptionSetParameters
id 资源 ID 字符串
securityProfile 指定托管磁盘的安全配置文件。 VMDiskSecurityProfile
storageAccountType 指定托管磁盘的存储帐户类型。 注意:UltraSSD_LRS只能与数据磁盘一起使用,不能与 OS 磁盘一起使用。 “PremiumV2_LRS”
“Premium_LRS”
“Premium_ZRS”
“StandardSSD_LRS”
“StandardSSD_ZRS”
“Standard_LRS”
“UltraSSD_LRS”

VMDiskSecurityProfile

名称 说明
diskEncryptionSet 指定用于客户托管密钥加密机密 VM OS 磁盘和 VMGuest Blob 的托管磁盘的客户托管磁盘加密集资源 ID。 DiskEncryptionSetParameters
securityEncryptionType 指定托管磁盘的 EncryptionType。 它设置为 DiskWithVMGuestState 以加密托管磁盘和 VMGuestState blob,设置为 VMGuestStateOnly,仅加密 VMGuestState blob。 注意: 只能为机密 VM 设置它。 “DiskWithVMGuestState”
'VMGuestStateOnly'

RestorePointSourceVmosDisk

名称 说明
缓存 获取缓存类型。 “None”
“ReadOnly”
“ReadWrite”
diskRestorePoint 包含磁盘还原点属性。 DiskRestorePointAttributes
managedDisk 获取托管磁盘详细信息 ManagedDiskParameters

ARM 模板资源定义

可以使用面向以下操作部署 restorePointCollections/restorePoints 资源类型:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/restorePointCollections/restorePoints 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Compute/restorePointCollections/restorePoints",
  "apiVersion": "2023-03-01",
  "name": "string",
  "properties": {
    "consistencyMode": "string",
    "excludeDisks": [
      {
        "id": "string"
      }
    ],
    "sourceMetadata": {
      "storageProfile": {
        "dataDisks": [
          {
            "caching": "string",
            "diskRestorePoint": {
              "encryption": {
                "diskEncryptionSet": {
                  "id": "string"
                },
                "type": "string"
              },
              "sourceDiskRestorePoint": {
                "id": "string"
              }
            },
            "managedDisk": {
              "diskEncryptionSet": {
                "id": "string"
              },
              "id": "string",
              "securityProfile": {
                "diskEncryptionSet": {
                  "id": "string"
                },
                "securityEncryptionType": "string"
              },
              "storageAccountType": "string"
            }
          }
        ],
        "osDisk": {
          "caching": "string",
          "diskRestorePoint": {
            "encryption": {
              "diskEncryptionSet": {
                "id": "string"
              },
              "type": "string"
            },
            "sourceDiskRestorePoint": {
              "id": "string"
            }
          },
          "managedDisk": {
            "diskEncryptionSet": {
              "id": "string"
            },
            "id": "string",
            "securityProfile": {
              "diskEncryptionSet": {
                "id": "string"
              },
              "securityEncryptionType": "string"
            },
            "storageAccountType": "string"
          }
        }
      }
    },
    "sourceRestorePoint": {
      "id": "string"
    },
    "timeCreated": "string"
  }
}

属性值

restorePointCollections/restorePoints

名称 说明 Value
type 资源类型 'Microsoft.Compute/restorePointCollections/restorePoints'
apiVersion 资源 API 版本 '2023-03-01'
name 资源名称

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
properties 还原点属性。 RestorePointProperties

RestorePointProperties

名称 说明
consistencyMode RestorePoint 的 ConsistencyMode。 可以在创建还原点时在输入中指定。 目前,仅接受 CrashConsistent 作为有效输入。 有关更多详细信息,请参阅 https://aka.ms/RestorePoints “ApplicationConsistent”
'CrashConsistent'
“FileSystemConsistent”
excludeDisks 客户希望从还原点中排除的磁盘资源 ID 的列表。 如果未指定磁盘,则将包含所有磁盘。 ApiEntityReference[]
sourceMetadata 获取在创建还原点时捕获的 VM 的详细信息。 RestorePointSourceMetadata
sourceRestorePoint 需要从中创建副本的源还原点的资源 ID。 ApiEntityReference
timeCreated 获取还原点的创建时间。 字符串

ApiEntityReference

名称 说明 Value
id 采用 /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... 格式的 ARM 资源 ID。 字符串

RestorePointSourceMetadata

名称 说明
storageProfile 获取存储配置文件。 RestorePointSourceVMStorageProfile

RestorePointSourceVMStorageProfile

名称 说明
dataDisks 获取创建还原点时捕获的 VM 的数据磁盘。 RestorePointSourceVMDataDisk[]
osDisk 获取在创建还原点时捕获的 VM 的 OS 磁盘。 RestorePointSourceVmosDisk

RestorePointSourceVMDataDisk

名称 说明
缓存 获取缓存类型。 “None”
“ReadOnly”
“ReadWrite”
diskRestorePoint 包含磁盘还原点属性。 DiskRestorePointAttributes
managedDisk 包含托管磁盘详细信息。 ManagedDiskParameters

DiskRestorePointAttributes

名称 说明
加密 磁盘还原点的静态加密设置。 它是一个可选属性,可以在创建还原点时在输入中指定。 RestorePointEncryption
sourceDiskRestorePoint 源磁盘还原点的资源 ID。 ApiEntityReference

RestorePointEncryption

名称 说明
diskEncryptionSet 介绍可为磁盘指定的客户托管磁盘加密集资源 ID 的参数。 注意: 只能为托管磁盘指定磁盘加密集资源 ID。 有关详细信息,请参阅 https://aka.ms/mdssewithcmkoverview DiskEncryptionSetParameters
类型 用于加密磁盘还原点数据的密钥类型。 “EncryptionAtRestWithCustomerKey”
“EncryptionAtRestWithPlatformAndCustomerKeys”
“EncryptionAtRestWithPlatformKey”

DiskEncryptionSetParameters

名称 说明 Value
id 资源 ID 字符串

ManagedDiskParameters

名称 说明
diskEncryptionSet 指定托管磁盘的客户托管磁盘加密集资源 ID。 DiskEncryptionSetParameters
id 资源 ID 字符串
securityProfile 指定托管磁盘的安全配置文件。 VMDiskSecurityProfile
storageAccountType 指定托管磁盘的存储帐户类型。 注意:UltraSSD_LRS只能与数据磁盘一起使用,不能与 OS 磁盘一起使用。 “PremiumV2_LRS”
“Premium_LRS”
“Premium_ZRS”
“StandardSSD_LRS”
“StandardSSD_ZRS”
“Standard_LRS”
“UltraSSD_LRS”

VMDiskSecurityProfile

名称 说明
diskEncryptionSet 指定用于客户托管密钥加密机密 VM OS 磁盘和 VMGuest Blob 的托管磁盘的客户托管磁盘加密集资源 ID。 DiskEncryptionSetParameters
securityEncryptionType 指定托管磁盘的 EncryptionType。 它设置为 DiskWithVMGuestState 以加密托管磁盘和 VMGuestState blob,设置为 VMGuestStateOnly,仅加密 VMGuestState blob。 注意: 只能为机密 VM 设置它。 “DiskWithVMGuestState”
'VMGuestStateOnly'

RestorePointSourceVmosDisk

名称 说明
缓存 获取缓存类型。 “None”
“ReadOnly”
“ReadWrite”
diskRestorePoint 包含磁盘还原点属性。 DiskRestorePointAttributes
managedDisk 获取托管磁盘详细信息 ManagedDiskParameters

Terraform (AzAPI 提供程序) 资源定义

可以使用面向以下操作部署 restorePointCollections/restorePoints 资源类型:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/restorePointCollections/restorePoints 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/restorePointCollections/restorePoints@2023-03-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      consistencyMode = "string"
      excludeDisks = [
        {
          id = "string"
        }
      ]
      sourceMetadata = {
        storageProfile = {
          dataDisks = [
            {
              caching = "string"
              diskRestorePoint = {
                encryption = {
                  diskEncryptionSet = {
                    id = "string"
                  }
                  type = "string"
                }
                sourceDiskRestorePoint = {
                  id = "string"
                }
              }
              managedDisk = {
                diskEncryptionSet = {
                  id = "string"
                }
                id = "string"
                securityProfile = {
                  diskEncryptionSet = {
                    id = "string"
                  }
                  securityEncryptionType = "string"
                }
                storageAccountType = "string"
              }
            }
          ]
          osDisk = {
            caching = "string"
            diskRestorePoint = {
              encryption = {
                diskEncryptionSet = {
                  id = "string"
                }
                type = "string"
              }
              sourceDiskRestorePoint = {
                id = "string"
              }
            }
            managedDisk = {
              diskEncryptionSet = {
                id = "string"
              }
              id = "string"
              securityProfile = {
                diskEncryptionSet = {
                  id = "string"
                }
                securityEncryptionType = "string"
              }
              storageAccountType = "string"
            }
          }
        }
      }
      sourceRestorePoint = {
        id = "string"
      }
      timeCreated = "string"
    }
  })
}

属性值

restorePointCollections/restorePoints

名称 说明 Value
type 资源类型 “Microsoft.Compute/restorePointCollections/restorePoints@2023-03-01”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为:restorePointCollections 的资源的 ID
properties 还原点属性。 RestorePointProperties

RestorePointProperties

名称 说明
consistencyMode RestorePoint 的 ConsistencyMode。 可以在创建还原点时在输入中指定。 目前,仅接受 CrashConsistent 作为有效输入。 有关更多详细信息,请参阅 https://aka.ms/RestorePoints “ApplicationConsistent”
“CrashConsistent”
“FileSystemConsistent”
excludeDisks 客户希望从还原点中排除的磁盘资源 ID 的列表。 如果未指定磁盘,则将包含所有磁盘。 ApiEntityReference[]
sourceMetadata 获取在创建还原点时捕获的 VM 的详细信息。 RestorePointSourceMetadata
sourceRestorePoint 需要从中创建副本的源还原点的资源 ID。 ApiEntityReference
timeCreated 获取还原点的创建时间。 字符串

ApiEntityReference

名称 说明 Value
id 采用 /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/... 格式的 ARM 资源 ID。 字符串

RestorePointSourceMetadata

名称 说明
storageProfile 获取存储配置文件。 RestorePointSourceVMStorageProfile

RestorePointSourceVMStorageProfile

名称 说明
dataDisks 获取在创建还原点时捕获的 VM 的数据磁盘。 RestorePointSourceVMDataDisk[]
osDisk 获取在创建还原点时捕获的 VM 的 OS 磁盘。 RestorePointSourceVmosDisk

RestorePointSourceVMDataDisk

名称 说明
缓存 获取缓存类型。 "None"
“ReadOnly”
“ReadWrite”
diskRestorePoint 包含磁盘还原点属性。 DiskRestorePointAttributes
managedDisk 包含托管磁盘详细信息。 ManagedDiskParameters

DiskRestorePointAttributes

名称 说明
加密 磁盘还原点的静态加密设置。 它是一个可选属性,可在创建还原点时在输入中指定。 RestorePointEncryption
sourceDiskRestorePoint 源磁盘还原点的资源 ID。 ApiEntityReference

RestorePointEncryption

名称 说明
diskEncryptionSet 描述可为磁盘指定的客户托管磁盘加密集资源 ID 的参数。 注意: 只能为托管磁盘指定磁盘加密集资源 ID。 有关更多详细信息,请参阅 https://aka.ms/mdssewithcmkoverview DiskEncryptionSetParameters
类型 用于加密磁盘还原点数据的密钥类型。 “EncryptionAtRestWithCustomerKey”
“EncryptionAtRestWithPlatformAndCustomerKeys”
“EncryptionAtRestWithPlatformKey”

DiskEncryptionSetParameters

名称 说明 Value
id 资源 ID 字符串

ManagedDiskParameters

名称 说明
diskEncryptionSet 指定托管磁盘的客户托管磁盘加密集资源 ID。 DiskEncryptionSetParameters
id 资源 ID 字符串
securityProfile 指定托管磁盘的安全配置文件。 VMDiskSecurityProfile
storageAccountType 指定托管磁盘的存储帐户类型。 注意:UltraSSD_LRS只能与数据磁盘一起使用,不能与 OS 磁盘一起使用。 “PremiumV2_LRS”
“Premium_LRS”
“Premium_ZRS”
“StandardSSD_LRS”
“StandardSSD_ZRS”
“Standard_LRS”
“UltraSSD_LRS”

VMDiskSecurityProfile

名称 说明
diskEncryptionSet 指定用于客户托管密钥加密机密 VM OS 磁盘和 VMGuest Blob 的托管磁盘的客户托管磁盘加密集资源 ID。 DiskEncryptionSetParameters
securityEncryptionType 指定托管磁盘的 EncryptionType。 它设置为 DiskWithVMGuestState 以加密托管磁盘和 VMGuestState blob,设置为 VMGuestStateOnly,仅加密 VMGuestState blob。 注意: 只能为机密 VM 设置它。 “DiskWithVMGuestState”
“VMGuestStateOnly”

RestorePointSourceVmosDisk

名称 说明
缓存 获取缓存类型。 "None"
“ReadOnly”
“ReadWrite”
diskRestorePoint 包含磁盘还原点属性。 DiskRestorePointAttributes
managedDisk 获取托管磁盘详细信息 ManagedDiskParameters