question

SumanthKannedari-0165 avatar image
0 Votes"
SumanthKannedari-0165 asked ryanchill answered

Web app configuration using powershell

I'm looking for a powershell script which updates the configuration settings without removing the other existing settings in connection strings

Thanks,
Sumanth

azure-webapps
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

You can use Set-AzWebApp cmdlet. For a complete list of PowerShell commands that you can use for App Service, see https://docs.microsoft.com/en-us/powershell/module/az.websites/?view=azps-6.5.0#app_service.

Your command will look something like Set-AzWebApp -AppSettings <Hashtable> -Name 'ContosoWebApp' -ResourceGroupName 'Default-Web-WestUS' where <Hastable> is @{ <setting-name> = <value>; }. The values inside the hashtable will update if existing or add if missing.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.