微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

如何解决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 举报,一经查实,本站将立刻删除。