-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_windows_web_app log settings constant re-apply #16876
Comments
checking the detailed practice both from windows app and Linux app, will update the code accordingly. |
Hey, any updates on that? We would like to deactivate the file_system_level too and just use azure_blob_storage |
I'm not sure why the |
Any updates ? |
Updates? |
Is there an existing issue for this?
Community Note
Terraform Version
1.1.7
AzureRM Provider Version
3.6.0
Affected Resource(s)/Data Source(s)
azurerm_windows_web_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The app service logs will by default turn themselves off after 12 hours . If you have defined a block of code including them there is no option to set the level to Off as per the resource ..
The schema does not have an option for 'Off' >>
func applicationLogSchema() *pluginsdk.Schema {
return &pluginsdk.Schema{
Type: pluginsdk.TypeList,
Optional: true,
MaxItems: 1,
Elem: &pluginsdk.Resource{
Schema: map[string]*pluginsdk.Schema{
"file_system_level": {
Type: pluginsdk.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
string(web.LogLevelError),
string(web.LogLevelInformation),
string(web.LogLevelVerbose),
string(web.LogLevelWarning),
}, false),
},
"azure_blob_storage": appLogBlobStorageSchema(),
},
},
}
}
The deprecated app_service resource did
App Service =
file_system_level - (Optional) Log level for filesystem based logging. Supported values are Error, Information, Verbose, Warning and Off. Defaults to Off.
Web App =
file_system_level - (Required) Log level. Possible values include: Verbose, Information, Warning, and Error.
Actual Behaviour
Service default to Off after 12 hours so any subsequent re-apply via code will trigger a change . Would like to be able to set the code to off and allow the blob storage section to be applied without 'flip flopping' in the code
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: