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 11, 2018 in DevOps on Cloud by ffdfd
• 5,550 points
1,328 views

1 answer to this question.

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 11, 2018 by ajs3033
• 7,300 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 24, 2018 in DevOps on Cloud by shubham
• 7,340 points
770 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,680 points
627 views
+1 vote
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,494 views
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,300 points
3,655 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP