Get-AzRecoveryServicesAsrNetworkMapping
Gets information about Site Recovery network mappings for the current vault.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
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
The credentials, account, tenant, and subscription used for communication with Azure.
| Type: | IAzureContextContainer |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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 |
Get the ASR network mappings corresponding to the specified network ASR object.
| Type: | ASRNetwork |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Get the ASR network mappings corresponding to the specified primary fabric object.
| Type: | ASRFabric |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |