Cloud Service Deployment Parametrisation
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?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Feodor Fitsner on 28 Jul, 2014 05:39 PM
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 Posted by James Skimming on 28 Jul, 2014 06:07 PM
That would work great.
Given your previous turn around time. Can I expect it ready when I wake up tomorrow :-)
Support Staff 3 Posted by Feodor Fitsner on 28 Jul, 2014 06:14 PM
:) should find a good window for deployment
4 Posted by James Skimming on 28 Jul, 2014 08:37 PM
Support Staff 5 Posted by Feodor Fitsner on 30 Jul, 2014 01:41 PM
James,
It's been deployed! Give it a try and let me know about results.
6 Posted by James Skimming on 30 Jul, 2014 01:44 PM
Great thanks, I'll feed back ASAP :-)
7 Posted by James Skimming on 31 Jul, 2014 10:24 AM
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:
The value I specify does match the file name of the artefact file.
Do you want me to raise this as a separate problem?
Support Staff 8 Posted by Feodor Fitsner on 31 Jul, 2014 10:26 AM
Hi James,
You should specify the part before .cscfg extension, for example if config file is
MyApp.Cloud.cscfg
you should specify justCloud
. However, we'll improve the code to allow file names too to avoid confusion.9 Posted by James Skimming on 31 Jul, 2014 11:17 AM
That got it, thanks.
10 Posted by James Skimming on 11 Sep, 2014 08:14 AM
Just providing an update. We've been using it for about a month now and it is working great.
Thanks again.
James Skimming closed this discussion on 11 Sep, 2014 08:15 AM.