How to control development/prod/staging application settings using azure functions?

0 votes

I want to control app settings using azure functions depending upon the environment it is in. I want to change between the appsettings.json file, for eg if it's the development environment, the appsettings.development.json file be used.

From what I've read in the docs I can see that you can set up config in the azure portal but can't find anything to set it in the solution. Is there any way to manage these build environments?

May 10, 2018 in DevOps on Cloud by Atul
• 5,470 points
146 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

You should use a build-release system like VSTS. Try creating an ARM template of your app and deploy this pipeline with VSTS. You can add value to the template.json file like here:

"appSettings": [
    // other entries
    {
        "name": "MyValue",
        "value": "[parameters('myValue')]"
    }

You'll require parameters.json which will hold the values:

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "name": {},
        "storageName": {},
        "location": {},
        "subscriptionId": {}
    }
}

And change the values of these parameters in VSTS portal.

override parameters

This way you'll be able to implement a CI/CD pipeline used by professional sys admins.

answered May 10, 2018 by ajs3033
• 7,000 points

Related Questions In DevOps on Cloud

0 votes
1 answer

How to manage Application version for VM's in Azure Autoscaling group

First of all, You have to launch ...READ MORE

answered Apr 23, 2018 in DevOps on Cloud by shubham
• 6,480 points
40 views
0 votes
1 answer

How to deploy compiled elements Azure Web App with Appveyor?

Add the following BeforeBuild target to Web ...READ MORE

answered Jul 12, 2018 in DevOps on Cloud by Kalgi
• 2,620 points
18 views
+2 votes
3 answers

How do I deploy Scala PlayFramework Project to IBM Bluemix

It seems that they are more than ...READ MORE

answered Oct 18, 2018 in DevOps on Cloud by lina
• 8,100 points
77 views
0 votes
1 answer

how to safely deploy npm install without it causing inconsistencies?

The recent versions on npm generates a ...READ MORE

answered Apr 11, 2018 in DevOps on Cloud by DareDev
• 6,520 points
41 views
0 votes
1 answer
+13 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How can I remove a port from url for node app using nginx

If you run your node server on ...READ MORE

answered Apr 10, 2018 in DevOps on Cloud by ajs3033
• 7,000 points
292 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.