Modifier

Partager via


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

$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.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
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
Required:False
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
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-PrimaryFabric

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

Type:ASRFabric
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

ASRNetwork

ASRFabric

Outputs

ASRNetworkMapping