Get-AzWebApp
Retrieves the details of an Azure App Service web app.
SYNOPSIS
Gets the details of a specific web app or a list of web apps.
SYNTAX
Get-AzWebApp #Retrieves a list of all web apps in the current Azure subscription.
Get-AzWebApp -ResourceGroupName "MyResourceGroup" #Retrieves all web apps within a specified resource group.
Get-AzWebApp -ResourceGroupName "MyResourceGroup" -Name "MyWebApp" #Retrieves a specific web app by its name.
Get-AzWebApp -DefaultProfile $MyAzureProfile #Retrieves web apps using a specified Azure profile.
        DESCRIPTION
The Get-AzWebApp cmdlet retrieves details about one or more Azure App Service web apps. You can use this cmdlet to get information about all web apps in your subscription, all web apps within a specific resource group, or the details of a single web app by specifying its name and resource group.
PARAMETERS
| Name | Type | Description | Required? | 
|---|---|---|---|
| Name | System.String | The name of the web app. | No | 
| ResourceGroupName | System.String | The name of the resource group. | No | 
| DefaultProfile | Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer | The credentials, account, tenant, and subscription for the user. | No | 
INPUTS
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSWebAppBase
OUTPUTS
Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSWebAppBase or Microsoft.Azure.Commands.ResourceManager.Cmdlets.SdkModels.PSWebAppBase[]
EXAMPLES
Example 1: Get all web apps in the current subscription
This command retrieves all Azure App Service web apps associated with the current Azure subscription.
1Get-AzWebApp
        Example 2: Get all web apps in a specific resource group
This command retrieves all web apps that belong to the resource group named "MyResourceGroup".
1Get-AzWebApp -ResourceGroupName "MyResourceGroup"
        Example 3: Get a specific web app
This command retrieves the details of a web app named "MyWebApp" located in the "MyResourceGroup" resource group.
1Get-AzWebApp -ResourceGroupName "MyResourceGroup" -Name "MyWebApp"