Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1046683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:11:05+00:00 2026-05-16T16:11:05+00:00

I am guessing it is creating a second .csfg file, but the config thing

  • 0

I am guessing it is creating a second .csfg file, but the config thing is hardwired into the Azure project type so I’m not really sure.

For example, if I wish staging and live to point at different sql-azure databases, how do I go about it?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T16:11:06+00:00Added an answer on May 16, 2026 at 4:11 pm

    Assuming you want to the ability to make changes on the fly, almost like modifying a web.config and cycling an app pool in IIS, using multiple Service Configuration (.cscfg) files is the best approach.

    Azure allows you (using both the Portal, and the Service Runtime API) to change the service configuration on-the-fly. You can design your application to respond to this, and have full control of the behavior based on the changes you apply.

    To implement this you’d need to do two things:

    (1) Migrate the settings you want the ability to change at runtime from a traditional app or web.config, to the .cscfg. (Declared in the Service Definition (.csdef))

    (2) Hook the event handler(s) for environment changes

    using Microsoft.WindowsAzure.ServiceRuntime;
    
    // fired when a change is detected, prior to it being applied
        RoleEnvironment.Changing += RoleChanging; 
    // fired when a change is completed, after its applied
        RoleEnvironment.Changed += RoleChanged; 
    

    From there you can decide if you want to simply re-instantiate certain objects using the new variables, or take more drastic action such as recycling the role.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm guessing not, but I'm creating an app that gets the users coordinates using
I'm guessing this is going to involve regexp or something, but I'll give it
I'm guessing it's not a Perl Compatible Regular Expression, since there's a special kind
I'm guessing this is a simple problem, but I'm just learning... I have this:
I'm guessing this isn't possible, but here goes. I have two tables, and I'm
I'm guessing there is a simple solution here, but I've tried some things and
I'm creating an application that, when the user selects a project in a table,
When creating classes for immutable objects immutable meaning that state of instances can not
I'm creating an import script using Nokogiri to parse an XML file and then
I need help with creating Operator-Overloaded functions please. I tried 2 but I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.