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.59k stars 4.63k forks source link

azurerm_function_app/storage_account_access_key signals changed on every run #14186

Open vanmash opened 2 years ago

vanmash commented 2 years ago

Community Note

Terraform (and AzureRM Provider) Version

Affected Resource(s)

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
resource "azurerm_function_app" "func" {
  name                       = "func-${var.PRODUCT}-${var.ENV_LONG}"
  location                   = azurerm_resource_group.rg.location
  resource_group_name        = azurerm_resource_group.rg.name
  app_service_plan_id        = azurerm_app_service_plan.asp.id
  storage_account_name       = azurerm_storage_account.st.name
  storage_account_access_key = azurerm_storage_account.st.primary_connection_string
  version                    = "~3"
  enable_builtin_logging     = true
}

Debug Output

Panic Output

Expected Behaviour

plan should detect no changes.

Actual Behaviour

Every plan shows

  # azurerm_function_app.func[0] will be updated in-place
  ~ resource "azurerm_function_app" "func" {
        id                              = "/subscriptions/***"
        name                            = "func-***-production"
      ~ storage_account_access_key      = (sensitive value)
}

Steps to Reproduce

  1. terraform apply

Important Factoids

References

njglenuk commented 1 year ago

Has there been an update to this?

bijenkins commented 1 year ago

Bump, this is happening still on azurerm provider 3.43.

frankruszel commented 2 months ago

Hi, any updates on this issue? I am facing this in azurerm v3.114.0