我正在使用一些复制的虚拟机创建一个恢复服务保管库以进行故障转移,但是我正在运行的管道对于 azurerm_site_recovery_replicated_vm 失败。我相信这与应用的超时设置有关,我尝试将读取、创建、删除和更新的超时块添加到 3 小时,但似乎没有任何区别。管道在 35 分钟左右出现故障。
错误:
Error: waiting for site recovery to replicate vm: making Read request on site recovery replicated vm Replication Protected Item (Subscription: "XXX"
│ Resource Group Name: "rg-dr-ukwest"
│ Vault Name: "rsv-dr-ukwest"
│ Replication Fabric Name: "primary-fabric"
│ Replication Protection Container Name: "primary-protection-container"
│ Replication Protected Item Name: "VM1") : authorizing request: clientCredentialsToken: received HTTP status 401 with response: {"error":"invalid_client","error_description":"AADSTS700024: Client assertion is not within its valid time range. Current time: 2024-11-20T10:41:43.2413879Z, assertion valid from 2024-11-20T10:00:53.0000000Z, expiry time of assertion 2024-11-20T10:10:53.0000000Z. Review the documentation at https://learn.microsoft.com/entra/identity-platform/certificate-credentials . Trace ID: dfcd5ea6-29e6-432c-b200-ffe4ab621200 Correlation ID: 389677a3-178d-4904-9f23-0612402706d4 Timestamp: 2024-11-20 10:41:43Z","error_codes":[700024],"timestamp":"2024-11-20 10:41:43Z","trace_id":"dfcd5ea6-29e6-432c-b200-ffe4ab621200","correlation_id":"389677a3-178d-4904-9f23-0612402706d4","error_uri":"https://login.microsoftonline.com/error?code=700024"}
│
│ with module.rsv.azurerm_site_recovery_replicated_vm.windowsvm-replication,
│ on modules/rsv/rsv.tf line 234, in resource "azurerm_site_recovery_replicated_vm" "windowsvm-replication":
│ 234: resource "azurerm_site_recovery_replicated_vm" "windowsvm-replication" {
只是想知道是否有任何方法可以解决超时问题以阻止管道失败?
将 Azure Site Recovery (ASR) 与 Terraform 结合使用来自动化灾难恢复计划时,可能会因多种原因而发生管道超时。使用 Azure Site Recovery 执行 Terraform 期间管道超时的常见原因和解决方案包括:
您可以调整创建和更新超时以允许更长时间的操作。您可能需要根据您的环境规模延长 60m 时间值。