0
0
Azurecloud~10 mins

Deployment slots for staging in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Astaging
Bproduction
Ctest
Ddev
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'production' instead of 'staging' as the slot name.
2fill in blank
medium

Complete 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'
Astaging
Btest
Cproduction
Ddev
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the 'production' slot with itself.
3fill in blank
hard

Fix 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'
Acreate
Bshow
Clist
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'show' which displays a single slot, not all slots.
4fill in blank
hard

Fill 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'
Astaging
Bproduction
CmyApp
Ddev
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'production' as configuration source when creating a 'staging' slot with staging config.
5fill in blank
hard

Fill 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'
Astaging
Bproduction
CDEBUG
DTrue
Attempts:
3 left
💡 Hint
Common Mistakes
Updating the 'production' slot by mistake.