Get-AzDataProtectionSoftDeletedBackupVault
Gets a deleted backup vault
Syntax
List (Default)
Get-AzDataProtectionSoftDeletedBackupVault
-Location <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentityLocation
Get-AzDataProtectionSoftDeletedBackupVault
-DeletedVaultName <String>
-LocationInputObject <IDataProtectionIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzDataProtectionSoftDeletedBackupVault
-DeletedVaultName <String>
-Location <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets a deleted backup vault
Examples
Example 1: Get deleted backup vaults in a specific location
Get-AzDataProtectionSoftDeletedBackupVault -Location "eastasia" -SubscriptionId "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
Location : eastasia
OriginalBackupVaultResourceGroup : sample-resourcegroup
AzureMonitorAlertsForAllJobFailure :
BcdrSecurityLevel :
CrossRegionRestoreState :
CrossSubscriptionRestoreState : Enabled
EncryptionSetting : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250901.EncryptionSettings
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.DataProtection/locations/eastasia/deletedVaults/yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
ImmutabilityState : Disabled
IsVaultProtectedByResourceGuard : False
Name : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
OriginalBackupVaultId : zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz
OriginalBackupVaultName : sample-backupvault
OriginalBackupVaultResourcePath : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/sample-resourcegroup/providers/Microsoft.DataProtection/BackupVaults/sample-backupvault
ProvisioningState : Succeeded
ReplicatedRegion :
ResourceDeletionInfo : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250901.ResourceDeletionInfo
ResourceGuardOperationRequest :
ResourceMoveDetailCompletionTimeUtc :
ResourceMoveDetailOperationId :
ResourceMoveDetailSourceResourcePath :
ResourceMoveDetailStartTimeUtc :
ResourceMoveDetailTargetResourcePath :
ResourceMoveState :
SecureScore :
SoftDeleteRetentionDurationInDay : 14
SoftDeleteState : AlwaysOn
StorageSetting : {Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api20250901.StorageSetting}
SystemData : Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.Api50.SystemData
Type : Microsoft.DataProtection/locations/deletedVaults
This command retrieves all deleted backup vaults in the "eastasia" location for the specified subscription.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DeletedVaultName
The name of the DeletedBackupVaultResource
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetViaIdentityLocation
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Location
The name of the Azure region.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Identity Parameter
GetViaIdentityLocation
Position: Named
Mandatory: True
Value from pipeline: True
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
List
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
Get
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters .
Outputs
Microsoft.Azure.PowerShell.Cmdlets.DataProtection.Models.IDeletedBackupVaultResource