Get-AzRecoveryServicesSoftDeletedVaultBackupItem
Gets backup items from soft-deleted Recovery Services vaults.
Syntax
Default (Default)
Get-AzRecoveryServicesSoftDeletedVaultBackupItem
[[-VaultName] <String>]
[[-ResourceGroupName] <String>]
[[-VaultId] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzRecoveryServicesSoftDeletedVaultBackupItem cmdlet retrieves backup items from soft-deleted Recovery Services vaults using Azure Resource Graph. This allows you to view what backup items were contained in a vault before it was deleted. You can specify the vault by either VaultId or by VaultName and ResourceGroupName.
Examples
Example 1: Get backup items using VaultId
$sdVault = Get-AzRecoveryServicesSoftDeletedVault -Location westus | Where-Object { $_.Properties.VaultId -match "wus-vault" }
Get-AzRecoveryServicesSoftDeletedVaultBackupItem -VaultId $sdVault.ID
Gets backup items from a soft-deleted vault using the vault's ARM ID.
Example 2: Get backup items using VaultName and ResourceGroupName
$sdVault = Get-AzRecoveryServicesSoftDeletedVault -Location westus -Name "wus-rg_fe7567gh-9d2b-4376-aa4a-de1c7176e40e"
Get-AzRecoveryServicesSoftDeletedVaultBackupItem -VaultName $sdVault.Name -ResourceGroupName $sdVault.ResourceGroupName
Gets backup items from a soft-deleted vault using the vault name and resource group name.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
| Type: | IAzureContextContainer |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzContext, 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 |
-ResourceGroupName
Resource group name of the soft deleted recovery services vault
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-VaultId
ARM ID of the soft deleted Recovery Services Vault
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 2 |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-VaultName
Name of the soft deleted recovery services vault
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 0 |
| 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.