使用 Terraform 在可用性区域(单个区域)之间进行 Azure 恢复服务 VM 复制
Azure Recovery Services VM replication between availability zones (single region) with Terraform
可以选择使用可用性区域而不是区域作为恢复服务保管库 VM 复制的灾难恢复源/目标,这似乎还无法通过 Terraform 实现。
是这样吗?
azurerm_site_recovery_replicated_vm 中似乎没有任何区域参考。
尽管 AzureRM v3.0 上的说明确实提到将“区域”参数添加到支持它的任何对象,但所有 TF 文档都引用了此功能的单独区域。
有谁知道 Azure API 是否支持这个,还是我们必须等待 TF 更新?
Does anyone know if the Azure API supports this yet or do we have to
just wait for TF to be updated?
Azure API 支持它,因为它可以使用 Bicep 或 [=29= 完成]ARM 模板,但是在尝试对 VM 进行分区到分区灾难恢复时所需的参数 target_availability_zone
在 Terraform 中不存在。
作为解决方法,您可以根据需要使用azurerm_resource_group_template_deployment
and use the Bicep/ARM template which is mentioned in this Microsoft Documentation
。
我已经提出 Github issue
来解决在 [=15 中添加参数 target_availabiltity_zone
的问题=]资源块。
可以选择使用可用性区域而不是区域作为恢复服务保管库 VM 复制的灾难恢复源/目标,这似乎还无法通过 Terraform 实现。
是这样吗?
azurerm_site_recovery_replicated_vm 中似乎没有任何区域参考。
尽管 AzureRM v3.0 上的说明确实提到将“区域”参数添加到支持它的任何对象,但所有 TF 文档都引用了此功能的单独区域。
有谁知道 Azure API 是否支持这个,还是我们必须等待 TF 更新?
Does anyone know if the Azure API supports this yet or do we have to just wait for TF to be updated?
Azure API 支持它,因为它可以使用 Bicep 或 [=29= 完成]ARM 模板,但是在尝试对 VM 进行分区到分区灾难恢复时所需的参数 target_availability_zone
在 Terraform 中不存在。
作为解决方法,您可以根据需要使用azurerm_resource_group_template_deployment
and use the Bicep/ARM template which is mentioned in this Microsoft Documentation
。
我已经提出 Github issue
来解决在 [=15 中添加参数 target_availabiltity_zone
的问题=]资源块。