I am using Terraform to provision Function App and have provided few app configs which are referencing Key Vault Keys. But when i try to reference : "AzureWebJobsStorage" & "AzureWebJobsDashboard", it doesn't pick the reference from KV and instead takes them as App Service Config. The other configs are taken from KV reference as shown in the screenshot. Any idea why this is not taken as a KV reference
My TF Code for the config for Func App is shown below :
app_settings = {
"WEBSITE_DNS_SERVER" = "168.63.129.16"
"WEBSITE_VNET_ROUTE_ALL" = "1"
"APPINSIGHTS_INSTRUMENTATIONKEY" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=appi-default-func-instrumentation-key)", module.key-vault.key_vault.self.name)
"APPLICATIONINSIGHTS_CONNECTION_STRING" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=appi-func-connection-string)", module.key-vault.key_vault.self.name)
"WEBSITE_ENABLE_SYNC_UPDATE_SITE" = "true"
"WEBSITE_RUN_FROM_PACKAGE" = "1"
"AzureWebJobsStorage" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=StorageAccount-FunctionApp-ConnectionString-PrimaryKey)", module.key-vault.key_vault.self.name)
"AzureWebJobsDashboard" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=StorageAccount-FunctionApp-ConnectionString-PrimaryKey)", module.key-vault.key_vault.self.name)
"applicationStorage" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=StorageAccount-FunctionApp-ConnectionString-PrimaryKey)", module.key-vault.key_vault.self.name)
"Func-App-ID" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=Function-App-ID)", module.key-vault.key_vault.self.name)
"Func-App-Secret" = format("@Microsoft.KeyVault(VaultName=%s;SecretName=Function-App-Secret)", module.key-vault.key_vault.self.name)
}
The screenshot from my Function App Configuration is attached also