Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm_backup_stop_protection_and_retain_data_on_destroy not working #28264

Open
1 task done
mpjtaylor opened this issue Dec 12, 2024 · 0 comments
Open
1 task done

vm_backup_stop_protection_and_retain_data_on_destroy not working #28264

mpjtaylor opened this issue Dec 12, 2024 · 0 comments

Comments

@mpjtaylor
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.9.6

AzureRM Provider Version

4.13.0

Affected Resource(s)/Data Source(s)

azurerm_backup_protected_vm

Terraform Configuration Files

provider "azurerm" {
  features {
    recovery_service {
      vm_backup_stop_protection_and_retain_data_on_destroy = true
    }
  }
  resource_provider_registrations = "none"
}


resource "azurerm_backup_protected_vm" "protected_intent_azurerm" {
  resource_group_name = data.azurerm_recovery_services_vault.vault[0].resource_group_name
  recovery_vault_name = data.azurerm_recovery_services_vault.vault[0].name
  source_vm_id        = local.virtual_machine_id
  backup_policy_id    = local.support_backup_policy_id
}

Debug Output/Panic Output

protecteditems.ProtectedItemsClient#CreateOrUpdate: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="BMSUserErrorResourceGuardOperationRequestIdListIsNullOrEmpty" Message="The given list of ResourceGuard operation requestId is either null or empty. Please provide valid list of VaultGuard operation requestId."

Expected Behaviour

Backup should be stopped :
Warning (Backup disabled)

Actual Behaviour

Error thrown

Steps to Reproduce

terraform apply

Important Factoids

Resource guard Stop backup and retain per policy = Disabled

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant