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 8150381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:02:58+00:00 2026-06-06T15:02:58+00:00

I have a Windows Azure site which is deployed to two separate hosted services.

  • 0

I have a Windows Azure site which is deployed to two separate hosted services. One for test, one for production. When we’re ready to push to production, we spin up a staging deployment in the production service, push there, then do a VIP swap. All good.

The question is, now we want to move up from XS web instances, but it doesn’t really make sense to spend the extra money on the test deployment. Is there any way to use an XS instance for test, and then say medium instances for production? I know I can change the number of instances for each service config, but I can only change the instance size for all configs.

I’m thinking of just leaving it XS in the config, and then remembering to switch it to Medium before I deploy to production. Is there any reason why I shouldn’t do this? Is there a better way?

Cheers!

  • 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-06-06T15:02:59+00:00Added an answer on June 6, 2026 at 3:02 pm

    There are a few ways to do this… Simpler way is to do a little “hacking” of the CCPROJ file:

    1) create a clone of the CSDEF file for every environment that matches the Configuration Name (Release/Debug/QA/UAT/etc):
    ServiceDefinition.Release.csdef, ServiceDefinition.Debug.csdef, etc.

    2) Add those files manually to the CCPROJ file by using a notepad editor

    3) Define a Pre-Build Event command that copies the ServiceDefinition.$(ConfigurationName).csdef into ServiceDefintion.csdef

    voila, now your ServiceDefintion will adapt to whatever configuration you’re using.

    If you want to get fancier or see more details, check out this blog entry that can help you switch all sorts of settings in unison

    http://www.paraleap.com/blog/post/Managing-environments-in-a-distributed-Azure-or-other-cloud-based-NET-solution.aspx

    Edit: Here is a config that works. Notice that other files are included as type “None” instead of ServiceDefinition to avoid the multiple definitions error.

      <ItemGroup>
        <ServiceConfiguration Include="ServiceConfiguration.Local.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.Development 1.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.Development 2.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.Local Dev 1.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.Local Dev 2.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.QA 1.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.QA 2.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.Pre-Production 1.cscfg" />
        <ServiceConfiguration Include="ServiceConfiguration.Production.cscfg" />
        <ServiceDefinition Include="ServiceDefinition.csdef" />
        <None Include="ServiceDefinition.Local.csdef" />
        <None Include="ServiceDefinition.Development 1.csdef" />
        <None Include="ServiceDefinition.Development 2.csdef" />
        <None Include="ServiceDefinition.Local Dev 1.csdef" />
        <None Include="ServiceDefinition.Local Dev 2.csdef" />
        <None Include="ServiceDefinition.QA 1.csdef" />
        <None Include="ServiceDefinition.QA 2.csdef" />
        <None Include="ServiceDefinition.Pre-Production 1.csdef" />
        <None Include="ServiceDefinition.Production.csdef" />
      </ItemGroup>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have one web role hosted on Windows Azure which respond
I have a Web application which will be deployed to Windows Azure and I'm
I have an asp.net website which is hosted on windows azure. The application is
I have 2 instance in windows azure. I am finding that only one instance
We have Windows Server 2008 as our Production server hosted in RackSpace environment. Following
I have an application that is deployed on Windows Azure, in the application there
I have a WCF Service hosted on Windows Azure and I just recently changed
Just a bit of background first. I currently have a site hosted with Windows
I have a Windows Azure web role that contains a web site using ASP.NET
I have an ASP.NET MVC 3 application, WouldBeBetter.com , currently hosted on Windows Azure.

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.