< Back

Get-AzureRmRecoveryServicesVault

Tue Jan 29, 2019 10:03 pm

NAME Get-AzureRmRecoveryServicesVault



SYNOPSIS

Gets a list of Recovery Services vaults.





SYNTAX

Get-AzureRmRecoveryServicesVault [-Name <String>] [-ResourceGroupName <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmRecoveryServicesVault cmdlet gets a list of Recovery Services vaults in the current subscription.





PARAMETERS

-Name <String>

Specifies the name of the vault to query for.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the Azure resource group in which to create or from which to retrieve the specified Recovery Services object.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-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



<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

None

This cmdlet does not accept any input.





OUTPUTS

System.Collections.Generic.List`1[Microsoft.Azure.Commands.RecoveryServices.ARSVault]







NOTES









Example 1



PS C:\\> Get-AzureRmRecoveryServicesVault



Get the list of vault in selected subscription.





Example 2



PS C:\\> Get-AzureRmRecoveryServicesVault -ResourceGroupName "resourceGroup"



Get the list of vault in resource group in selected subscription.





Example 3



PS C:\\> Get-AzureRmRecoveryServicesVault -ResourceGroupName "resourceGroup" -Name "vaultName"



Get the vault in resource group with given name.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... vicesvault

Get-AzureRmRecoveryServicesVaultSettingsFile

New-AzureRmRecoveryServicesVault

Remove-AzureRmRecoveryServicesVault