Skip to content

Instantly share code, notes, and snippets.

@matthiasguentert
Last active April 26, 2021 10:58
Show Gist options
  • Save matthiasguentert/967b854be868550af6c21d7e41f9db6c to your computer and use it in GitHub Desktop.
Save matthiasguentert/967b854be868550af6c21d7e41f9db6c to your computer and use it in GitHub Desktop.
Azure App Service - Azure CLI Cheat Sheet

Deploy a custom docker image

az webapp config container set -r https://my-acr.azurecr.io -i my-acr.azurecr.io/dotnet/samples:aspnetapp -n app-my-app-poc -g rg-my-app-poc -u my-acr -p ...

Restart webapp

az webapp restart -n app-my-app-poc -g rg-my-app-poc

Real-time logging on container

az webapp log config --name app-myapp --resource-group rg-myapp --docker-container-logging filesystem az webapp log tail --name app-myapp --resource-group rg-myapp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment