Override App Service Sticky Settings for _EXTENSION_VERSIONS

John Beard 1 Reputation point
2022-05-17T23:01:58.63+00:00

Can somebody give me an example of how WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS is used to override sticky slot settings for ApplicationInsightsAgent_EXTENSION_VERSION in an app service?

Documented here:
https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet

Thanks

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
237 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. John Beard 1 Reputation point
    2022-05-18T00:22:39.927+00:00

    Figured this out. Settings with _EXTENSION_VERSIONS suffix are by default not swappable. ie: Even if the "Deployment slot setting" check box is cleared, this setting still won't swap without the app setting WEBSITE_OVERRIDE_STICKY_EXTENSION_VERSIONS set to 0 or false. The confusing part about all of this is that if the "Deployment slot setting" check box is checked, the aforementioned app setting won't have any affect. Therefore, if you are using an ARM template to set an _EXTENSION_VERSIONS setting, you have to explicitly set the "Deployment slot setting" to false in the template. Something like:
    {
    "name": "ApplicationInsightsAgent_EXTENSION_VERSION",
    "value": "~2",
    "slotSetting": false
    }
    Or clear the "Deployment slot setting" check box in the portal gui.

    Hopefully this helps somebody else out that was as confused as I was.

    Cheers.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.