Cloud Service Deployment Parametrisation

James Skimming's Avatar

James Skimming

28 Jul, 2014 05:24 PM

Can the deployment of Cloud Services be parametrised in the same way as a WebDeploy?

We store sensitive information in the service configuration (connections strings for SQL and Storage Accounts), and while cloud services have a built in mechanism for encrypting RDP passwords in settings (analagious the to AppVayopr's secure environment variables), I know of no such way to encrypt normal Service Configurations settings. As a result our current cloud service deployment procedure has a manual step to update the service configuration post upload (while in staging).

I can wee that an AppVeyor Deployment Environment for a cloud service has environment variables, but the documentation makes no mention of them.

Can we use these environment variables to update the service configuration upon deployment? If not, do you know of an alternative?

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Jul, 2014 05:39 PM

    Feodor Fitsner's Avatar

    I see. It's not yet there, but it could be easily implemented. What if we find an environment variable with the same name as setting in .cscfg file we will substitute its value from that variable? To address specific role you would need to use <role-name>.<setting-name>.

  2. 2 Posted by James Skimming on 28 Jul, 2014 06:07 PM

    James Skimming's Avatar

    That would work great.

    Given your previous turn around time. Can I expect it ready when I wake up tomorrow :-)

  3. Support Staff 3 Posted by Feodor Fitsner on 28 Jul, 2014 06:14 PM

    Feodor Fitsner's Avatar

    :) should find a good window for deployment

  4. 4 Posted by James Skimming on 28 Jul, 2014 08:37 PM

    James Skimming's Avatar

    Ship it

  5. Support Staff 5 Posted by Feodor Fitsner on 30 Jul, 2014 01:41 PM

    Feodor Fitsner's Avatar


    It's been deployed! Give it a try and let me know about results.

  6. 6 Posted by James Skimming on 30 Jul, 2014 01:44 PM

    James Skimming's Avatar

    Great thanks, I'll feed back ASAP :-)

  7. 7 Posted by James Skimming on 31 Jul, 2014 10:24 AM

    James Skimming's Avatar

    Hi environment variables as settings seems to work great, I've tested both <setting-name> and <role-name>.<setting-name> option, I'll test it soon with one of our deployments that have multiple roles.

    I wasn't able to specify the Target profile I'm receiving the following error:

    "XXX.XXX.XXX.XXX" target profile not found.

    The value I specify does match the file name of the artefact file.

    Do you want me to raise this as a separate problem?

  8. Support Staff 8 Posted by Feodor Fitsner on 31 Jul, 2014 10:26 AM

    Feodor Fitsner's Avatar

    Hi James,

    You should specify the part before .cscfg extension, for example if config file is MyApp.Cloud.cscfg you should specify just Cloud. However, we'll improve the code to allow file names too to avoid confusion.

  9. 9 Posted by James Skimming on 31 Jul, 2014 11:17 AM

    James Skimming's Avatar

    That got it, thanks.

  10. 10 Posted by James Skimming on 11 Sep, 2014 08:14 AM

    James Skimming's Avatar

    Just providing an update. We've been using it for about a month now and it is working great.

    Thanks again.

  11. James Skimming closed this discussion on 11 Sep, 2014 08:15 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac