< Back

Get-AzureRmRecoveryServicesAsrNetworkMapping

Tue Jan 29, 2019 10:01 pm

NAME Get-AzureRmRecoveryServicesAsrNetworkMapping



SYNOPSIS

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





SYNTAX

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



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

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmRecoveryServicesAsrNetworkMapping cmdlet gets information about Azure Site Recovery network mappings for the Recovery Services

vault.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

The name of the ASR network mapping object to get.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Network <ASRNetwork>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-PrimaryFabric <ASRFabric>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric







OUTPUTS

System.Collections.Generic.IEnumerable`1[[Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRNetworkMapping,

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]







NOTES









Example 1



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



Gets all networks mappings for the passed Network.





Example 2



PS C:\\> $primaryFabric = Get-AzureRmRecoveryServicesAsrFabric -Name xxxx

PS C:\\> $Networkmappings = Get-AzureRmRecoveryServicesAsrNetworkMapping -Name $networkMappingName -PrimaryFabric $primaryFabric



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







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... orkmapping

New-AzureRmRecoveryServicesAsrNetworkMapping

Remove-AzureRmRecoveryServicesAsrNetworkMapping