Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a deployment slot named 'staging'.
Azure
az webapp deployment slot create --name myApp --resource-group myResourceGroup --slot [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'production' instead of 'staging' as the slot name.
✗ Incorrect
The deployment slot name for staging is usually 'staging'.
2fill in blank
mediumComplete the code to swap the 'staging' slot with the production slot.
Azure
az webapp deployment slot swap --name myApp --resource-group myResourceGroup --slot [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the 'production' slot with itself.
✗ Incorrect
Swapping the 'staging' slot with production promotes the staged version to live.
3fill in blank
hardFix the error in the command to list all deployment slots for 'myApp'.
Azure
az webapp deployment slot [1] --name myApp --resource-group myResourceGroup Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which displays a single slot, not all slots.
✗ Incorrect
The correct command to list deployment slots is 'list'.
4fill in blank
hardFill both blanks to set the configuration source to 'staging' slot when creating a new slot.
Azure
az webapp deployment slot create --name myApp --resource-group myResourceGroup --slot [1] --configuration-source [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'production' as configuration source when creating a 'staging' slot with staging config.
✗ Incorrect
The new slot is named 'staging' and its configuration is copied from the 'staging' slot.
5fill in blank
hardFill all three blanks to update app settings for the 'staging' slot.
Azure
az webapp config appsettings set --name myApp --resource-group myResourceGroup --slot [1] --settings [2]=[3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Updating the 'production' slot by mistake.
✗ Incorrect
We update the 'staging' slot's app setting 'DEBUG' to 'True'.