Book Image

Learning Microsoft Azure

By : Geoff Webber Cross, Geoff Webber-Cross
Book Image

Learning Microsoft Azure

By: Geoff Webber Cross, Geoff Webber-Cross

Overview of this book

Table of Contents (19 chapters)
Learning Microsoft Azure
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Deploying web packages to Azure


Now that we've got a package built on the build server, we'll deploy it to Azure using the following procedure:

  1. Create a website in the portal for one of the environments; I've called mine http://azurebakery-test.azurewebsites.net/.

  2. Download the publish profile from the website's dashboard, and open it in Visual Studio (you can press Ctrl + E, D to quickly format it).

  3. Unzip the drop package (make sure you unblock it first from the file properties) and copy the MyWebsite_Package folder to a temporary folder to make it easier to deploy.

  4. Locate the following parameter in the MyWebsite.SetParameters.xml file:

    <setParameter name="IIS Web Application Name" value="Default Web Site/CustomerWebsite_deploy" />
  5. Change the value to the name of the website created in the portal, like this:

    <setParameter name="IIS Web Application Name" value="azurebakery-test" />
  6. Open a Visual Studio command prompt and change the directory to the MyWebsite_Package location (use cd\...