【问题标题】:TerraformAzure: Call to Microsoft.SignalRService/SignalR failed. Error message: Invalid groupId"TerraformAzure:调用 Microsoft.SignalRService/SignalR 失败。错误消息:无效的 groupId”
【发布时间】:2021-05-24 06:12:14
【问题描述】:

尝试将我的 azure signalr 服务与私有端点集成,以下是我正在尝试的示例 terraform 代码

resource "azurerm_private_endpoint" "example" {
  name                 = "${var.prefix}-signalr"
  location             = azurerm_resource_group.example.location
  resource_group_name  = azurerm_resource_group.example.name
  subnet_id            = azurerm_subnet.endpoint.id

  private_service_connection {
    name                           = "tfex-signalr-connection"
    is_manual_connection           = false
    private_connection_resource_id = azurerm_signalr.example.id
    subresource_names              = ["signalR"]
  }
}

当我运行它时,terraform init/plan 正在成功,但是在应用它时失败并出现以下错误

创建私有端点“signalr-02-privateendpoint”(资源组 “应用服务-windows-rg-01”): network.PrivateEndpointsClient#CreateOrUpdate:发送失败 请求:StatusCode=400 -- 原始错误:Code="BadArgument" Message="调用 Microsoft.SignalRService/SignalR 失败。错误 消息:无效的 groupId” 详细信息=[]

在 ../../../common/private-endpoint/main.tf 第 7 行,在资源中 “azurerm_private_endpoint” “generice_private_endpoint”:7:资源 “azurerm_private_endpoint” “generice_private_endpoint” {

已经创建了GitHub issue,但想联系其他社区成员是否遇到此问题/如何克服此错误

【问题讨论】:

    标签: terraform terraform-provider-azure azure-signalr azure-private-link


    【解决方案1】:

    经过我的验证,您可以在代码中更改为使用signalr 而不是signalR

    subresource_names = ["signalr"]

    【讨论】:

    • 哇它的工作,我放的原因 R 我跟着官方Microsoft article 我要提出一个 PR 来解决这个问题,这样它就不会影响到其他人.再次感谢!
    猜你喜欢
    • 2014-05-28
    • 2021-06-10
    • 2022-01-09
    • 2020-02-11
    • 2013-07-07
    • 2018-08-20
    • 1970-01-01
    • 2017-09-23
    • 1970-01-01
    相关资源
    最近更新 更多