Last active
January 27, 2022 13:17
-
-
Save brunobertechini/f08a91d2de99db857ac47d66ae3c5ee5 to your computer and use it in GitHub Desktop.
Azure CLI Reference Commands - AppService
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
#!/bin/bash | |
RESOURCE_GROUP="myresourcegroup" | |
WEBAPP="mywebapp" | |
# Deploy files outside wwwroot | |
# https://docs.microsoft.com/en-us/cli/azure/webapp?view=azure-cli-latest#az-webapp-deploy | |
az webapp deploy \ | |
-g $RESOURCE_GROUP \ | |
-n $MYWEBAPP \ | |
--type static \ | |
--src-path ./local-file.txt \ | |
--target-path /home/site/customdir | |
# az webapp deployment source update-token : Update source control token cached in Azure app service. | |
# If no token is provided, the command will clean up existing token. | |
az webapp deployment source update-token --git-token $AZURE_DEVOPS_TOKEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment