Azure Subscription file management

I’m deploying to Azure WebSites through WebDeploy step, so info about the Web-Services is not applicable unfortunately.

I need to run some Azure PowerShell scripts and for that I need to authenticate myself. Usually this is done through command

Import-AzurePublishSettingsFile ('C:\My\Path\To\SubscriptionCredentials.publishsettings')
Select-AzureSubscription -SubscriptionName 'MySubscriptionName'

What is the best way to manage that subscription file? it contains sensitive certificate information that I don’t want to include in octopack as it is not a part of deployment anyway.
Should I just copy this file to the tentacle machine manually and hard-code the path? is there a better way for this? I’m not fond of this file lying around not protected as this is a master-key to all our servers/web-sites.

Many thanks,

Hi Trailmax,

Thanks for getting in touch! For now, you’ll need to set up the subscription on the Tentacle manually, then you can just select it in your scripts.

In Octopus 3.0 we’ll be improving this, we’ll set up a subscription for you which will be automatically selected.

Hope this helps,


Thanks for confirmation, Paul.
That’s great news about new version. Looking forward to get started with it!