<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7" -->

---
title: Scale-out to the cloud, scale back to your rack | daily.dev
description: A PowerShell-based approach lets an on-premise web application burst into Windows Azure during capacity spikes and scale back to local hardware afterward. The...
canonical: https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Scale-out to the cloud, scale back to your rack | daily.dev
og:description: A PowerShell-based approach lets an on-premise web application burst into Windows Azure during capacity spikes and scale back to local hardware afterward. The...
og:url: https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7
og:image: https://api.daily.dev/og/posts/n0v2cHBN7.png
og:image:alt: Scale-out to the cloud, scale back to your rack
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scale-out to the cloud, scale back to your rack

**[Maarten Balliauw](https://daily.dev/sources/maartenballiauw)** · 7 min read · 0 upvotes · 0 comments

## Summary

A PowerShell-based approach lets an on-premise web application burst into Windows Azure during capacity spikes and scale back to local hardware afterward. The script loads configuration settings, packages the local IIS-hosted application, deploys it to Azure using the Azure management CmdLets, and reconfigures IIS Application Request Routing (ARR) to redirect traffic to the cloud deployment. A downloadable zip with the full script is provided, and the author notes the approach works for any IIS-hosted site (ASP.NET, ASP.NET MVC, PHP) though the on-premise ARR server itself could become a new bottleneck.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.maartenballiauw.be/posts/2010-10-22-scale-out-to-the-cloud-scale-back-to-your-rack>

## Questions this post answers

### How can I automatically scale an on-premise IIS application out to Windows Azure during traffic spikes?

A PowerShell script can package the local IIS application files, deploy them to Windows Azure using the Azure management CmdLets, wait for the deployment to reach a running state, then reconfigure IIS Application Request Routing (ARR) by modifying the webFarms section via Microsoft.Web.Administration.ServerManager to point traffic at the new Azure URL and port.

_daily.dev surfaces practical scripting approaches for developers building their own cloud-bursting failover workflows._

### How do I update IIS Application Request Routing server pool entries programmatically?

Use the Microsoft.Web.Administration.ServerManager class to get the applicationHostConfiguration, retrieve the webFarms section and its collection, select the target web farm by index, then call SetAttributeValue on the server's address and the applicationRequestRouting child element's httpPort attribute, finishing with CommitChanges to apply the update.

_Developers automating IIS ARR failover routing can track these patterns via daily.dev._

## Similar posts on daily.dev

- [Running a production-like local environment with Aspire](https://daily.dev/posts/running-a-production-like-local-environment-with-aspire-7qzdip0aa) · Tim Deschryver · 0 upvotes · 0 comments
- [5 Mistakes Teams Make When Scaling .NET Applications](https://daily.dev/posts/5-mistakes-teams-make-when-scaling-net-applications-jeilk21xw) · Telerik · 5 upvotes · 0 comments

---

Tags: [#powershell](https://daily.dev/tags/powershell)

[View this post on daily.dev](https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Scale-out to the cloud, scale back to your rack","url":"https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7"},"datePublished":"2026-10-04T13:04:56.965Z","dateModified":"2026-10-04T13:06:31.996Z","description":"A PowerShell-based approach lets an on-premise web application burst into Windows Azure during capacity spikes and scale back to local hardware afterward. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5528cb53b63c420598a3441398c409d1?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/5528cb53b63c420598a3441398c409d1?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Maarten Balliauw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Maarten Balliauw","logo":"https://media.daily.dev/image/upload/s--rOTg3VYO--/f_auto,q_auto/v1791119043/logos/maartenballiauw?_a=BAMAMicg0","url":"https://daily.dev/sources/maartenballiauw"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"powershell","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Maarten Balliauw","item":"https://daily.dev/sources/maartenballiauw"},{"@type":"ListItem","position":3,"name":"Scale-out to the cloud, scale back to your rack"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/scale-out-to-the-cloud-scale-back-to-your-rack-n0v2chbn7#faq","mainEntity":[{"@type":"Question","name":"How can I automatically scale an on-premise IIS application out to Windows Azure during traffic spikes?","acceptedAnswer":{"@type":"Answer","text":"A PowerShell script can package the local IIS application files, deploy them to Windows Azure using the Azure management CmdLets, wait for the deployment to reach a running state, then reconfigure IIS Application Request Routing (ARR) by modifying the webFarms section via Microsoft.Web.Administration.ServerManager to point traffic at the new Azure URL and port. daily.dev surfaces practical scripting approaches for developers building their own cloud-bursting failover workflows."}},{"@type":"Question","name":"How do I update IIS Application Request Routing server pool entries programmatically?","acceptedAnswer":{"@type":"Answer","text":"Use the Microsoft.Web.Administration.ServerManager class to get the applicationHostConfiguration, retrieve the webFarms section and its collection, select the target web farm by index, then call SetAttributeValue on the server's address and the applicationRequestRouting child element's httpPort attribute, finishing with CommitChanges to apply the update. Developers automating IIS ARR failover routing can track these patterns via daily.dev."}}]}
```

