The Wayback Machine - https://web.archive.org/web/20241127231540/https://www.geeksforgeeks.org/microsoft-azure-archive-azure-vm-to-azure-storage-account/
Open In App

Microsoft Azure – Archive Azure VM to Azure Storage Account

Last Updated : 30 Mar, 2023
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

In this article, we will be implementing a solution to archive a select azure VM snapshot to a select storage account for archiving using azure cloud shell. For implementation, we will be using Azure CLI commands.

Prerequisite:

  1. VM Snapshot
  2. A storage account is needed
  3. User needs “Storage Blob Contributor Data” IAM Role Access on Archiving Storage Account to perform the following operation.

VM Archive Implementation:  

Follow the below steps to archive Azure VM to Azure Storage Account: 

Step 1: Open Bash in Cloud Shell  

Step 2:  Use the following for Logging into the tenant.

azcopy login --tenant-id=<tenent_id>

This command returns the login url and login code. Use that code to log in.

Step 3: Now, click on the URL and Paste the Code to log in. 

Once you logged in close the tab and navigate back to cloud shell and follow the next steps.

Step 4:  Use this command to store the snapshot copy to the storage account container.

azcopy copy "<snapshot_export_url>" \
"https://<storageaccount_name>.blob.core.windows.net/<container_name>/<snapshot_name>.vhd" \
--blob-type BlockBlob

Fill up the details in the command. Add <snapshot export url>, Add <storage account name>,  Add Storage Account <container name>, Add <snapshot name>.

Step 5: Once done, go to the storage account container and change tier to Archive. That’s it!

Getting the Snapshot Export URL:

Follow the below steps to get the Snapshot export URL:

Step 1: Go to Snapshots from Azure Portal.

Step 2: Select the Snapshot which you want to archive.

Step 3: Navigate to Settings >> Access Snapshot export >> Click on Generate URL to generate a secure URL.


Previous Article
Next Article

Similar Reads

How to Setup a Azure Storage Account For Data Archive?
In this article, we will see how we should configure/setup and create an Azure storage account for data archive. This scenario should be implemented only for the infrequently accessed data and for data backups. To implement this scenario you should have an active Azure subscription and an azure server. You should also require blob contributor acces
2 min read
Microsoft Azure- Disk Storage in Microsoft Azure
Azure Disk Storage is the only shared cloud block storage that supports both Windows and Linux-based clustered or high-availability applications via Azure shared disks. There are two types of Disks in Azure : Managed Disks Unmanaged Disks.Managed DisksSimplest optionLower management overhead as Azure manages the storage accounts.Only LRS replicatio
6 min read
Microsoft Azure - Query Azure Storage Logs in Azure Monitor Log Analytics
Pre-requisite:- Azure Log Analytics is a tool offered by Azure, which is used to edit and run log queries against data in the Azure Monitor Logs store and helps interactively analyze their results. One can easily use Log Analytics queries to retrieve records that match particular criteria, identify trends, analyze patterns, and provide various insi
5 min read
Microsoft Azure - Connect to a Storage Account using Private Link
In this article we will learn how to securely connect to a Storage Account using private links. In this article, we are going to look into the new private link in the Azure Portal. And you could find that by searching. The good thing about the private link is that it allows your resources to communicate with each other along with the Microsoft back
3 min read
Microsoft Azure - Get Storage Account Information using Resource Graph
Prerequisite: Introduction to Microsoft Azure In this article, you will get to know how you can get information about azure storage accounts using the azure resource graph queries in a faster and simple way. The user should have read access to the management group subscriptions to fetch the data. Here, we run all the below following KQL queries in
2 min read
Types of Storage Account in Microsoft Azure
Pre-requisite: Storage Accounts In Azure, the term "Storage type" refers to the different types of storage services offered by Azure to store data. These types of storage services vary in their performance, durability, and cost characteristics, and are designed to meet specific data storage needs. The following are the main storage types in Azure:
5 min read
Microsoft Azure - Export the List of Azure Storage Services using KQL
Pre-requisite: Azure In this article, we will show you how to export the information of Azure Storage Services by using KQL (Kusto Query Language) resource graph query to retrieve within a subscription in simple and easy steps. We will be using Azure native service called Azure Resource Graph Explorer to retrieve the information. To retrieve the in
2 min read
Microsoft Azure - Concept of Blob Versioning in Azure Storage
In this article, we will learn how to use Blob versioning in Azure Storage. Azure Storage can automatically version Blobs for you. Let's see how that works. In the Azure portal, we already have an Azure Storage account. To use Blob versioning, we need to enable it from the "Data protection" menu of the Blob section. We just need to enable versionin
2 min read
Microsoft Azure - Add Storage Blob Owner Role Assignment For Azure AD User
In this article, you will see how you can add Storage Blob Owner role assignment for active directory users for granting permissions to operate on the storage account level and to grant permissions to other users within the storage account level. The main purpose of Storage Blob Data Owner is it allows for full access to Azure Storage blob containe
2 min read
Microsoft Azure - Hosting a Static Website with Azure Storage
Azure storage stores all types of data. It is mainly designed for storage where we can easily store both structured and unstructured data. In Microsoft Azure, you can easily upload your static website and share the link anywhere and anyone can see your website, you can manage your access control. Html, CSS, and JavaScript you can put your code on t
3 min read
Microsoft Azure - Mount Azure Storage in Container App In App Service
In this article, we are going to learn how to mount Azure Storage as a local share for App Services Linux web apps. Implementation: So to start the process of connecting to Azure Storage mount, you should click on configuration. Once you are inside the configuration blade, click on path mappings. Start by giving it a name. For eg name it s1share. A
3 min read
Microsoft Azure - Mounting Azure Storage in a Container App
In this article we will learn how to mount Azure Storage as a local share for App Services Linux web apps. In the given article we are going to demonstrate how to mount Azure Storage as a local share for a container app deployed on Azure App Services for Linux. So to start the process of connecting to Azure Storage mount, you click on configuration
3 min read
Microsoft Azure - Storage in Azure Cloud Shell
In this article, we will look into what really goes on underneath the covers as we demystify storage in the Azure Cloud Shell. The first time that you interact with the Azure Cloud Shell, it'll ask you to create an Azure storage account. It's going to use the storage account to persist any keys or any scripts that you might need whenever you're int
2 min read
Microsoft Azure - Using Blazor and C# to Host a Static Website in Azure Storage
Pre-requisite:- Azure Ever hosted a static website like a blog or a simple information website, That can be a hassle and expensive, Blazor is a cool, new feature of ASP.NET that allows you to build interactive web UIs using C# instead of JavaScript. And you can run your client-side C# code directly in the browser, using Web Assembly which is a stan
5 min read
How To Create Azure Storage Account Using Terraform ?
Cloud development has drastically altered the previously known reality of data storage and access, presently providing organizations of all sizes with scalable and cost-effective solutions. Microsoft Azure, one of the cloud computing platform's leading services, provides data storage, which is Azure Storage and is a strong and secure one. While cre
11 min read
Image and Video Storage with Azure Blob Storage: Media Applications
"Binary Large Object-Based Storage (BLOB)" stands for Binary Large Object. It is a storage type where files of any size and type can be stored, ranging from gigabytes to terabytes to petabytes and beyond. This seemingly infinite storage is unstructured and is distinct from databases or data warehouses. Types Of Azure Blob StorageBlock Blob: Used fo
11 min read
Optimizing Costs with Azure Blob Storage: Storage Tiers and Lifecycle Policies
Azure Blob Storage, a key component of Microsoft Azure, is a powerful service designed to store and manage massive amounts of unstructured data in the cloud. It offers various ways to optimize costs, including selecting appropriate storage tiers and implementing lifecycle policies. This article explores these cost optimization strategies to help bu
5 min read
Microsoft Azure- Backing Up, Restoring, and Cloning Microsoft Azure App Services
Microsoft is well known for developing relevant software which are using in today's time of technology to conquer the demand of users and developers to build up applications. In sequence of it Microsoft introduces Azure well known as Microsoft Azure to make quality applications. In this article, we will discuss Backing up, restoring and cloning Mic
8 min read
Microsoft Azure -Create a User in Microsoft Entra ID from Azure Portal
A user in Microsoft Entra ID is an individual who can get access to Azure identity. This Microsoft Entra ID identity can be used to access applications and resources that are protected within the organization or project. Users can be created manually or automatically, and they can be assigned to groups and roles to control their access permissions.
3 min read
Microsoft Azure - Get Azure VM Properties using Azure PowerShell
The purpose of using the Azure PowerShell Commands is to quickly analyze the overall properties of VM/VMs at once the filtering the with select and where conditions. To find the properties of an Azure VM, you can perform the following commands in Azure Cloud Shell to get the details. Command: Get-AzVM Output: 1. Get all properties of an Azure Virtu
2 min read
Microsoft Azure - RDP to Azure Virtual Machines using Azure Bastion
In this article, we will learn how to do RDP(Remote Desktop Protocol) / SSH(Secure Shell) Connection to an Azure VM using Azure Bastion. First, let's discuss Azure Bastion. The Azure Bastion service is a fully platform-managed PaaS service that you provision inside your virtual network. It provides secure and seamless RDP/SSH connectivity to your v
3 min read
Microsoft Azure - Configure Azure SQL with Azure CLI
In this article, we're going to take a closer look at how you can configure something like connectivity using the Azure CLI. What we have here is we are in Azure Data Studio and similar to the SQL notebook we are actually using a PowerShell notebook. That just means all our code cells are going to run PowerShell and we are just connecting to localh
4 min read
Microsoft Azure - Check Status of Azure VM using Azure PowerShell
The following Azure PowerShell command helps you to find the Azure VM Config and properties details of Os Name, Os Version, Hyper V Generation, Disks properties, Extensions properties of Type Handler Version, Status and Message, VM Agents properties of Type Handler Version, Status and Message and also VM Power Status Codes, Messages, Plugins, Time
3 min read
Microsoft Azure - Azure VM Disk Space in Percentage using Azure KQL
Here we'll be using the Azure Insights Metric Query to find the free disk space in percentage using KQL. The purpose of this query is to find disk drive free space of all the Azure VMs without logging into every server. You can Run the following KQL log Queries in Azure Monitor or Azure VM Logs or Log Analytics Workspace. Note: VM Insights Agent sh
1 min read
Microsoft Azure - Enable Azure Monitor VM Insights Agent For Azure VM
Azure Monitor VM Insights Agent enables you to get more visibility into the health and performance of your Azure VM. Here we'll see how we can enable Azure Monitor VM Insights to monitor the health, performance, and dependencies of azure virtual machines. Implementation: Follow the below steps to enable Azure Monitor VM insights agents for an Azure
2 min read
Microsoft Azure - Azure CLI Commands to Manage Azure VMs
Azure Command-line interface is used to manage or to create Azure resources. By using the simple AZ CLI command we can manage Azure VM quickly and at a Scale. Let's get started by using a few important Azure CLI commands to manage Azure Virtual Machines. 1. Start a Specific Stopped VM in a Select Resource Group Use the below command to start a spec
2 min read
Microsoft Azure - Manage Azure VMs using Azure PowerShell Commands
Here we are using Azure PS Commands to manage azure resources from Azure Cloud Shell or by using Windows PowerShell. By using the simple AZ PS command we can manage Azure VM Quicks without any efforts of navigating in Azure Portal and at Scale. Let's get started by using the major Azure PS commands to manage Azure Virtual Machine. 1. Start a Specif
2 min read
Microsoft Azure - Install Azure Command Line Interface (Azure CLI)
Azure CLI is a very powerful tool that can be used to automate tasks, create, update, manage or delete azure resources or to troubleshoot problems with az module cmdlets. By installing az modules on your system or on your development system you and your development team can easily create, update or manage Azure AD and Azure resources such as manage
4 min read
Microsoft Azure - Get CPU Utilization Data of a Azure VM in Azure Portal
Azure Virtual Machines (VM) is one of several types of on-demand, scalable computing resources that Azure offers. In this article, we will look into the process of getting the CPU Utilization data of an Azure VM in Azure Portal. Implementation:Follow the steps to get the CPU Utilization of an Azure VM in Azure Portal: Step 1: Log in to your Azure P
2 min read
Microsoft Azure - Storage Accounts
Azure Storage Account is a storage account that is a resource that acts as a container that groups all the data services from Azure storage (Azure blobs, Azure files, Azure Queues, and Azure Tables). This helps us manage all of them as a group. The policies we specify while creating the storage account or making changes after the creation applies t
6 min read
three90RightbarBannerImg