Share via

back up protection

HOLMES, CARMEN D 0 Reputation points
2026-04-07T14:10:33.1166667+00:00

I can no longer run my ADO pipeline due to backup protections, how do I disable backups permanently

Azure Backup
Azure Backup

An Azure backup service that provides built-in management at scale.


1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-04-07T14:10:46.7233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Backup protection must be disabled on the specific Azure Backup–protected item that is blocking the Azure DevOps pipeline. The exact steps depend on how the workload is protected.

    If the workload is protected via an Azure Recovery Services vault (typical for Azure VMs, SQL in Azure VM, Azure Files, etc.), use either Azure PowerShell or Azure CLI to stop protection.

    Using Azure PowerShell (Recovery Services vault):

    1. Set the vault context:
         Set-AzRecoveryServicesVaultContext -Vault $vault
      
    2. Get the backup container and item for the workload (example for Azure VM):
         $cont = Get-AzRecoveryServicesBackupContainer -ContainerType AzureVM
         $item = Get-AzRecoveryServicesBackupItem -Container $cont[0] -WorkloadType AzureVM
      
    3. Disable protection and delete all recovery points (permanent removal):
         Disable-AzRecoveryServicesBackupProtection -Item $item[0] -RemoveRecoveryPoints
      
      This stops scheduled backups and deletes existing recovery points. After this, the item is no longer protected by Azure Backup.

    If recovery points must be retained only for the policy duration but backups suspended (requires immutability enabled on the vault):

    Disable-AzRecoveryServicesBackupProtection -Item $item[0] -RetainRecoveryPointsAsPerPolicy
    

    This suspends backups while keeping recovery points according to the backup policy.

    Using Azure CLI (Recovery Services vault): If the protected item is managed via a Recovery Services vault, disable protection with:

    az backup protection disable \
      --resource-group <rg-name> \
      --vault-name <vault-name> \
      --container-name <container-name> \
      --item-name <item-name> \
      --delete-backup-data true
    

    Key options:

    • --delete-backup-data true permanently deletes existing backup data in the vault.
    • Omit --delete-backup-data (or set to false) to stop protection but retain data.
    • If --container-name uses a friendly name, also specify --backup-management-type and --workload-type as required.

    If the backup is for Azure Blobs (operational backup):

    1. In the Azure portal, open the storage account.
    2. Go to Data protectionManage backup settings (or via ResiliencyProtected Items → filter Solution = Azure Backup and select the storage account backup instance).
    3. Select Stop backup.
      • This disconnects the storage account from the Backup vault and tools. It does not automatically disable blob point-in-time restore, versioning, or change feed; those can be turned off separately from the storage account’s Data protection blade if required.

    After disabling protection and (optionally) deleting backup data for the relevant items, the backup-related policy enforcement that is blocking the Azure DevOps pipeline should no longer apply.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.