Home > Software design >  How to disable public access for app configuration in terraform
How to disable public access for app configuration in terraform

Time:10-25

I can create azurerm_app_configuration app configuaration for Azure app configuration. And can create azurerm_private_endpoint using terraform.

But I didnot find out which terraform function can be used to disable public access, as image below.

enter image description here

Does anyone can help

CodePudding user response:

Just by creating the private endpoint, the public access will be denied. From 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.

However, if you want to control this explicitly, then such a control is not supported in TF. There is github issue about that already:

  • Related