question

beardjo avatar image
0 Votes"
beardjo asked beardjo answered

Override App Service Sticky Settings for _EXTENSION_VERSIONS

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://docs.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet

Thanks

azure-app-configuration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

beardjo avatar image
0 Votes"
beardjo answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.