Last active
February 22, 2018 22:44
-
-
Save jwkidd3/66d6e521c3a1c3a7a389411543a28dde to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitrepo=<use your slots project on github> | |
webappname=mywebapp$RANDOM | |
az group create --location westeurope --name myResourceGroup | |
az appservice plan create --name $webappname --resource-group myResourceGroup --sku S1 | |
az webapp create --name $webappname --resource-group myResourceGroup \ | |
--plan $webappname | |
az webapp deployment slot create --name $webappname --resource-group myResourceGroup \ | |
--slot staging | |
az webapp deployment source config --name $webappname --resource-group myResourceGroup \ | |
--slot staging --repo-url $gitrepo --branch master --manual-integration | |
echo http://$webappname-staging.azurewebsites.net | |
az webapp deployment slot swap --name $webappname --resource-group myResourceGroup \ | |
--slot staging | |
echo http://$webappname.azurewebsites.net |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment