hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.6k stars 4.64k forks source link

Support for additional App Service logging configuration #14353

Open Bafff opened 2 years ago

Bafff commented 2 years ago

Community Note

Description

Web App logging configuration missing some settings.

I cannot retrieve the destination blob storage account name for checking it's configured properly image

My .tf file contains only this info

    logs {
        detailed_error_messages_enabled = true
        failed_request_tracing_enabled  = true

        application_logs {
            file_system_level = "Off"

            azure_blob_storage {
                level             = "Verbose"
                retention_in_days = 7
                sas_url           = ""
            }
        }

        http_logs {
            azure_blob_storage {
                retention_in_days = 7
                sas_url           = ""
            }
        }
    }

In #1082 it was meant to be fixed as I understand but seems it's not

Thanks!

New or Affected Resource(s)

References

a-mcf commented 2 years ago

I can set this using upstream inputs and a dedicated storage account, but I get a perpetual diff because the SAS data resource HTTP encodes the URL where the return value from terraform it compares it to doesn't work.

Either way though, even though it shows as configured, nothing is logging.