gpt4 book ai didi

azure - 错误消息: The current SKU does not support 'private endpoint connection'

转载 作者:行者123 更新时间:2023-12-03 05:24:59 29 4
gpt4 key购买 nike

我在 Azure 云中创建了一个用于应用程序配置的专用链接。

我的地形代码:

resource "azurerm_virtual_network" "example" {
name = "example-network"
address_space = ["10.0.0.0/16"]
location = var.location
resource_group_name = var.resource_group_name
}

resource "azurerm_subnet" "service" {
name = "service"
resource_group_name = var.resource_group_name
virtual_network_name = azurerm_virtual_network.example.name
address_prefixes = ["10.0.1.0/24"]

enforce_private_link_service_network_policies = true
enforce_private_link_endpoint_network_policies = true
}

resource "azurerm_subnet" "endpoint" {
name = "endpoint"
resource_group_name = var.resource_group_name
virtual_network_name = azurerm_virtual_network.example.name
address_prefixes = ["10.0.2.0/24"]

enforce_private_link_endpoint_network_policies = true
}

resource "azurerm_app_configuration" "appconf" {
name = "app-butfa"
resource_group_name = var.resource_group_name
location = var.location

}


resource "azurerm_private_endpoint" "example" {
name = "butfa-endpoint"
location = var.location
resource_group_name = var.resource_group_name
subnet_id = azurerm_subnet.endpoint.id


private_service_connection {
name = "butfa-privateserviceconnection"
private_connection_resource_id = azurerm_app_configuration.appconf.id
is_manual_connection = false
subresource_names = ["configurationStores"]
}
}

但是当我运行:terraform apply时,我得到了这个错误:

Error: creating Private Endpoint "butfa-endpoint" (Resource Group "DefaultResourceGroup-SEA"): network.PrivateEndpointsClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="SkuFeatureNotSupported" Message="Call to Microsoft.AppConfiguration/configurationStores failed. Error message: The current SKU does not support 'private endpoint connection'." Details=[]

on init.services.tf line 62, in resource "azurerm_private_endpoint" "example":
62: resource "azurerm_private_endpoint" "example" {

有人帮忙吗?

最佳答案

sku应用配置默认是免费

sku设置为标准

resource "azurerm_app_configuration" "appconf" {
name = "app-butfa"
resource_group_name = var.resource_group_name
location = var.location
sku = "standard"

}

关于azure - 错误消息: The current SKU does not support 'private endpoint connection' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69671910/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com