Getting Started with Azure Cloud Services

Last updated

This guide will help you deploy your first Azure Cloud Service application using Octopus Deploy.  This guide assumes some familiarity with Octopus. If you are just starting out please see the general getting started guide.

In order to complete this guide you will need to have an Azure account and create an Azure Cloud Service and Azure Storage Account. Please refer to the Azure documentation for completing these steps.  In this guide the Cloud Service is called hello-octopus and the storage account is called octostore.

Create a Package

You will need a NuGet package containing the Azure Cloud Service application you want to deploy.  The NuGet package contains the .cspkg and .cscfg files that are published from Visual Studio. Here is one we prepared earlier that you can use for this guide: HelloCloud.1.0.0.nupkg

Upload your NuGet package to the Octopus built-in package repository:

Package feed

Create an Account

To set up a new Azure Management Certificate account, follow the directions in Creating an Azure Management Certificate Account.

Create an Environment

In order to deploy a Cloud Service we require an Octopus environment to deploy to. Cloud Services have slots which map nicely to environments. Create a new environment called "Staging":

Create environment

Create a Project

Now have the NuGet package we want to deploy, the account we are going to use for the deployment and an environment to deploy to, all we need is a project to do all the work.  Create a new project:

Create project

In the project's process add a new Deploy an Azure Cloud Service step:

Cloud Service step template

Select the NuGet package that you are going to deploy and the Azure account to use for the deployment. The settings for this step should look something like this:

Cloud Service Step Template

Save the step and create a release for your project. Deploy the release to the Staging environment:

Deploy Cloud Service

Grab a coffee and by the time you get back your application should be deployed to the staging slot of your Azure Cloud Service.