az webapp log tail
注意App Serviceの調査
az webapp log tail -g <rg> -n <app>
Webアプリのログをリアルタイム追跡(log tail)、再起動(restart)。500エラー調査の最初の一手。
実行例
az webapp restart -g prod-rg -n corp-siteアプリを再起動
書式
az webapp [log tail|restart|list] -g rg -n name
実行前の注意
restartは瞬断を伴う。
関連コマンド
- az monitor activity-log listアクティビティログ照会
- az group listリソースグループ一覧