Octopus to support azure China

Hi there,
Is it possible for octopus to support azure China?

I am to deploy cloud service to azure China.

https://github.com/Azure/azure-powershell, in this page, it is possible to switch to azure China by :
Add-AzureRmAccount -EnvironmentName AzureChinaCloud

use the cmdlets to manage your services/applications

New-AzureRmResourceGroup -Name myresourceGroup -Location “China East”

But how to do in octopus interface?



Hi Chiesa,

Thank you for contact us, at the moment we do not support switching to Azure China, however you can add that as a suggestion on our UserVoice site (https://octopusdeploy.uservoice.com/). It is likely that support for that will come when we add support for on-premise Azure cloud.

However, you do have some options to get it working. You could use script steps and write the required deployment powershell steps yourself.

Another option is to use a customised version of Calamari (https://github.com/OctopusDeploy/Calamari). If you choose to go down this route, I can point you to the likely places that the code needs to change.

Robert W

Yes, I would like to try Calamari, could you give me a little guide? Thanks in advance, Robert.

Hi Chiesa,

The repository (https://github.com/OctopusDeploy/Calamari) readme details how you can build and use a custom version of Calimari.

The DeployAzureWebCommand is the command invoked on a Azure Web deployment step. Towards the end of the file is a list of conventions, which are the steps that Calamari will undertake for that command. I think the ones of interest to you are the AzureWebAppConvention and ConfigureAzureCloudServiceConvention (in Calamari.Azure project Deployment\Conventions folder).

The AzurePackageUploader uploads the files to blob storage, so you will need to add a parameter in the second position in the CloudStorageAccount constructor to specify either the Azure China endpointSuffix or the blobStorageUri.

The scripts in the Calamari.Azure project, Scripts folder will also need to be modified, perhaps only the AzureContext.ps1 file.

Please let me know how you go, or if you have any further questions. If you do get it working, and are able to share your code changes, please point me to the github fork.

Hope that helps

Robert W

@chiesa.du Did you manage to get it working ? If yes, could you please point me to the github fork. If not, I am planning to try this out as we have similar needs

Dear Sabari,

We didn’t try it out as we don’t have enough knowledge on this area.


Best Regards,

Chiesa Du
m. +86 1852 1060 920

发件人: Sabari [mailto:tender2+de64dd64d0@tenderapp.com]
发送时间: 2016年8月16日 20:37
收件人: Du, Chiesa, arvato systems China
主题: Re: octopus to support azure China [Problems #45517]

@Rober Wagner. I have made changes to support any AzureCloud environment and the github fork is @ https://github.com/ponsakthi/Calamari . Please let me know the further steps.


Awesome! Could you create a pull request and we’ll review it.


Raised pull request.https://github.com/OctopusDeploy/Calamari/pull/117


Thank you very much, we’ll look at merging it soon.



This issue has been closed due to inactivity. If you encounter the same or a similar issue and require help, please open a new discussion (if we asked for logs or extra details in this thread, consider including them in the new thread). If you are the creator of this thread and believe it should not be closed let us know via our support email.