Remove-AzureRmRecoveryServicesVault

Deletes a Recovery Services vault.

Syntax

Remove-AzureRmRecoveryServicesVault
      -Vault <ARSVault>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-AzureRmRecoveryServicesVault cmdlet deletes a Recovery Services vault.

Examples

Example 1

PS C:\> Remove-AzureRmRecoveryServicesVault -Vault $vault

Deletes a Recovery Services vault.

Required Parameters

-Vault

Specifies an Azure Site Recovery vault object.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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
-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
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

Outputs

Microsoft.Azure.Commands.RecoveryServices.VaultOperationOutput