Azure Backup with Enhanced Policy can't be enabled for an Azure VM with Trusted launch

Nathanael Santschi 126 Reputation points
2024-03-25T15:36:19.5233333+00:00

Trying to enable Backup for an Azure VM with Trusted Launch:

  • selected Policy sub type: Enhanced
  • selected VM and Enabled Backup

{"code":"DeploymentFailed","target":"/subscriptions/IDOFSUBSCRIPTION/resourceGroups/RSGNAME/providers/Microsoft.Resources/deployments/ConfigureProtection-1711379783085","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"ResourceDeploymentFailure","target":"/subscriptions/IDOFSUBSCRIPTION/resourceGroups/RSGNAME/providers/Microsoft.RecoveryServices/vaults/Backup-01/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;appproxy_01;proxy-01/protectedItems/vm;iaasvmcontainerv2;appproxy_01;stam-proxy-01","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."}]}

If I try to deploy it as ARM template:

Microsoft Azure Backup encountered an internal error. (Code: CloudInternalError)
Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,114 questions
{count} votes

Accepted answer
  1. SadiqhAhmed-MSFT 36,881 Reputation points Microsoft Employee
    2024-03-26T09:23:15.64+00:00

    "Sharing the solution with broader community"

    Issue description: Enabling Backup for an Azure VM with Trusted Launch failed:

    "message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."

    Error: Microsoft Azure Backup encountered an internal error. (Code: CloudInternalError)

    Solution: Instant Recovery Days and Daily Retention were both set to 7 days. After setting Instant Recovery Days to 5 it worked.

    Deploying this Backup Policy via terraform will set (Instant Recovery Days and Daily Retention) per default to 7 days.

    https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/backup_policy_vm#instant_restore_resource_group

    Hope this helps others on this community who may be looking for a solution to this problem.


    If the response helped, do "Accept Answer" and up-vote it

    0 comments No comments

0 additional answers

Sort by: Most helpful