Set-AzureRmRecoveryServicesVaultContext

Sets vault context.

Syntax

Set-AzureRmRecoveryServicesVaultContext
   -Vault <ARSVault>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzureRmRecoveryServicesVaultContext cmdlet sets the vault context for Azure Site Recovery services.

Examples

Example 1

PS C:\> Set-AzureRmRecoveryServicesVaultContext -Vault $vault

Sets vault context.

Required Parameters

-Vault

Specifies the name of the vault. The vault must be an AzureRmRecoveryServicesVault object.

Type:Microsoft.Azure.Commands.RecoveryServices.ARSVault
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ARSVault

Parameter 'Vault' accepts value of type 'ARSVault' from the pipeline