Azure Deploy Cloud App step - Creation of .cskpg files before octopack


I have an app that is hosted in Azure as a Cloud App. The Project builds using the following MSBuild commands:

/p:Configuration=Release /p:DeployOnBuild=true /p:DeployTarget=Package /p:RunOctoPack=true

However the output of the Octopacked file is not a .cskpg. Meaning that it cannot be deployed via the Deploy Cloud app step?

Is the an MSBuild command that I missing to do this as there is no reference to this in the documentation.



Hi Daniel,

Thanks for getting in touch. Unfortunately, octopack can’t be used to package Azure cloud services. The cspkg packages need to be built first and then wrapped in a NuGet package. The following documentation pages covers this a bit better. The Azure Cloud service guide is excellent!

One thing to note is that there are more options to do this in Octopus 3.3 (currently in beta) as we’ve added support for ZIP and a number of other package formats. The following documentation page has more on this.

Hope this helps.