tag:help.appveyor.com,2012-11-13:/discussions/problems/4161-deploying-multiple-azure-cloud-servicesAppVeyor: Discussion 2018-08-25T02:04:27Ztag:help.appveyor.com,2012-11-13:Comment/391771182016-02-15T23:14:56Z2016-02-15T23:14:56ZDeploying multiple azure cloud services<div><p>Hi Mads,</p>
<p>Can you drop a screenshot of what you have on "Artifacts" page
of build results?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/391771182016-02-16T08:34:48Z2016-02-16T08:34:52ZDeploying multiple azure cloud services<div><p>Sure, here it is.</p>
<p>By the way I tried to download these and inspect them and they
seem to contain what they should. The RoleModel.xml inside the
cspkg's looks like the csdef's from the projects in Visual Studio.
Also, I tried to look at the cspkg's after they are uploaded to
Azure Blob Storage. First, during deployment of SchedulerService, I
see the SchedulerService.cspkg in the appropriate folder. I tried
to download and inspect it and it seems good to me. Then, after the
SchedulerService is deployed, its cspkg disappears and the
AsynchronousCrawler.cspkg appears. I also inspected it and it also
seems to be good.</p>
<p>One thing I'm wondering is: What cscfg file is validated against
during the second deployment? What is the powershell command that
is run by appveyor? If I knew, I could try and reproduce the error
on my own machine.</p></div>Mads Døruptag:help.appveyor.com,2012-11-13:Comment/391771182016-02-16T14:51:31Z2016-02-16T14:51:31ZDeploying multiple azure cloud services<div><p>Thanks. In deployment settings you should also specify
<code>target_profile</code> to use (i.e. cloud service
configuration):</p>
<pre>
<code>deploy:
- provider: AzureCS
...
deployment_label: $(appveyor_build_version)
artifact: SchedulerService.cspkg
target_profile: SchedulerService.cscfg
- provider: AzureCS
...
deployment_label: $(appveyor_build_version)
artifact: AsynchronousCrawler.cspkg
target_profile: AsynchronousCrawler.cscfg</code>
</pre></div>Feodor Fitsner