arcus-azure/arcus.scripting

Provide script to upsert an app setting within an Azure App Service

Closed this issue · 1 comments

Is your feature request related to a problem? Please describe.
Updating a single application setting in an App Service cannot be done via ARM-/Bicep-templates.
This can be done via PowerShell, but requires a couple of actions to be performed.

Describe the solution you'd like
Create a new module:
Arcus.Scripting.AppService
Create a new function:
Set-AzAppServiceSetting
Parameters:
- ResourceGroupName: resource group containing the app service
- AppServiceName: the name of the app service of which the settings should be updated
- AppServiceSettingName: the name of the app setting to be added/updated
- AppServiceSettingValue: the value to be assigned to the app setting

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
An initial implementation can be found here:
https://github.com/mbraekman/Powershell/blob/master/Azure/AppService-UpdateAppSetting.ps1

Great! Thx 😉