Voiced by Amazon Polly |
Introduction
This guide offers a detailed walkthrough for transitioning managed disks within Azure to cold storage, an economical solution ideal for housing seldom-accessed data like backups and archival materials. Organizations can substantially reduce storage expenses by opting for cold storage despite the longer retrieval times compared to hotter or cooler storage tiers.
Pioneers in Cloud Consulting & Migration Services
- Reduced infrastructural costs
- Accelerated application deployment
Three main steps make up the process
- Generating a Shared Access Signature (SAS) URL for the source disk: This URL provides secure, temporary access to the disk data without exposing account keys.
- Creating SAS token for the destination storage account: This token enables controlled access to the storage account where the disk data will be moved.
- Using AzCopy to transfer the disk data and changing the storage tier to cold: AzCopy is a powerful command-line tool that facilitates data transfer between storage accounts, ensuring efficient and reliable movement of large amounts of data.
Through adherence to this guide, entities may guarantee safe and effective data transfers by utilizing Azure’s integrated capabilities and resources. Data security and integrity can be preserved during transfer by properly managing SAS tokens and utilizing AzCopy. A crucial procedure for cloud data lifecycle management, switching the storage tier to cold also aids in cost optimization.
Step-by-Step Guide
Step 1: Generate Disk SAS URL
Navigate to the Azure Portal:
Open the Azure portal.
Locate the Disk:
Navigate to “All resources” or utilize the search function to find the desired managed disk
Generate SAS URL:
Select the disk from the list.
Within the disk’s overview blade, click the “Export” button at the top.
Define the expiration time for the SAS URL.
Click on “Generate URL.”
Copy the provided URL; this serves as your Disk SAS URL.
Copy the provided URL; this serves as your Disk SAS URL.
Step 2: Generate Storage SAS Token for Destination
Navigate to the Azure Portal:
Open the Azure portal.
Locate the Storage Account:
Head to “Storage accounts” and choose the storage account designated for the disk’s relocation.
Generate SAS Token:
Under “Settings,” navigate to “Shared access signature.”
Specify the permitted services (Blob, File, etc.), resource types, and permissions (Read, Write, etc.).
Set the start and expiration time.
Verify that the option “Generate SAS and connection string” is chosen.
Copy the SAS token that appears in the “SAS token” box.
Additionally, copy the blob storage location.
Step 3: Move Disk to Cold Storage (Convert to Block Blob)
Execute AzCopy Command:
Utilize the following command, substituting placeholders with actual values:
1 |
azcopy cp "Disk-sas-URL” "https://<destination-storage-account>.blob.core.windows.net/<destination-container>/<destination-blob>?<destination-sas-token>" --blob-type=PageBlob |
Replace the placeholders with actual values:
<Source-Disk-sas-URL>: The SAS URL generated for the source.
<destination-storage-account>: The destination storage account name.
<destination-container>: The destination container name.
<destination-blob>: The destination blob name.
<destination-sas-token>: The destination’s SAS token
Example:
1 |
azcopy cp "https://md-hdd-cjsc33dlzzc1.z9.blob.storage.azure.net/gsbckzz1sskt/abcd?sv=2018-03-28&sr=b&si=d6d781b3-9a59-4e2b-8021-d8ff8602272a&sig=xc%2BTGzGQd5OvTLErCXBI0PR6wtWC%2Fr3NVDYn4Caue%2BY%3D" "https://fariyajstorageaccount.blob.core.windows.net/blobstorage/disk123.vhd?sv=2022-11-02&ss=bfqt&srt=sco&sp=rwdlacupiytfx&se=2024-05-25T16:03:10Z&st=2024-05-25T08:03:10Z&spr=https&sig=Fv5OdLHIzZd9iaJcWxEYi66U1yuGCsJz93DQ6HUqEBo%3D" --blob-type="BlockBlob" |
Now Run the above command in azure cloud cli
We must change the tier to cold storage after moving the unallocated disk to blob storage.
Change Tier to Cold Storage:
Select the disk to move to cold storage.
Choose “Change tier.”
Change the storage to the cold tier.
Save.
Conclusion
Drop a query if you have any questions regarding Azure and we will get back to you quickly.
Making IT Networks Enterprise-ready – Cloud Management Services
- Accelerated cloud migration
- End-to-end view of the cloud environment
About CloudThat
CloudThat is a leading provider of Cloud Training and Consulting services with a global presence in India, the USA, Asia, Europe, and Africa. Specializing in AWS, Microsoft Azure, GCP, VMware, Databricks, and more, the company serves mid-market and enterprise clients, offering comprehensive expertise in Cloud Migration, Data Platforms, DevOps, IoT, AI/ML, and more.
CloudThat is recognized as a top-tier partner with AWS and Microsoft, including the prestigious ‘Think Big’ partner award from AWS and the Microsoft Superstars FY 2023 award in Asia & India. Having trained 650k+ professionals in 500+ cloud certifications and completed 300+ consulting projects globally, CloudThat is an official AWS Advanced Consulting Partner, Microsoft Gold Partner, AWS Training Partner, AWS Migration Partner, AWS Data and Analytics Partner, AWS DevOps Competency Partner, Amazon QuickSight Service Delivery Partner, Amazon EKS Service Delivery Partner, AWS Microsoft Workload Partners, Amazon EC2 Service Delivery Partner, and many more.
To get started, go through our Consultancy page and Managed Services Package, CloudThat’s offerings.
FAQs
1. What is a SAS URL, and why is it necessary?
ANS: – A Shared Access Signature (SAS) URL grants temporary, secure access to Azure resources without exposing account keys, which is crucial for controlled disk and storage account access during transfers.
2. How do hot, cool, and cold storage tiers in Azure differ?
ANS: – Hot storage caters to frequently accessed data, and cool storage accommodates infrequently accessed but immediately available data. In contrast, cold storage serves rarely accessed data with minimal availability requirements, offering the most economical storage solution.
WRITTEN BY Shaikh Mohammed Fariyaj Najam
Mohammed Fariyaj Shaikh works as a Research Associate at CloudThat. He has strong analytical thinking and problem-solving skills, knowledge of AWS Cloud Services, migration, infrastructure setup, and security, as well as the ability to adopt new technology and learn quickly.
Click to Comment