Skip to content

Azure CLI and resources

Useful Azure CLI commands

View App Service configuration

az webapp config show \
  --name <your-app-name> \
  --resource-group <your-resource-group>

Restart App Service

az webapp restart \
  --name <your-app-name> \
  --resource-group <your-resource-group>

View environment variables

az webapp config appsettings list \
  --name <your-app-name> \
  --resource-group <your-resource-group>

View connection strings

az webapp config connection-string list \
  --name <your-app-name> \
  --resource-group <your-resource-group>

Check App Service health

az webapp show \
  --name <your-app-name> \
  --resource-group <your-resource-group> \
  --query "state"