dawidg
dawidg

Reputation: 2419

Azure powershell slot specific appsetting

I'm trying to create a script to set / update appsettings in an Azure web app slot using powershell. Using the examples in Adding an App Settings to existing Azure Web Application using Azure Power Shell it works.

My problem is that I want "Slot setting" to be true. In all the examples I've found and in resources.azure.com, the settings are always name/value pairs, with no property to specify the value as "Slot setting".

Is this even possible to script?

Thanks.

Upvotes: 2

Views: 815

Answers (1)

Casey
Casey

Reputation: 805

Yes when using the Set-AzureWebsite command you can do Set-AzureWebsite -SlotStickyAppSettingNames @("setting name")

Upvotes: 1

Related Questions