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

Client Affinity setting not applied. Should be at site_config level. #780

Closed
sjwaight opened this issue Feb 1, 2018 · 2 comments
Closed

Comments

@sjwaight
Copy link

sjwaight commented Feb 1, 2018

When creating a new Web App in App Service using Terraform the client_affinity_enabled setting appears to have no affect.

Additionally, it would appear that this property should actually move to the site_config level as it appears at that level in the Azure management Portal (i.e. 'Always On' and 'ARR Affinity' are both available on the same management blade).

Terraform Version

Terraform v0.11.2

  • provider.azurerm v1.1.0

Affected Resource(s)

azurerm_app_service

Terraform Configuration Files

resource "azurerm_app_service" "demo_web_app" {
  name                      = "wa-demo-app"
  location                  = "westus2"
  resource_group_name       = "demo-test-rg"
  client_affinity_enabled   = false
  app_service_plan_id       = "${azurerm_app_service_plan.my_existing_appplan.id}"
  site_config {
                always_on                 = true
                dotnet_framework_version  = "v4.0"
              }
}

Debug Output

N/A

Panic Output

N/A

Expected Behavior

The ARR Affinity value for the resulting Web App should be set to 'Off'.

Actual Behavior

ARR Affinity for Web App remains as default value ('On') and requires a manual change.

Steps to Reproduce

Simply run a standard "apply" using the above HCL snippet being applied to an existing App Service Plan.

Important Factoids

Windows App Service deployment.

@tombuildsstuff
Copy link
Contributor

hey @sjwaight

Thanks for opening this issue - just to let you know that this was fixed in #973 which shipped in v1.3.0 of the AzureRM Provider :)

Thanks!

@tombuildsstuff tombuildsstuff modified the milestones: 1.4.0, 1.3.3 Apr 17, 2018
@ghost
Copy link

ghost commented Mar 31, 2020

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 Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants