Skip to content

[AVM Module Issue]: AzureWebJobsStorage gets re-added to flex app environment variables when using storage_uses_managed_identity #244

@PbALpi7xEX

Description

@PbALpi7xEX

Check for previous/existing GitHub issues

  • I have checked for previous/existing GitHub issues

Issue Type?

Bug

(Optional) Module Version

0.19.1

(Optional) Correlation Id

No response

Description

Regression bug perhaps? Relates to #96

AzureWebJobsStorage keeps getting appended to flex app settings. I have the following set in my TF:

function_app_uses_fc1 = true
storage_account_name                    = "myacct"
  storage_user_assigned_identity_id       ="<uid>"
  storage_uses_managed_identity           =  true
  storage_container_type                  = "blobContainer"
  storage_container_endpoint              = "<endpoint>"
  storage_authentication_type             ="UserAssignedIdentity"

After apply, appsettings get AzureWebJobsStorage and AzureWebJobsStorage__accountName set...

Seems having AzureWebJobsStorage is causing lots of auth errors to backend storage account.

Edit: AzureWebJobsStorage__accountName doesnt get added, has to be added via terraform app settings variable.

Edit2: This is related to bug in the AzureRM provider, refer to hashicorp/terraform-provider-azurerm#29693

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language: Terraform 🌐This is related to the Terraform IaC languageNeeds: External Changes ⚒️When an issue/PR requires changes that are outside of the control of the module. e.g. to an RP.Type: Bug 🐛Something isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions