How to get Azure webapp config appsettings using Az PowerShell module

Viewed 1459

For certain reasons I cannot use

az webapp config appsettings list -n appxxx-dfpg-dev4-web-eastus2-gateway-apsvc -g appxxx-dfpg-dev4-web-eastus2

Instead I want to achieve the same result by using Az PowerShell module, is there a way to do so?

1 Answers

You can use this powershell cmdlet Get-AzWebApp.

The sample code:

 $myapp = Get-AzWebApp -ResourceGroupName "resource_group_name" -Name "azure_webapp_name"

 $myapp.SiteConfig.AppSettings

The test result:

enter image description here

Related