Reference the artifact (.zip) from your build pipeline. Example scenario: A .NET Core app gets built, zipped, and deployed automatically to the Staging slot of an Azure Web App after successful testing. 5⃣ How do you manage configuration transformations (e.g., web.config or appsettings.json)? Follow:
You can use XML or JSON transformation tasks in your release pipeline to adjust settings
per environment.
Example (Classic):
- Add a File Transform or Replace Tokens task.
- Replace values like database connection strings or API URLs for QA, UAT, or
Production.
Example (YAML):
- task: FileTransform@2
inputs:
folderPath: '$(System.DefaultWorkingDirectory)/drop'
xmlTransformation: true
jsonTargetFiles: '**/appsettings*.json'
Example scenario:
In appsettings.Production.json, you might replace the connection string with your
production database credentials automatically during deployment.
6⃣ How do you handle deployment slots in Azure App Service?
Azure App Service supports deployment slots — like Staging and Production.
Best practice: