简体   繁体   English

如何使用 Az PowerShell 模块获取 Azure webapp config appsettings

[英]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.

相关问题 如何从 Azure 环境中获取 PowerShell Az 模块版本 - How to get PowerShell Az Module version from Azure environment 如何使用 Az 模块通过 PowerShell 获取 Azure 资源的 CPU 使用率 - How to get cpu usage of Azure resources through PowerShell with Az module 如何使用 Powershell 中的 az 命令获取 Azure 指标? - How can i get Azure metrics using the az command in Powershell? macOS 上的 Azure Az PowerShell 模块 - Azure Az PowerShell module on macOS Azure Powershell (Az模块) 公开IP地址 - Azure Powershell (Az module) get public IP address 如何使用 powershell Az 模块授予 Azure AD 应用程序访问所需权限的权限 - How to give Azure AD application access to required permissions using powershell Az module Azure CLI az functionapp config appsettings - appsetting 中的空间 - Azure CLI az functionapp config appsettings - space in appsetting 如何使用 PowerShell(az 模块)部署到 Azure 应用服务? - How do I deploy to Azure App Service with PowerShell (az module)? 无法使用 Azure Cli az webapp config backup create 备份功能/Web 应用程序 - Unable to backup Function/Web App using Azure Cli az webapp config backup create 使用Powershell为Azure WebApp获取PublishProfile - Get PublishProfile for an Azure WebApp using Powershell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM