< Back

Import-AzureRmRecoveryServicesAsrVaultSettingsFile

Tue Jan 29, 2019 10:02 pm

NAME Import-AzureRmRecoveryServicesAsrVaultSettingsFile



SYNOPSIS

Imports the specified ASR vault settings file to set the vault context(PowerShell session context) for subsequent ASR operations in the PowerShell

session.





SYNTAX

Import-AzureRmRecoveryServicesAsrVaultSettingsFile [-Path] <String> [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The Import-AzureRmRecoveryServicesAsrVaultSettingsFile cmdlet imports the Azure Site Recovery vault settings file. The vault settings file is used

to set the vault context for subsequent Azure Site Recovery operations in the current session.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

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



-Path <String>

Specifies the folder path of the ASR vault settings file. This file can be downloaded from the Recovery Services vault portal and stored

locally.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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

System.String







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVaultSettings







NOTES









Example 1



PS C:\\> $VaultSettings = Import-AzureRmRecoveryServicesAsrVaultSettingsFile -Path $FilePath



Imports the specified Recovery Services vault settings file and returns settings of the imported vault.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... ttingsfile

Get-AzureRmRecoveryServicesAsrVaultSettingsFile