简体   繁体   中英

How to get Azure webapp config appsettings using Az PowerShell module

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?

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:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM