[英]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?相反,我想通过使用 Az PowerShell 模块来获得相同的结果,有没有办法做到这一点?
You can use this powershell cmdlet Get-AzWebApp .您可以使用此 powershell cmdlet Get-AzWebApp 。
The sample code:示例代码:
$myapp = Get-AzWebApp -ResourceGroupName "resource_group_name" -Name "azure_webapp_name"
$myapp.SiteConfig.AppSettings
The test result:测试结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.