Using Publish to Deploy Azure Cloud Service
Join the DZone community and get the full member experience.Join For Free
in my previous post i created an azure cloud service from scratch and deployed it, however i manually logged into azure portal and uploaded the packages.
@cloudnick commented saying that i could that you can use publish directly from visual studio. so!
publishing from visual studio directly to azure
using the exact same setup as yesterday, rightclick the myworker project and select publish.
sign in to download crentials
this will take you to a webpage where you can sign into your windows live account that has your azure subscriptions, with some instructions. the file will download automatically.
now go back to visual studio and import the file.
this will open a new screen with some options, it will pre-select any existing cloud service you have, or you can create a new one by dropping down the menu and selecting ‘create new…’ if you don’t already have one created you can create a new one.
i’m going to select the existing one.
view the summary to save the profile, that way you can re-use it for future deployments. if you press save and want to rename it, you can drop the menu down and select manage, then you can modify the name.
if all is successful, visual studio will open up a windows azure acvitity log which will show you the deployment process.
this process takes a little while, i guess it depends on your internet connection, i’m on a pretty fast connection but i’m in singapore, so latency is quite a bit to the us.
infact it took a about 3 minutes to deploy, for most of that time it looked like.
but don’t worry, if you leave it long enough, eventually it will end up like.
and that’s it, now checking ravenhq again.
so to avoid ever even having to login to azure portal, you can create and publish a cloud service all from within visual studio.
Published at DZone with permission of Phillip Haydon. See the original article here.
Opinions expressed by DZone contributors are their own.