TerraformAzure:调用 Microsoft.SignalRService/SignalR 失败。错误信息:无效的 groupId”
TerraformAzure: Call to Microsoft.SignalRService/SignalR failed. Error message: Invalid groupId"
尝试将我的 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 正在成功,但是在应用它时失败并出现以下错误
creating Private Endpoint "signalr-02-privateendpoint" (Resource Group
"app-services-windows-rg-01"):
network.PrivateEndpointsClient#CreateOrUpdate: Failure sending
request: StatusCode=400 -- Original Error: Code="BadArgument"
Message="Call to Microsoft.SignalRService/SignalR failed. Error
message: Invalid groupId" Details=[]
on ../../../common/private-endpoint/main.tf line 7, in resource
"azurerm_private_endpoint" "generice_private_endpoint": 7: resource
"azurerm_private_endpoint" "generice_private_endpoint" {
已经创建了 GitHub issue 但想联系其他社区成员他们是否遇到过这个问题/如何克服这个错误
经过我的验证,您可以更改为在代码中使用 signalr
而不是 signalR
。
subresource_names = ["signalr"]
尝试将我的 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 正在成功,但是在应用它时失败并出现以下错误
creating Private Endpoint "signalr-02-privateendpoint" (Resource Group "app-services-windows-rg-01"): network.PrivateEndpointsClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="BadArgument" Message="Call to Microsoft.SignalRService/SignalR failed. Error message: Invalid groupId" Details=[]
on ../../../common/private-endpoint/main.tf line 7, in resource "azurerm_private_endpoint" "generice_private_endpoint": 7: resource "azurerm_private_endpoint" "generice_private_endpoint" {
已经创建了 GitHub issue 但想联系其他社区成员他们是否遇到过这个问题/如何克服这个错误
经过我的验证,您可以更改为在代码中使用 signalr
而不是 signalR
。
subresource_names = ["signalr"]