0% found this document useful (0 votes)
8 views1 page

Microsoft Azure - Azure Managed Disk State Details Using PowerShell

This article explains how to use Azure PowerShell commands to fetch the state of Azure Managed Disks, including Unattached, Attached, and Reserved states. It provides step-by-step instructions for logging into the Azure Portal and executing specific commands to list the properties of the disks. The document serves as a guide for managing Azure VM disk states effectively.

Uploaded by

animillasekhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Microsoft Azure - Azure Managed Disk State Details Using PowerShell

This article explains how to use Azure PowerShell commands to fetch the state of Azure Managed Disks, including Unattached, Attached, and Reserved states. It provides step-by-step instructions for logging into the Azure Portal and executing specific commands to list the properties of the disks. The document serves as a guide for managing Azure VM disk states effectively.

Uploaded by

animillasekhar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Search...

DevOps Lifecycle DevOps Roadmap Docker Tutorial Kubernetes Tutorials Amazon Web Services [AWS] Tutorial AZURE Tutorials GCP Tutorials Docker Cheat sheet Kubernetes cheat sheet AWS interview q

Next Article: Microsoft Azure - Azure Managed Disk State Details using
Microsoft Azure - Mount PowerShell
Azure Storage in Contain…
Last Updated : 30 Mar, 2023

In this article, we will try to understand how we can fetch the VM Disk State by using the
Azure PowerShell Commands. With the help of the Azure PowerShell Commands, we will
be finding the Managed Disk State of Unattached, Attached, and Reserved of all the Azure
VM Disks within Subscription.

Implementation:

Follow the below steps to get azure managed disk state details using Powershell:

Step 1: Log in to Azure Portal.

Step 2: Navigate to Cloud Shell icon and Open Cloud Shell >> then, select PowerShell

Step 3: Executed the below commands to list out the complete properties of Azure
Managed Disks

Fetch Azure Managed Disks Details using Azure Cloud Shell/Azure PowerShell

Use the below command to list the details of Unattached Disks:

Get-AzDisk `
| Select-Object -Property Name,ResourceGroupName,Type,DiskSizeGB,DiskState `
| Where-Object -Property DiskState -eq “Unattached”

Output:

Use the below command to list the details of the Attached Disks:

Get-AzDisk `
| Select-Object -Property Name,ResourceGroupName,Type,DiskSizeGB,DiskState `
| Where-Object -Property DiskState -eq “Attached”

Output:

Use the below command to list the details of Reserved Disks:

Get-AzDisk `
| Select-Object -Property Name,ResourceGroupName,Type,DiskSizeGB,DiskState `
| Where-Object -Property DiskState -eq “Reserved”

Output:

Comment More info Advertise with us Next Article


Microsoft Azure - Mount Azure Storage in
Container App In App Service

Similar Reads

Microsoft Azure Tutorial


Microsoft Azure is a cloud computing service that offers a variety of services such as computing, storage, networking, and
databases. It helps businesses and developers in building, deploying, and managing applications via Microsoft-Controlled data…
13 min read

Introduction

Storage

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…
6 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 t…
2 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…
3 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…
2 min read

Microsoft Azure - Using Blob Versioning


In the given article we will learn how to use blob versioning in the Azure Portal. So, users have applications that perform read
and write transactions against blobs in their storage account. And, sometimes it’s common for an application to mistakenl…
3 min read

Microsoft Azure - Automatically Manage Azure Blobs Lifecycles


In this article, we will look into how to automatically manage Azure Blobs lifecycles. Azure Blob Storage offers different access
tiers to reduce your storage costs. A blob in the hot tier costs the most and can be accessed very fast, while a blob in the…
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.…
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…
6 min read

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…
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…
3 min read

Microsoft Azure - Azure Managed Disk State Details using PowerShell


In this article, we will try to understand how we can fetch the VM Disk State by using the Azure PowerShell Commands. With
the help of the Azure PowerShell Commands, we will be finding the Managed Disk State of Unattached, Attached, and…
1 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 a…
3 min read

Microsoft Azure - Delete Orphaned Disks using PowerShell Script


In this article, we will use an Azure PowerShell Module Script that finds all the unattached or orphaned azure managed disks
in azure and delete them. PowerShell Script to Delete Orphaned Disks in Azure: The below Power Shell Script will find all th…
2 min read

Network

Compute Virtual Machines

Compute Functions

Compute Monitoring

Azure Services

Resources

Cognitive Services

Company Languages DSA Data Science & ML Web Technologies Python Tutorial
About Us Python Data Structures Data Science With Python HTML Python Programming
Corporate & Communications Legal Java Algorithms Data Science For Beginner CSS Examples
Address:
Privacy Policy C++ DSA for Beginners Machine Learning JavaScript Python Projects
A-143, 7th Floor, Sovereign
Corporate Tower, Sector- 136, In Media PHP Basic DSA Problems ML Maths TypeScript Python Tkinter
Noida, Uttar Pradesh (201305) Contact Us GoLang DSA Roadmap Data Visualisation ReactJS Python Web Scraping
Advertise with us SQL Top 100 DSA Interview Pandas NextJS OpenCV Tutorial
Registered Address: GFG Corporate Solution R Language Problems NumPy Bootstrap Python Interview Question
K 061, Tower K, Gulshan Placement Training Program Android Tutorial DSA Roadmap by Sandeep NLP Web Design Django
Vivante Apartment, Sector 137, Tutorials Archive Jain Deep Learning
Noida, Gautam Buddh Nagar,
Uttar Pradesh, 201305 All Cheat Sheets

Computer Science DevOps System Design Inteview Preparation School Subjects GeeksforGeeks Videos
Operating Systems Git High Level Design Competitive Programming Mathematics DSA
Computer Network Linux Low Level Design Top DS or Algo for CP Physics Python
Database Management AWS UML Diagrams Company-Wise Recruitment Chemistry Java
System Docker Interview Guide Process Biology C++
Software Engineering Kubernetes Design Patterns Company-Wise Preparation Social Science Web Development
Digital Logic Design Azure OOAD Aptitude Preparation English Grammar Data Science
Advertise with us
Engineering Maths GCP System Design Bootcamp Puzzles Commerce CS Subjects
Software Development DevOps Roadmap Interview Questions World GK
Software Testing

@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved

We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy Got It !

You might also like