首页 > 解决方案 > Azure Powershell Get-AzWebAppSlot AppSettings 始终为空

问题描述

我正在尝试 Get-AzWebAppSlot 工作正常。它返回数据,但 AppSettings 始终为空。我已经检查了门户 azure 上的插槽,它具有应用程序设置。

这里的代码: 图片

这是结果 在此处输入图像描述

这是门户网站 azure 上的应用程序设置 在此处输入图像描述

标签: azurepowershell

解决方案


确保您正在使用该-Slot参数。

Get-AzWebAppSlot -ResourceGroupName "test" -Name "mywebapp" -Slot "Staging"

https://docs.microsoft.com/en-us/powershell/module/az.websites/get-azwebappslot?view=azps-6.4.0


推荐阅读