Azure, Cloud Computing

4 Mins Read

A Guide for Moving Disks to Cold Storage

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
Get Started

Three main steps make up the process

  1. 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.
  2. Creating SAS token for the destination storage account: This token enables controlled access to the storage account where the disk data will be moved.
  3. 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

step1

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.

step1b

Click on “Generate URL.”

Copy the provided URL; this serves as your Disk SAS URL.

step1c

Copy the provided URL; this serves as your Disk SAS URL.

step1d

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.

step2

Generate SAS Token:

Under “Settings,” navigate to “Shared access signature.”

Specify the permitted services (Blob, File, etc.), resource types, and permissions (Read, Write, etc.).

step2b

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.

step2c

Additionally, copy the blob storage location.

step2d

step2e

Step 3: Move Disk to Cold Storage (Convert to Block Blob)

Execute AzCopy Command:

Utilize the following command, substituting placeholders with actual values:

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:

Now Run the above command in azure cloud cli

step2f

We must change the tier to cold storage after moving the unallocated disk to blob storage.

Change Tier to Cold Storage:

step2g

Select the disk to move to cold storage.

Choose “Change tier.”

Change the storage to the cold tier.

Save.

Conclusion

Transitioning disks to cold storage within Azure presents a substantial opportunity for slashing storage costs associated with infrequently accessed data. Leveraging AzCopy for transfer, SAS URLs for secure access, and tier adjustments ensures a secure and efficient process, making the most of Azure’s robust data management capabilities.

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
Get Started

About CloudThat

CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.

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 Shakh is a Sr. Research Associate – Cloud Engineer at CloudThat with a strong background in AWS and Azure infrastructure management, security, optimization, and automation. Certified in both AWS and Azure, he has hands-on experience in designing, implementing, and managing highly reliable, secure, and scalable cloud solutions. Well-versed in DevOps practices and tools such as Git, GitHub, AWS CI/CD, Jenkins, Docker, Kubernetes, and Terraform, Fariyaj leverages his expertise in automation, Infrastructure as Code (IaC), and container orchestration to build and manage robust deployment pipelines. Known for his strong troubleshooting skills, he delivers effective and scalable solutions to complex cloud challenges.

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!