azure-functions-host: WEBSITE_CONTENTAZUREFILECONNECTIONSTRING as keyvault reference makes deployment fail
Deployment failed. Correlation ID: f171c78c-ad28-4426-aea4-cd9ae0bf57e9. {
"Code": "BadRequest",
"Message": "The parameter 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' has an invalid value. Details: Cannot specify key vault references not referencing User Assigned Identity on Create Site.",
"Target": null,
"Details": [
{
"Message": "The parameter 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' has an invalid value. Details: Cannot specify key vault references not referencing User Assigned Identity on Create Site."
},
{
"Code": "BadRequest"
},
{
"ErrorEntity": {
"ExtendedCode": "01033",
"MessageTemplate": "The parameter '{0}' has an invalid value. Details: {1}.",
"Parameters": [
"WEBSITE_CONTENTAZUREFILECONNECTIONSTRING",
"Cannot specify key vault references not referencing User Assigned Identity on Create Site"
],
"Code": "BadRequest",
"Message": "The parameter 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' has an invalid value. Details: Cannot specify key vault references not referencing User Assigned Identity on Create Site."
}
}
],
"Innererror": null
}
Per comment here: https://github.com/Azure/azure-functions-host/issues/5306#issuecomment-696561132
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 10
- Comments: 16 (3 by maintainers)
Links to this issue
Commits related to this issue
- Simplify deployment to not deploy twice Looks like https://github.com/Azure/azure-functions-host/issues/7094 is resolved? Or perhaps works with RBAC Key Vault access? — committed to NuGet/Insights by joelverhagen 6 years ago
- Simplify deployment to not deploy twice Looks like https://github.com/Azure/azure-functions-host/issues/7094 is resolved? Or perhaps works with RBAC Key Vault access? — committed to syedrizvinet/Insights-scripts-test by syedrizvinet 6 years ago
Currently - WEBSITE_CONTENTAZUREFILECONNECTIONSTRING as a key vault reference is not supported for creation, it can only be the full connection string. Then, it can be updated to use key vault references
Figured out my error on applying app settings after function app deployment
Would setting
WEBSITE_SKIP_CONTENTSHARE_VALIDATIONto 1 work?https://learn.microsoft.com/en-us/azure/azure-functions/functions-app-settings#website_skip_contentshare_validation
@mhoeger - If we are trying to only use ARM templates to accomplish the configuration of the App Function, I am trying to figure out how to update the WEBSITE_CONTENTAZUREFILECONNECTIONSTRING with Key Vault reference after the initial deployment. I tried using this immediately after creating the function app:
However, I get this error even though I have a User Assigned Identity associated to the function app and the original creation step successfully created other settings with Key Vault references:
{ “status”: “Failed”, “error”: { “code”: “BadRequest”, “message”: “Unable to resolve Azure Files Settings from Key Vault. Details: Attempt to resolve AppSettingKey WEBSITE_CONTENTAZUREFILECONNECTIONSTRING resulted with status: MSINotEnabled.”, “details”: [ { “message”: “Unable to resolve Azure Files Settings from Key Vault. Details: Attempt to resolve AppSettingKey WEBSITE_CONTENTAZUREFILECONNECTIONSTRING resulted with status: MSINotEnabled.” }, { “code”: “BadRequest” }, {} ] } }
What other option do we have?
I received a slightly different error, but it’s still an issue.
Failed to update web app settings: Unable to resolve Azure Files Settings from Key Vault. Details: Unable to resolve setting: WEBSITE_CONTENTAZUREFILECONNECTIONSTRING with error: MSINotEnabled.
I was just trying to enable it directly in the portal.