Edit

Share via


Get-AzRecoveryServicesAsrNetworkMapping

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

Syntax

ByObject (Default)

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

ByFabricObject

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

Description

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

Examples

Example 1

$Networkmappings = Get-AzRecoveryServicesAsrNetworkMapping -Network $Network

Gets all networks mappings for the passed Network.

Example 2

$primaryFabric = Get-AzRecoveryServicesAsrFabric -Name xxxx
$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.

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

The name of the ASR network mapping object to get.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Network

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

Parameter properties

Type:ASRNetwork
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-PrimaryFabric

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

Parameter properties

Type:ASRFabric
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByFabricObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

ASRNetwork

ASRFabric

Outputs

ASRNetworkMapping