Restart, start and stop all Azure Web Apps in resource group using PowerShell

added by DotNetKicks
3/20/2019 11:42:39 AM

347 Views

This post is short but useful. We need just two lines (we can combine it to one): $allSites = Get-AzureRmWebApp -ResourceGroupName resource-group-name $allSites.GetEnumerator() | Restart-AzureRmWebApp The trick is to use GetEnumerator() because above commandlet returns System.Collections.Generic.List instead of array of individual objects into pipeline. This also works with


0 comments