Best way to deploy an azure batch apps package?

We’ve started using the Azure Batch Apps Service while it’s still in preview and we’d like to use octopus deploy to upload our cloud app and app image to the service.

We can directly upload our cloud app and application image to the blob storage container for our batch app service, so that’s the most promising way we’ve seen to deploy our batch app.

What we need help with (we’re pretty new to powershell and octopus) is how to accomplish this. Here’s what we think we need to do:

  1. Create an octopus package of the assemblies of the cloud app and the app image. We’ve done this already in team city
  2. On deployment, we need to update the app.config file to change a setting based off of the environment
  3. Zip up the cloud app and app image assemblies
  4. Upload them to bob storage.

Should steps 2 -> 4 be separate parts of our process or should it be a single powershell script?

Any pointers or examples showing how to do any of those steps?

thanks,
matt

Hi Matt,

Thanks for reaching out. Octopus could help you for steps 1-2. For 3-4 you’re gonna have to write scripts that Octopus will help you executing.

3- Zipping

7.zip has good command line support (http://www.dotnetperls.com/7-zip-examples). You could use Octopus Variables to resolve the path of your code to later on zip it

4 - Uploading to blob

You can use the cmdlet Set-AzureStorageBlobContent. This link will give you a complete walkthrough on how to use it (starting from step 3 of the link)

http://irisclasson.com/2014/05/07/creating-and-uploading-to-azure-blob-storage-with-azure-powershell/

Hope that helps!

Dalmiro

More about…7-zip

http://net-informations.com/q/mis/7zip.html

Gimmer