0
votes

I'm wondering if is possible to change currently running enviroment in CloudService(later CS) into VirtualMachine(later VM) deployment in Windows Azure without losing the assigned VIP in CS? Meaning that the VM would get the IP currently assigned to CS.

I'm aware that nowadays user can reserve public IP using the Azure PowerShell, could my goal be achieved somehow using that? Is it possible to reserve IP which is in use on CS deployment and then just undeploy and build VM environment using the reserved IP?`

Any way to deploy VM instance into CS Staging slot and then just swap VIP?

1

1 Answers

1
votes

In your concrete scenario - no.

First, because you cannot deploy VM and PaaS Roles in the same cloud service. This is by design.

Secondly, as per documentation here, there a few limitations to the Reserved IP Address as of today:

  • You must reserve the IP address first, before deploying.
  • At this time, you can’t go back and apply a reservation to something that’s already been deployed.

In theory you could:

  1. Create an Empty Cloud service (without deployment)
  2. Reserve a Public IP Address for this deployment
  3. Deploy PaaS Role (web/worker)
  4. Delete deployment from the cloud service
  5. Deploy VM in the same cloud service

Then your VM deployed in step 5 would have same VIP as your cloud service deployed in step 3. This is the only way today to have same VIP for PaaS Role and VM while transitioning from one to the other.