DEV Community

Jonas Samuelsson
Jonas Samuelsson

Posted on

1 2

Restart multiple azure app services

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

Top comments (0)

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay