terraform-provider-azurerm icon indicating copy to clipboard operation
terraform-provider-azurerm copied to clipboard

Azure: select resource gorup where to store VM backups

Open ghost opened this issue 4 years ago • 13 comments

This issue was originally opened by @Massimo80 as hashicorp/terraform#24764. It was migrated here as a result of the provider split. The original body of the issue is below.


When using azurerm_backup_policy_vm to perform VM backups, the actual restore points are stored in a resource group which is automatically named AzureBackupRG_region_X (where region is the Azure region and X is a progressive number). This can be modified in Azure, like showed here: Capture

However, this doesn't seem to be configurable in Terraform. Is this possible at all? If not, this really needs to be supported.

ghost avatar Apr 24 '20 23:04 ghost

I don't quite understand... my issue has been closed but I can't find any solution, or ongoing work, for it. Can someone please explain?

MassimoPascucci avatar Apr 25 '20 00:04 MassimoPascucci

Hi @Massimo80 your issue is automatically migrated to this repo since it is an issue on the azurerm provider. I will have a look at this to see whether it is possible to add an option for the target resource group.

ArcturusZhang avatar Apr 26 '20 05:04 ArcturusZhang

Thanks @ArcturusZhang, I didn't know the provider-specific repos were separate from the main one; my error.

MassimoPascucci avatar Apr 26 '20 14:04 MassimoPascucci

We also encountered this problem recently

dwizzle204 avatar Apr 26 '20 22:04 dwizzle204

Hi, is there any progress in this issue? We are also stuck with the same problem

Thank you

v4ld3r5 avatar May 25 '21 09:05 v4ld3r5

@ArcturusZhang any update on this? need the ability to deploy azurerm_backup_policy_vm with the Azure Backup Resource Group option available.

In ARM it's: "instantRPDetails": "[parameters('instantRPDetails')]"

cmptscpeacock avatar Jun 23 '21 13:06 cmptscpeacock

Any update about this feature?

We are currently deploying it using arm template as this is not supported by Terraform.

artur-carvalho avatar Aug 06 '21 08:08 artur-carvalho

Hi, is there any update ? We are also need this feature

Thank you

Jeromeverb avatar Oct 07 '21 09:10 Jeromeverb

I'm interested in such feature too Any updates?

pkrasnousov avatar Feb 02 '22 19:02 pkrasnousov

Hello, is there any updates for today? Thanks

mkovsher avatar Feb 23 '22 06:02 mkovsher

Hi all, is there any update on this topic? Thanks :)

artfox95 avatar Mar 15 '22 15:03 artfox95

After 2 and a half years, we should have a basic update to that provider.

adthorn avatar Sep 22 '22 13:09 adthorn

We ran into this same problem this morning unfortunately.

JoshWeepie avatar Sep 22 '22 14:09 JoshWeepie

Still no update on this? I just ran into the same issues now

mukeshravji avatar Dec 15 '22 19:12 mukeshravji

At this point I Would just use the new AZ_API and call it a day. Ya you would have to remove the resource from state and potentially readd it, but you could get it done. (presuming this could be done via arm)

tikicoder avatar Dec 15 '22 19:12 tikicoder

This issue can be closed. This feature is present here: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/backup_policy_vm#instant_restore_retention_days

pkosiol-cc avatar Feb 13 '24 10:02 pkosiol-cc