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:
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 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:
In the project's process add a new Deploy an Azure Cloud Service step:
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:
Save the step and create a release for your project. Deploy the release to the Staging environment:
Grab a coffee and by the time you get back your application should be deployed to the staging slot of your Azure Cloud Service.