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?


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 has good command line support ( 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)

Hope that helps!


More about…7-zip