Get-​Azure​Rm​Recovery​Services​Vault​Settings​File

Gets the Azure Site Recovery vault settings file.

Syntax

Get-AzureRmRecoveryServicesVaultSettingsFile
   [-Vault] <ARSVault>
   [[-Path] <String>]
   -SiteIdentifier <String>
   -SiteFriendlyName <String>
   [-SiteRecovery]
   [<CommonParameters>]
Get-AzureRmRecoveryServicesVaultSettingsFile
   [-Vault] <ARSVault>
   [[-Path] <String>]
   [-SiteRecovery]
   [<CommonParameters>]
Get-AzureRmRecoveryServicesVaultSettingsFile
   [-Vault] <ARSVault>
   [[-Path] <String>]
   [-Backup]
   [<CommonParameters>]

Description

The Get-AzureRmRecoveryServicesVaultSettingsFile cmdlet gets the settings file for an Azure Site Recovery vault.

Examples

Example 1: Register a Windows Server or DPM machine for Azure Backup

PS C:\> $Vault01 = Get-AzureRmRecoveryServicesVault -Name "TestVault"
PS C:\> $CredsPath = "C:\Downloads"
PS C:\> $Credsfilename = Get-AzureRmRecoveryServicesVaultSettingsFile -Backup -Vault $Vault01 -Path $CredsPath

The first command gets the vault named TestVault, and then stores it in the $Vault01 variable.

The second command sets the $CredsPath variable to C:\Downloads.

The last command gets the vault credentials file for $Vault01 using the credentials in $CredsPath for Azure Backup.

Required Parameters

-Backup

Indicates the vault credentials file is applicable to Azure Backup.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteFriendlyName

Specifies the site friendly name. Use this parameter if you are downloading the vault credentials for a Hyper-V site.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteIdentifier

Specifies the site identifier. Use this parameter if you are downloading the vault credentials for a Hyper-V site.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Vault

Specifies the Azure Site Recovery vault object.

Type:ARSVault
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Path

Specifies the path to the Azure Site Recovery vault settings file. You can download this file from the Azure Site Recovery vault portal and store it locally.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteRecovery

Indicates the vault credentials file is applicable to Azure Site Recovery.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False