Skip to content

Instantly share code, notes, and snippets.

@brunobertechini
Last active January 27, 2022 13:17
Show Gist options
  • Save brunobertechini/f08a91d2de99db857ac47d66ae3c5ee5 to your computer and use it in GitHub Desktop.
Save brunobertechini/f08a91d2de99db857ac47d66ae3c5ee5 to your computer and use it in GitHub Desktop.
Azure CLI Reference Commands - AppService
#!/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