Home > Mobile >  Azure Powershell Get-AzWebAppSlot AppSettings is empty always
Azure Powershell Get-AzWebAppSlot AppSettings is empty always

Time:09-29

I'm trying to Get-AzWebAppSlot that works fine. It returns the data, but AppSettings are always empty. I've checked the slot on portal azure, and it has the app settings.

Here the code: Image

Here is the result enter image description here

Here is the app settings on portal azure enter image description here

CodePudding user response:

Make sure you are using the -Slot parameter.

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

  • Related