Get-AzRecoveryServicesAsrNetwork
Gets information about the networks managed by Site Recovery for the current vault.
Syntax
ByFabricObject (Default)
Get-AzRecoveryServicesAsrNetwork
-Fabric <ASRFabric>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByName
Get-AzRecoveryServicesAsrNetwork
-Fabric <ASRFabric>
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByFriendlyName
Get-AzRecoveryServicesAsrNetwork
-Fabric <ASRFabric>
-FriendlyName <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzRecoveryServicesAsrNetwork cmdlet gets information about Azure Site Recovery networks for the current Azure Site Recovery vault.
Examples
Example 1
$Networks = Get-AzRecoveryServicesAsrNetwork -Fabric $Fabric
Gets all known networks in the specified 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 |
-Fabric
ASR fabric object
Parameter properties
Type: | ASRFabric |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-FriendlyName
Friendly name of network ASR object.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByFriendlyName
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Name of network ASR object.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ByName
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
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.