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

App Settings from Function App asking to be modified every time I run terraform apply #6909

Closed
ghost opened this issue May 13, 2020 · 2 comments · Fixed by #7440
Closed

App Settings from Function App asking to be modified every time I run terraform apply #6909

ghost opened this issue May 13, 2020 · 2 comments · Fixed by #7440
Labels
Milestone

Comments

@ghost
Copy link

ghost commented May 13, 2020

This issue was originally opened by @mansing2 as hashicorp/terraform#24937. It was migrated here as a result of the provider split. The original body of the issue is below.


Terraform Version

Terraform v0.11.14
+ provider.azuread v0.8.0
+ provider.azurerm v1.44.0
+ provider.null v2.1.1
+ provider.template v2.1.1

Terraform Configuration Files

resource "azurerm_function_app" "function-app" {
  name                      = "test-functions"
  location                  = "${var.location}"
  resource_group_name       = "${var.resourceGroupName}"
  app_service_plan_id       = "${var.appServicePlanId}"
  version = "~3"
  storage_connection_string = "DefaultEndpointsProtocol=https;AccountName=${var.funcStorageName};AccountKey=${var.funcStorageKey}"
  app_settings {
      "APPINSIGHTS_INSTRUMENTATIONKEY"="${var.appInsightsUrl}",
      "AzureWebJobsDashboard" = "@Microsoft.KeyVault(SecretUri=https://${var.vaultName}.vault.azure.net/secrets/StorageFuncConnectionString/)"
      "AzureWebJobsStorage" = "@Microsoft.KeyVault(SecretUri=https://${var.vaultName}.vault.azure.net/secrets/StorageFuncConnectionString/)"
     
  }

Debug Output

NA

Crash Output

Below is what I get on every run of terraform apply

 ~ azurerm_function_app.function-app
2020-05-13T04:03:37.2666326Z       app_settings.%:                                          "8" => "10"
2020-05-13T04:03:37.2669082Z       app_settings.AzureWebJobsDashboard:                      "" => "@Microsoft.KeyVault(SecretUri=https://kvl-test.vault.azure.net/secrets/StorageFuncConnectionString/)"
2020-05-13T04:03:37.2671934Z       app_settings.AzureWebJobsStorage:                        "" => "@Microsoft.KeyVault(SecretUri=https://kvl-test.vault.azure.net/secrets/StorageFuncConnectionString/)"

Expected Behavior

The expected behavior is that the terraform should not ask to modify the values being set for AzureWebJobsDashboard and AzureWebJobsStorage in App Settings on every run of the terraform plan/apply.

Actual Behavior

Every single time I run terraform apply, the AzureWebJobsStorage and AzureWebJobsDashboard showing to be modified.

Steps to Reproduce

  1. terraform init
  2. terraform apply

Additional Context

NA

@ghost
Copy link
Author

ghost commented Jun 25, 2020

This has been released in version 2.16.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 = "~> 2.16.0"
}
# ... other configuration ...

@ghost
Copy link
Author

ghost commented Jul 24, 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 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked and limited conversation to collaborators Jul 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants