The Undo-AzRecoveryServicesBackupContainerDeletion cmdlet restores a soft-deleted container to a state where it is no longer marked for deferred deletion and is ready for re-registration.
Name ResourceGroupName Status ContainerType WorkloadsPresent HealthStatus
---- ----------------- ------ ------------- ---------------- ------------
VMAppContainer;Compute;rgname;contianerName rgname SoftDeleted AzureVMAppContainer SQL Healthy
This example retrieves a backup container named $containerName from a specified resource group and vault, and then undeletes the soft-deleted container for an MSSQL workload. The -Force parameter is used to bypass the confirmation prompt, and -Confirm:$false ensures the cmdlet runs without additional confirmation.
Parameters
-BackupManagementType
The class of resources being protected.
Currently the values supported for this cmdlet are
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.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.