-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for specifying target load balancer for a replicated VM #7237
Comments
Since this useful request above hasn't been getting any love or attention, I created a PowerShell script to apply after my Terraform deployment (better than nothing, I guess) and I thought I'd share with others who arrived here for the same reason I did. It's not that refined, but will hopefully help as a starting point, if you need to add target Load Balancers to newly Terraform-deployed Replicated VMs. There are a few assumptions (eg. that you are logged in and in correct subscription context) and you will need to adapt how the $recoveryLBBackendAddressPoolId variable is derived (or you could even explicitly define it, depending on your circumstances). We use similarly named LBs and Resource Groups across our regions so only the region code differs in our case - hence the use of the "Replace" function against our Source VM's LB ID. Anyway, hope it helps someone...
|
Community Note
Description
Currently it is not specify that a azurerm_site_recovery_replicated_vm should be part of a load-balancer backend pool in the secondary region. This makes it impossible to fully automate the setup of a environment with site recovery.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: