< Back

Remove-AzureRmBackupVault

Tue Jan 29, 2019 9:34 pm

NAME Remove-AzureRmBackupVault



SYNOPSIS

Deletes a Backup vault.





SYNTAX

Remove-AzureRmBackupVault [-Vault] <AzureRMBackupVault> [[-Force]] [-DefaultProfile <IAzureContextContainer>] [-Confirm] [-WhatIf]

[<CommonParameters>]





DESCRIPTION

The Remove-AzureRmBackupVault cmdlet deletes an Azure Backup vault.



Before you can delete a Backup vault, it must be empty. Use the Remove-AzureRmBackupContainer cmdlet to remove infrastructure as a service (IaaS)

virtual machine backup data from the vault. Use the Delete-RegisteredServer cmdlet to remove other registered servers and backup data.





PARAMETERS

-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



-Force [<SwitchParameter>]





Required? false

Position? 1

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Vault <AzureRMBackupVault>

Specifies a Backup vault that this cmdlet removes. To obtain an AzureRmBackupVault , use the Get-AzureRmBackupVault cmdlet.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-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



-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

AzureRMBackupVault







OUTPUTS

None







NOTES





* None



Example 1: Delete an Azure Backup vault



PS C:\\>Get-AzureRmBackupVault -Name "Vault03" | Remove-AzureRmBackupVault



This command gets the Azure Backup vault named Vault03 by using the Get-AzureRmBackupVault cmdlet. The command passes that vault to the current

cmdlet by using the pipeline operator. The current cmdlet removes the vault.







RELATED LINKS

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

Get-AzureRmBackupVault

New-AzureRmBackupVault

Set-AzureRmBackupVault