Get-AzureSiteRecoveryServer
Gets Site Recovery servers registered a Site Recovery vault.
Note
The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.
The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.
Syntax
Default (Default)
Get-AzureSiteRecoveryServer
[-Profile <AzureSMProfile>]
[<CommonParameters>]
ById
Get-AzureSiteRecoveryServer
-Id <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
ByName
Get-AzureSiteRecoveryServer
-Name <String>
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
The Get-AzureSiteRecoveryServer cmdlet gets information about Azure Site Recovery servers registered to the current Site Recovery vault.
Examples
Example 1: Get information about a Site Recovery server
PS C:\> Get-AzureSiteRecoveryServer
ID : cd7dec80-1144-4531-9ab3-888b8ab39bee
Name : server1.contoso.com
LastHeartbeat : 9/23/2014 3:51:22 PM
ProviderVersion : 3.5.520.0
ServerVersion : 3.2.7634.0
ID : f5e713fe-5b6d-4641-9690-6fe74c976b8e
Name : Server2.contoso.com
LastHeartbeat : 8/13/2014 2:28:58 PM
ProviderVersion : 3.5
ServerVersion : 3.2.7510.0
This command gets information about an Azure Site Recovery server.
Parameters
-Id
Specifies the ID of a server.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
ById
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the name of a server.
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 |
-Profile
Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.
Parameter properties
Type: | AzureSMProfile |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
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.