Rollback quotes in Azure window

I'm new to Azure, I have a small instance of a cloud service. Over the past week, my copy has changed 2 times, and all my project data has been lost, and it will return 1 month earlier. All my client data is lost, is there any way to recover this data and why this problem occurs.

+4
source share
2 answers

There is no way to recover your data, and there is no way to prevent this. This is by design.

Whenever your computer crashes or the system is updated, it is completely wiped off. A new system image will be copied, the machine will boot again, and your application will be copied. Azure Cloud Services is a platform as a service (PaaS).

This gives you two possibilities. The first would not be to store persistent data in a cloud service in the first way. This is not suitable for Azure Cloud Services. Instead, save your data in an Azure Storage or Azure SQL database (or anywhere).

Another option is to use a virtual machine instead of a cloud service. This car is completely in your hands. It is your responsibility to update it, keep it safe and do everything possible to make it work. With this approach, you also need to take care of the balancer, several instances, etc., Therefore, scaling becomes much more difficult. This is infrastructure as a service (IaaS).

So, it really depends on what you want to do.

+4
source

Cloud instances have no state, which means that everything that you saved on local storage for virtual machines can and will be deleted in the event of a node failure or system update or even a new deployment of the package you are downloading.

A few things you can do:

  • If you need to add additional files or configurations to your project after deployment, use OnStart () to execute it. This ensures that with every deployment or recovery failure, you will get the same environment that you have always been in.
  • In order not to lose the source code, I recommend that you establish the source control and integrate it with the implementation of the cloud instance. You can do this with Git or with the Team Foundation Service (checkout tfspreview.com).
  • If you need to store files on the server, such as assets or client-updated media, consider using Azure Blob Storage. The Blob repository is replicated both locally to the data center and is geo-replicated to other data centers if you decide to do this.

Hope that helps

+1
source

All Articles