共用方式為


New-AzRecoveryServicesAsrStorageClassificationMapping

在復原服務保存庫中建立 ASR 記憶體分類對應。

語法

New-AzRecoveryServicesAsrStorageClassificationMapping
   -Name <String>
   -PrimaryStorageClassification <ASRStorageClassification>
   -RecoveryStorageClassification <ASRStorageClassification>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

New-AzRecoveryServicesAsr 儲存體 ClassificationMapping Cmdlet 會建立復原服務保存庫的記憶體分類對應。

範例

範例 1

$currentJob = New-AzRecoveryServicesAsrStorageClassificationMapping -Name $StorageClassificationMappingName -PrimaryStorageClassification $PrimaryStorageClassification -RecoveryStorageClassification $RecoveryStorageClassification

使用指定的參數啟動記憶體分類對應建立作業,並傳回用來追蹤作業的 ASR 作業。

參數

-Confirm

執行 Cmdlet 之前先提示您確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

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

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

指定 ASR 記憶體分類對應的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-PrimaryStorageClassification

指定對應的主要 ASR 記憶體分類物件。

類型:ASRStorageClassification
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-RecoveryStorageClassification

指定對應的復原 ASR 記憶體分類物件。

類型:ASRStorageClassification
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

ASRStorageClassification

輸出

ASRJob