We are currently working on automating deployment of an App Service (Web App) in Azure.
Our goals are:
To use slots to do hot deployment
To use an Azure DevOps Release pipeline and ARM templates for deploying the App Service resource, including the Staging slot
To have another Azure Release pipeline to deploy the binaries of the application to the Staging slot, including App Settings values
Some settings are "deployment slot settings" and some aren't - see https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots for explanations.
The problem is, we can't find a way to differentiate the deployment slot settings from those who swap with the slot in ARM template. In ARM template, an App Setting is just a name - value pair, and all App Settings belong to the same App Settings resource type (see https://docs.microsoft.com/en-us/azuretemplates/microsoft.web/2018-02-01/sites).
To the best of my understanding this doesn't allow us to specify slot settings - so what is the solution to do that?
Thanks in advance for your answer.