hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

Azure: select resource gorup where to store VM backups #6622

Open ghost opened 4 years ago

ghost commented 4 years ago

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.

MassimoPascucci commented 4 years ago

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?

ArcturusZhang commented 4 years ago

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.

MassimoPascucci commented 4 years ago

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

dwizzle204 commented 4 years ago

We also encountered this problem recently

v4ld3r5 commented 3 years ago

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

Thank you

cmptscpeacock commented 3 years ago

@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')]"

artur-carvalho commented 3 years ago

Any update about this feature?

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

Jeromeverb commented 3 years ago

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

Thank you

pkrasnousov commented 2 years ago

I'm interested in such feature too Any updates?

mkovsher commented 2 years ago

Hello, is there any updates for today? Thanks

artfox95 commented 2 years ago

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

adthorn commented 2 years ago

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

JoshWeepie commented 2 years ago

We ran into this same problem this morning unfortunately.

mukeshravji commented 1 year ago

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

tikicoder commented 1 year ago

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)

pkosiol-cc commented 9 months ago

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