DEV Community

loading...

Restart multiple azure app services

jonassamuelsson profile image Jonas Samuelsson ・1 min read

We sometimes need to restart all azure app services in a subscription or service plan. It's very time consuming to do manually in the portal as it has to be done per app service but using az cli it's really easy. =)

az webapp list | convertfrom-json | foreach { az webapp restart --ids $_.id }
Enter fullscreen mode Exit fullscreen mode

Discussion (0)

pic
Editor guide