Azure Tips and Tricks Part 131 - Quickly display a list of all Azure Web Apps URL from Azure Cloud Shell

1 minute read

Check out Azure.Source by Rob Caron : A very nice mix of Azure news, announcements, videos, podcast and more. Read weekly

Intro

Most folks aren’t aware of how powerful the Azure platform really is. As I’ve been presenting topics on Azure, I’ve had many people say, “How did you do that?” So I’ll be documenting my tips and tricks for Azure in these posts.

The Complete List of Azure Tips and Tricks

Available Now!

Quickly display a list of all Azure Web Apps URL from Azure Cloud Shell

Often I need to quickly list out the URLs for all Azure App Services in a given resource. In the past, when it just a small number then I’d do it manually, but it has recently grown to a point where I needed to find a better way.

Enter PowerShell and Azure Cloud Shell.

Wherever you are logged in with Azure Cloud Shell and are using PowerShell, then you can quickly run this command:

Get-AzureRmWebApp | foreach-object {$_} | select-object SiteName, DefaultHostName, ResourceGroup

It will give you the domain name, the *.azurewebsites.net and the resource group that it is contained in. Simple!

Want more Azure Tips and Tricks?

If you’d like to learn more Azure Tips and Tricks, then follow me on twitter or stay tuned to this blog! I’d also love to hear your tips and tricks for working in Azure, just leave a comment below.

Leave a Comment