How to publish Azure function app application settings from visual studio based on publish profile

852 Views Asked by At

I created function app in visual studio and able to publish successfully. But It needs manual configuration settings in azure portal (cloud).

example scenario: Let's say If we have connection string in settings, it varies on environment basis. I have requirement to publish to different environments.

Is there any way to publish application settings / configurations along with publish rather going to portal and updating application settings?

Publish to different environments is working with different publish profiles. But makes me to go and create / update application settings in portal manually.

Expecting, If I select publish profile it should publish my function app along with given application settings as well. It should work as expected without going to portal and updating any settings.

Thank you for your help.

1

There are 1 best solutions below

0
On

You can make use of ARM TEMPLATE and deploy your FunctionApp with any Application settings as per your needs. -> Documentation

The quick start template can also be found here on Github