Skip to content
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

Feature: azurerm_app_service - filesystem logging can now be set. #4025

Merged
merged 4 commits into from
Aug 15, 2019

Conversation

mbfrahry
Copy link
Member

@mbfrahry mbfrahry commented Aug 6, 2019

Fixes #4021

@mbfrahry
Copy link
Member Author

mbfrahry commented Aug 6, 2019

image

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments inline but this otherwise LGTM 👍

azurerm/helpers/azure/app_service.go Outdated Show resolved Hide resolved
azurerm/helpers/azure/app_service.go Outdated Show resolved Hide resolved
azurerm/helpers/azure/app_service.go Show resolved Hide resolved
if fileSystemInput.Enabled != nil && *fileSystemInput.Enabled {
fileSystem = append(fileSystem, fileSystemItem)

httpLogsItem["file_system"] = fileSystem
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to ensure that httpLogsItem["file_system"] is set to an empty list otherwise to ensure the diff show's correctly

Copy link
Member Author

@mbfrahry mbfrahry Aug 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I set it to an empty list but it caused more issues because it now wants to set http_logs even though nothing is present which causes a diff in Terraform

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if there's no elements specified that should match the diff?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it

website/docs/r/app_service.html.markdown Outdated Show resolved Hide resolved
@nexxai
Copy link
Contributor

nexxai commented Aug 8, 2019

@mbfrahry You are the man! :)

@mbfrahry
Copy link
Member Author

@tombuildsstuff, review addressed and tests are passing minus the occasional transient error.
image

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor comment but this otherwise LGTM 👍

azurerm/resource_arm_app_service_test.go Outdated Show resolved Hide resolved
@mbfrahry mbfrahry merged commit c7403f6 into master Aug 15, 2019
@mbfrahry mbfrahry deleted the f-app-service-http-logs branch August 15, 2019 19:42
@ghost
Copy link

ghost commented Aug 22, 2019

This has been released in version 1.33.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 1.33.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Sep 15, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Sep 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

azurerm_app_service: Allow filesystem logging in the application_logs block
4 participants