azure - 错误消息:当前 SKU 不支持“私有端点连接”
问题描述
我为 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 应用程序配置的默认值为free
设置sku
为standard
resource "azurerm_app_configuration" "appconf" {
name = "app-butfa"
resource_group_name = var.resource_group_name
location = var.location
sku = "standard"
}
推荐阅读
- azure - 无法创建推理,因为此管道上没有模型
- laravel - Laravel 集合用 where 子句分页
- typescript - 循环遍历枚举并填充键是枚举的 Typescript 记录
- google-sheets - 用于检查工作表列值的 Google 脚本
- c++ - 在 C++ 中是否有可能在超类中有一个方法,当每个子类调用该方法时,该方法会向该子类返回一个 shared_ptr ?
- python - 如何让python读取文件以确保它符合限制
- android - 构建 Signed Android App Bundle 文件时出错。任务“:app:signReleaseBundle”>“其他”的执行失败具有不同的根
- javascript - angular2 - How to DOM select a dynamically created element and focus it?
- python - TypeError: __init__() 通过 Python 使用 Selenium 获得了参数“executable_path”的多个值
- python - 具有 Pool 类的并行多处理比单线程方法慢得多