Anurag Tripathi
Anurag Tripathi

Reputation: 1208

Deploy service on existing VM

I want to handle some maintenance in existing VM, which is already hosting a website. So I created a web role and package it into .cspkg file. I didn't get any way to deploy this on existing VM. Lets say I don't have any no of remaining new instance of Vm I can create, and also I don't want to delete previously created one. I just want to add this in existing VM.
I actually want to mount a drive from blob storage. So I followed this link to create web role for it. Isn't it possible to do the same by creating a small .exe file with same logic to mount drive in c#. Which I can execute any time in VM and do what I want.

Upvotes: 0

Views: 98

Answers (1)

Yossi Dahan
Yossi Dahan

Reputation: 5357

If I understand your question correctly you have a web role deployed that you would like to update with a new package. This is possible, amongst other ways, through the admin portal. Select the cloud service you'd like to update and then your deployment slot (production or staging) and you would be able to click the update button on the bottom toolbar which would open a pop-up allowing you to provide a new package and config files.

Update dialog

A better option would be to deploy the new version to the staging slot, test it and then use VIP Swap to swap between staging and production making the latest package the 'live' one.

Upvotes: 1

Related Questions