Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureSiteRecoveryNetworkMapping

Get-AzureSiteRecoveryNetworkMapping

microsoft.azure.commands.recoveryservices.dll

Synopsis

Get information about Azure Site Recovery Network mappings for current Azure Site Recovery Vault

Syntax

Get-AzureSiteRecoveryNetworkMapping [-PrimaryServer] [-RecoveryServer] [<CommonParameters>]

Get-AzureSiteRecoveryNetworkMapping [-PrimaryServer] [-Azure] [<CommonParameters>]

Detailed Description

Get information about Azure Site Recovery Network mappings for current Azure Site Recovery Vault

Parameters

-PrimaryServer <ASRServer>

Primary Server object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-RecoveryServer <ASRServer>

Recovery Server object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

-Azure <SwitchParameter>

Azure switch parameter

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------------------- EXAMPLE 1 --------------------------

PS C:\>

Description

-----------

          $servers = Get-AzureSiteRecoveryServer

          PS C:\> Get-AzureSiteRecoveryNetworkMapping -PrimaryServer $servers[0] -RecoveryServer $servers[0]

          PrimaryServerId     : 774859b0-1966-48cc-9df7-759c441b7a8c
          PrimaryNetworkId    : 7cfd636e-5cc2-4e01-873b-8a7aa4962341
          PrimaryNetworkName  : phase2RecoveryVMNetwork
          RecoveryServerId    : 774859b0-1966-48cc-9df7-759c441b7a8c
          RecoveryNetworkId   : d903e2c6-3141-4cef-bfe1-04616cd43cbb
          RecoveryNetworkName : phase2PrimaryVMNetwork
          PairingStatus       : OK
        

-------------------------- EXAMPLE 2 --------------------------

PS C:\>

Description

-----------

          $servers = Get-AzureSiteRecoveryServer

          PS C:\> Get-AzureSiteRecoveryNetworkMapping -PrimaryServer $servers[0] -Azure

          PrimaryServerId     : 774859b0-1966-48cc-9df7-759c441b7a8c
          PrimaryNetworkId    : 7cfd636e-5cc2-4e01-873b-8a7aa4962341
          PrimaryNetworkName  : phase2RecoveryVMNetwork
          RecoveryServerId    : 21a9403c-6ec1-44f2-b744-b4e50b792387
          RecoveryNetworkId   : ecb3a462-664f-4f57-873e-d09b5925e1a1
          RecoveryNetworkName : AzureVMNetwork
          PairingStatus       : OK