共用方式為


Get-AzRecoveryServicesAsrNetworkMapping

取得目前保存庫的 Site Recovery 網路對應相關信息。

語法

Get-AzRecoveryServicesAsrNetworkMapping
   [-Name <String>]
   -Network <ASRNetwork>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzRecoveryServicesAsrNetworkMapping
   [-Name <String>]
   -PrimaryFabric <ASRFabric>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzRecoveryServicesAsrNetworkMapping Cmdlet 會取得復原服務保存庫 Azure Site Recovery 網路對應的相關信息。

範例

範例 1

$Networkmappings = Get-AzRecoveryServicesAsrNetworkMapping -Network $Network

取得所傳遞網路的所有網路對應。

範例 2

$primaryFabric = Get-AzRecoveryServicesAsrFabric -Name xxxx
$Networkmappings = Get-AzRecoveryServicesAsrNetworkMapping -Name $networkMappingName -PrimaryFabric $primaryFabric

取得具有指定 Azure Site Recovery 網狀架構中指定名稱的網路對應。

參數

-DefaultProfile

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

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

-Name

要取得的 ASR 網路對應物件名稱。

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

-Network

取得對應至指定網路 ASR 物件的 ASR 網路對應。

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

-PrimaryFabric

取得對應至指定之主要網狀架構物件的 ASR 網路對應。

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

輸入

輸出