Anand R
Anand R

Reputation: 21

Azure Cloud service

We are using azure cloud service to publish our application. For major changes we will publish by creating and uploading packages, but for minor changes we are moving the corresponding dll to instance by taking remote machine.

We will move the dll to the folder under site root.

Our problem is that two days back we noticed whatever the changes done through incremental (i.e. by copying dll) has been lost and the folders we kept in the desktop also lost.

Upvotes: 1

Views: 94

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136356

This is expected behavior. Please note that Azure Cloud Services are stateless. What that means is that if for some reason Azure needs to recreate the VM that is running your code, it will use the last package file you used to create the VM.

In your case, you're manually changing the files by RDPing into these VMs and these changes are only persisted till the time that VM is alive. If the VM is decomissioned for some reason and Azure needs to create a new VM for your cloud service, your changes will be discarded.

Please see this link for more details: https://blogs.msdn.microsoft.com/kwill/2013/09/05/how-to-modify-a-running-azure-service/.

Upvotes: 5

Related Questions