Azure 负载均衡器使用区域 1,因为订阅 xxx-xxx-xxx-xxx 不支持位于 westus

问题描述

我正在尝试使用 Azureterraform 中创建负载平衡器,但出现此错误

错误:创建/更新负载均衡器“lbclassic”(资源组“apim-appGw-RG”):network.LoadBalancersClient#CreateOrUpdate:发送请求失败:StatusCode=0 -- 原始错误:Code="SubscriptionDoesNotSupportZone" Message= “无法创建/移动资源 /subscriptions/xxx-xxx-xxx-xxx/resourceGroups/apim-appGw-RG/providers/Microsoft.Network/loadBalancers/lbclassic/frontendIPConfigurations/lbclassic 自订阅 xxx-xxx-xxx-以来使用区域 1 xxx 不支持位于 westus 的区域 1。”详情=[] │ │ 与 azurerm_lb.example,│ 在 12-lb.tf 第 1 行,在资源“azurerm_lb”“示例”中: │ 1:资源“azurerm_lb”“例子”{

这是我的代码示例:

resource "azurerm_lb" "example" {
  name                = "lbclassic"
  resource_group_name = azurerm_resource_group.example.name
  location            = azurerm_resource_group.example.location
  sku                 = "Standard"

  frontend_ip_configuration {
    name                          = "lbclassic"
    subnet_id                     = azurerm_subnet.lb.id
    private_ip_address_allocation = "Dynamic"
  }
}

有人可以帮助我吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)