Cmdlet Name: Get-AzWebApp
Module: Az.Websites
Aliases:
Applies To: Azure App Service Web Apps
The Get-AzWebApp cmdlet retrieves information about Azure App Service web apps. You can retrieve information about all web apps in a subscription, or filter them by resource group, name, or other properties.
Specifies the name of the web app.
Specifies the name of the resource group that the web app belongs to.
Specifies the name of the web app. This parameter is an alias for the -Name parameter.
Includes deployment slots in the output. By default, only the production slot is returned.
The credentials, account, tenant, and subscription for the cloud service. This is a common parameter for all cmdlets.
Get-AzWebApp -ResourceGroupName "MyResourceGroup" -Name "MyWebApp"
This command retrieves the web app named "MyWebApp" from the resource group "MyResourceGroup".
Get-AzWebApp -ResourceGroupName "MyResourceGroup"
This command retrieves all web apps within the specified resource group.
Get-AzWebAppThis command retrieves all web apps across the entire Azure subscription. Be cautious, as this can return a large amount of data.
Get-AzWebApp -ResourceGroupName "MyResourceGroup" -Name "MyWebApp" -IncludeSlots
This command retrieves the specified web app along with all of its associated deployment slots.