共用方式為


New-AzRestorePointCollection

建立新的還原點集合

語法

DefaultParameter (預設值)

New-AzRestorePointCollection
    [-ResourceGroupName] <String>
    [-Name] <String>
    [-SourceId] <String>
    [-Location <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

RestorePointCollectionId

New-AzRestorePointCollection
    [-ResourceGroupName] <String>
    [-Name] <String>
    [[-SourceId] <String>]
    [-RestorePointCollectionId] <String>
    -Location <String>
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

建立新的還原點集合

範例

範例 1

New-AzRestorePointCollection -ResourceGroupName <String> -Name <String> -VmId <String>

使用 VM 識別碼建立新的還原點集合。

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:參閱

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Location

用來建立此還原點集合的來源資源位置。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

DefaultParameter
Position:Named
必要:False
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Name

資源名稱

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:RestorePoint集合名稱

參數集

(All)
Position:1
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ResourceGroupName

資源組名

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-RestorePointCollectionId

來源 RestorePoint 集合的 ARM 識別碼

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

RestorePointCollectionId
Position:3
必要:True
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-SourceId

用來建立此還原點集合之來源資源的資源識別碼。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:虛擬識別碼

參數集

DefaultParameter
Position:2
必要:True
來自管線的值:True
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 指令未執行。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:威斯康星州

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

String

輸出

Microsoft.Azure.Commands.Compute.Automation.Models.PSRestorePointCollection