Azure / azure-storage-cpplite

Lite version of C++ Client Library for Microsoft Azure Storage
MIT License
25 stars 43 forks source link

Need create snapshot API for unmanaged disks #80

Open majumd opened 4 years ago

majumd commented 4 years ago

Hi, The storage client library thick version has an API to create a snapshot of a blob. azure::storage::cloud_page_blob m_blob = m_blob.create_snapshot()

This API is helpful to create snapshot of unmanaged VHDs attached to a virtual machine. Does the lite version has a similar API to create snapshots of unmanged VHDs present in a container and attached to a virtual machine?

Jinming-Hu commented 4 years ago

Hi @majumd , this cpplite sdk doesn't support page blob yet, and the namespace is like azure::storage_lite::. Are you sure snapshot feature would help in your scenario?

majumd commented 4 years ago

I am able to use the snapshot feature of the Azure Storage C++ client library(thick) version. (https://github.com/Azure/azure-storage-cpp) The thick version has a snapshot feature which helps to take a snapshot of the blob https://azure.github.io/azure-storage-cpp/classazure_1_1storage_1_1cloud__blob.html#a25903b80d59053f731e61e748db0cd82

We would like to take a backup of the blob and hence take a snapshot of the blob before the backup process. The blob has active writes and a snapshot is required to have a copy of a given point-in-time.

However, we are facing difficulties due to the dependencies of the thick version and would like to move to the lite version. A snapshot feature of the blob would help us to use the lite version.

Jinming-Hu commented 4 years ago

@majumd I understand your needs here, i've added this feature request to our backlog. But I afraid we cannot finish this in a short time. Because snapshot support isn't a small feature. If we support taking snapshots, we also need to support some way to download the snapshots.

snehalw777 commented 4 years ago

@JinmingHu-MSFT We can understand that the feature support needs the time, but can you please give any timeline about how much time would it take to support the snapshot feature?

Jinming-Hu commented 4 years ago

@snehalw777 Sorry I cannot give a timeline for that.

We're now actively working on Track2 cpp sdk link, which is supposed to replace both cpp and cpplite sdk in the future. We're going to have the first private preview in a few days. Snapshot is supported in that preview release.

snehalw777 commented 4 years ago

Thanks for the reference @JinmingHu-MSFT

We can surely check for the Track2 cpp sdk, but when can we expect the preview release for this SDK?

Jinming-Hu commented 4 years ago

@snehalw777 i'm gonna reply here once it's available.

Jinming-Hu commented 3 years ago

Track2 beta1 is available here