Get-AzRecoveryServicesAsrNetworkMapping

Gets information about Site Recovery network mappings for the current vault.

Syntax

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

Description

The Get-AzRecoveryServicesAsrNetworkMapping cmdlet gets information about Azure Site Recovery network mappings for the Recovery Services vault.

Examples

Example 1

PS C:\> $Networkmappings = Get-AzRecoveryServicesAsrNetworkMapping -Network $Network

Gets all networks mappings for the passed Network.

Example 2

PS C:\> $primaryFabric = Get-AzRecoveryServicesAsrFabric -Name xxxx
PS C:\> $Networkmappings = Get-AzRecoveryServicesAsrNetworkMapping -Name $networkMappingName -PrimaryFabric $primaryFabric

Gets networks mapping with provided name in specified azure site recovery fabric.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the ASR network mapping object to get.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Network

Get the ASR network mappings corresponding to the specified network ASR object.

Type:ASRNetwork
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-PrimaryFabric

Get the ASR network mappings corresponding to the specified primary fabric object.

Type:ASRFabric
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Inputs

ASRNetwork

ASRFabric

Outputs

ASRNetworkMapping