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

Support for High Churn on Azure Seite Recovery replicated VM #23343

Open
1 task done
viewegchris opened this issue Sep 21, 2023 · 5 comments
Open
1 task done

Support for High Churn on Azure Seite Recovery replicated VM #23343

viewegchris opened this issue Sep 21, 2023 · 5 comments

Comments

@viewegchris
Copy link

viewegchris commented Sep 21, 2023

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 "+1" or "me too" comments, 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.

Description

Azure added support for High Churn replication on Azure Site Recovery Vault. This allows to replicate VMs with high data rates as well. The new feature requires the use of Premium_LRS Storage Accounts.

New or Affected Resource(s)/Data Source(s)

azurerm_site_recovery_replicated_vm

Potential Terraform Configuration

resource "azurerm_site_recovery_replicated_vm" "replicated_vm" {
  name                                      = "example-vm"
  recovery_vault_name                       = "recoveryvault01"
  resource_group_name                       = "z-ach-a9999-pr01-01-asr"
  recovery_replication_policy_id            = data.azurerm_site_recovery_replication_policy.policy.id
  source_vm_id                              = module.replicated_vm.virtual_machine_id
  source_recovery_fabric_name               = data.azurerm_site_recovery_fabric.fabric.name
  source_recovery_protection_container_name = data.azurerm_site_recovery_protection_container.primary.name
  target_zone                               = "3"
  target_resource_group_id                  = "/subscriptions/xxx/resourceGroups/z-ach-a9999-pr01-ns1-01-asr"
  target_recovery_fabric_id                 = data.azurerm_site_recovery_fabric.fabric.id
  target_recovery_protection_container_id   = data.azurerm_site_recovery_protection_container.secondary.id
  target_network_id                         = "/subscriptions/xxx/resourceGroups/z-ach-a9999i-pr01-01/providers/Microsoft.Network/virtualNetworks/zacha9999ipr01net01"


  #new configuration
  churn_option                       = "high" # default is "normal"
  #############

  managed_disk {
    disk_id                       = data.azurerm_managed_disk.os_disk.id
    staging_storage_account_id    = azurerm_storage_account.high_churn_test.id
    target_resource_group_id      = "/subscriptions/xxx/resourceGroups/z-ach-a9999-pr01-01-asr"
    target_disk_type              = "Premium_LRS"
    target_replica_disk_type      = "Premium_LRS"
  }

  network_interface {
    source_network_interface_id = "/subscriptions/xxx/resourceGroups/z-ach-a9999-pr01-01/providers/Microsoft.Network/networkInterfaces/examplevmnic01"
    target_subnet_name          = "asr-vms"
    target_static_ip            = "100.114.7.232"
  }

  timeouts {
    create = "8h"
    update = "8h"
    delete = "8h"
  }
}

References

https://learn.microsoft.com/en-us/azure/site-recovery/concepts-azure-to-azure-high-churn-support

@rcskosir
Copy link
Contributor

@viewegchris Thank you for taking the time to open this feature request!

@horvatal

This comment was marked as off-topic.

@FreddyAyala
Copy link

Hello there, working on a new module to implement this, do you have any news about it?

@FreddyAyala

This comment was marked as off-topic.

@wyattfry wyattfry self-assigned this Jan 2, 2025
@wyattfry
Copy link
Collaborator

wyattfry commented Jan 2, 2025

I'll be working on this issue. For the record, I believe this is the location in Azure's API docs that describe the property in question: https://learn.microsoft.com/en-us/rest/api/site-recovery/replication-protected-items/repair-replication?view=rest-site-recovery-2024-10-01&tabs=HTTP#churnoptionselected

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

6 participants