Add support for web app slots
See original GitHub issuehttps://docs.microsoft.com/en-us/azure/templates/microsoft.web/2018-02-01/sites/slots
Would also be useful to be able to make app settings “slot sticky”. I can’t find any official documentation or reference but I’ve been using the following in my ARM templates.
{
"name": "[variables('webAppName')]",
"type": "Microsoft.Web/sites",
"apiVersion": "2016-08-01",
"location": "[resourceGroup().location]",
"properties": {
"serverFarmId": "[variables('appServiceResourceId')]",
"siteConfig": {
"connectionStrings": [
{
"name": "Database",
"connectionString": "[variables('sqlConnectionString')]",
"type": "SQLAzure"
},
{
"name": "ServiceBus",
"connectionString": "[variables('serviceBusConnectionString')]",
"type": "Custom"
}
],
"appSettings": [
{
"name": "ASPNETCORE_ENVIRONMENT",
"value": "[parameters('aspNetEnvironment')]"
},
{
"name": "AllowedOrigins",
"value": "[variables('allowedOrigins')]"
}
]
}
},
"resources": [
{
"type": "config",
"name": "slotconfignames",
"apiVersion": "2016-08-01",
"properties": {
"connectionStringNames": [
"Database",
"ServiceBus"
],
"appSettingNames": [
"ASPNETCORE_ENVIRONMENT",
"AllowedOrigins"
]
},
"dependsOn": [
"[variables('webAppName')]"
]
}
]
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Set up staging environments - Azure App Service
In the left pane, select Deployment slots > Add Slot. Note. If the app isn't already in the Standard, Premium, or Isolated tier,...
Read more >Azure Deployment Slots: Benefits and How to Use Them
In Azure App Services, you can very easily add an additional deployment slot. This is a full-fledged App Service – in this case,...
Read more >Azure deployment slots
To add a new deployment slot, click Add Slot button at the top. azure app service deployment slots. Provide name for the deployment...
Read more >azure-content/articles/app-service-web/web-sites-staged- ...
To find out the number of slots your web app's mode supports, see App Service Pricing. ... Then, in the Deployment slots blade,...
Read more >Azure App Services — Deployment Slots
Let's create a new Slot, for that, go to the App Service and click on “+ Add Slot”, add a name and select...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@isaacabraham I should have a little bit of time coming up and this will soon be a priority for my company.
What do you think about adding these new keywords?
slots
- takes a string list of slot names (overrides any previous value)zip_deploy_slot
- takes a slot name and zip path to deploy to the given slotFurther improvements could then be to add
add_slot_setting
/add_slot_settings
for sticky settingsadd_slot_connection_string
/add_slot_connection_strings
for sticky connection stringsIs there an alternative API you would prefer?
I’m currently using the following quick hack to get slots working.
For basic slots support I guess we would need at least:
I’m happy to help with this if needed!