Search code examples
azureazure-web-app-serviceterraform-provider-azure

Format of "app_settings" argument on azurerm_app_services Terraform resource


We are using Terraform to deploy Web Apps to Azure and want to move away from using the web.config for configuration settings. I believe we can implement these at deployment time using the app_settings argument on the azurerm_app_service resource but trying to find examples of how it should be properly formatted.


Solution

  • The app_settings is a key-value pair of App Settings for the App Service.

    The format of it:

       app_settings {
         "SOME_KEY" = "some-value"
       }
    

    For more details, you could refer to this article.