Unable to add deployment slot to function app on consumption plan

Rob Hale 31 Reputation points

I'm trying to add a deployment slot named stg to an existing function app on a consumption plan. When I do I get the following error:

Failed to create slot 'stg': Unable to resolve Azure Files Settings from Key Vault. Details: Unable to resolve setting: WEBSITE_CONTENTAZUREFILECONNECTIONSTRING with error: OtherReasons.

The WEBSITE_CONTENTAZUREFILECONNECTIONSTRING setting is assigned a value that is a key vault reference. I don't know if that's the source of the problem. I found this issue from a couple of years ago that talks about an issue with key vault references and swapping slots - but it has been closed as resolved.

I was also pointed to this post from last year which seems related. In that thread, @MayankBargali-MSFT asked to be tagged on related tickets.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,352 questions
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
209 questions
{count} votes

Accepted answer
  1. MuthuKumaranMurugaachari-MSFT 22,156 Reputation points

    @Rob Hale Using Key Vault reference for this setting seems to be the problem. If you review docs, it was mentioned that this validation check will fail by default, and you can skip this validation by setting WEBSITE_SKIP_CONTENTSHARE_VALIDATION to "1".


    Note, the file share has to be created in advance. Check WEBSITE_SKIP_CONTENTSHARE_VALIDATION. Otherwise, you will get errors as described below:


    Can you try skipping the validation with the setting and let me know if any issues?

    Also, I had a quick discussion with our product team, and we will review the error message to include better error code instead of OtherReasons. I hope this answers your question and feel free to add if you have any questions. I would be happy to assist you.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful