我可以为 Azure 应用配置创建 azurerm_app_configuration
应用配置。
并且可以使用 terraform 创建 azurerm_private_endpoint
。
但是我没有找到哪个 terraform 函数可以用来禁用公共(public)访问,如下图。
谁能帮忙
最佳答案
仅通过创建专用端点,公共(public)访问将被拒绝。来自 docs :
By default, when a private endpoint is added to your App Configuration store, all requests for your App Configuration data over the public network are denied. You can enable public network access by using the following Azure CLI command.
但是,如果您想显式控制它,那么 TF 不支持这样的控制。已经有 github 问题了:
关于azure - 如何在 terraform 中禁用应用程序配置的公共(public)访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69694725/