Get-AzWebApp

Let us learn the syntax and usage of the Get-AzWebApp PowerShell command with certain examples.

Get-AzWebApp

Get-AzWebApp is an excellent Azure PowerShell cmdlet that helps you quickly retrieve information about your Azure Web App.

The key parameters you need to provide with Get-AzWebApp are Azure Web App name, resource group name, etc.

Syntax

The syntax of the Get-AzWebApp Azure PowerShell cmdlet is as below

Get-AzWebApp [[-ResourceGroupName] <String>] [[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]

Example

You can consider the below example. Here, we will retrieve the details for the Azure Web App named “TSINFOSite” with the resource group name “Demo123“.

Execute the below Azure PowerShell Cmdlet.

PS C:\WINDOWS\system32> Get-AzWebApp -ResourceGroupName "Demo123" -Name "TSINFOSite"

Once you execute the above Azure PowerShell cmdlet, you will get the below output

GitRemoteName               : 
GitRemoteUri                : 
GitRemoteUsername           : 
GitRemotePassword           : 
AzureStorageAccounts        : 
AzureStoragePath            : {}
State                       : Running
HostNames                   : {tsinfosite.azurewebsites.net}
RepositorySiteName          : TSINFOSite
UsageState                  : Normal
Enabled                     : True
EnabledHostNames            : {tsinfosite.azurewebsites.net, 
                              tsinfosite.scm.azurewebsites.net}
AvailabilityState           : Normal
HostNameSslStates           : {tsinfosite.azurewebsites.net, 
                              tsinfosite.scm.azurewebsites.net}
ServerFarmId                : /subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/reso
                              urceGroups/Demo123/providers/Microsoft.Web/serverfarms/T
                              SINFOASP12
Reserved                    : False
IsXenon                     : False
HyperV                      : 
LastModifiedTimeUtc         : 6/25/2021 3:07:32 AM
SiteConfig                  : Microsoft.Azure.Management.WebSites.Models.SiteConfig
TrafficManagerHostNames     : 
ScmSiteAlsoStopped          : False
TargetSwapSlot              : 
HostingEnvironmentProfile   : 
ClientAffinityEnabled       : True
ClientCertEnabled           : False
ClientCertMode              : 
ClientCertExclusionPaths    : 
HostNamesDisabled           : False
CustomDomainVerificationId  : 
OutboundIpAddresses         : 52.170.7.25,52.168.75.147,52.179.5.98,52.179.1.81,52.179
                              .4.232
PossibleOutboundIpAddresses : 52.170.7.25,52.168.75.147,52.179.5.98,52.179.1.81,52.179
                              .4.232,52.179.2.103,52.170.87.19
ContainerSize               : 0
DailyMemoryTimeQuota        : 0
SuspendedTill               : 
MaxNumberOfWorkers          : 
CloningInfo                 : 
ResourceGroup               : Demo123
IsDefaultContainer          : 
DefaultHostName             : tsinfosite.azurewebsites.net
SlotSwapStatus              : 
HttpsOnly                   : False
RedundancyMode              : 
InProgressOperationId       : 
Identity                    : 
Id                          : /subscriptions/1cdf4300-dee5-4518-9c9c-feaa72a5cbd1/reso
                              urceGroups/Demo123/providers/Microsoft.Web/sites/TSINFOS
                              ite
Name                        : TSINFOSite
Kind                        : app
Location                    : East US
Type                        : Microsoft.Web/sites
Tags                        : 

You can see it here

Get-AzWebApp

You may also like following the articles below

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzWebApp PowerShell command with certain examples. Thanks for reading this article !!!