In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
What is the way to delete unused managed disks in Azure? I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Azure is relatively expensive compared to other cloud vendors, so how to optimize the cost is what we need to consider. Today we focus on the most important item in the optimization of storage cost-there is an unused virtual hard disk (VHD) in the storage account.
Comparison of three inspection methods:
Advantages and disadvantages of Azure PortialWeb Console direct operation, no need to install any software, but need a check, waste of time Azure Storage Explore configuration operation is simple, batch operation, but need to download and install Azure Storage Explore software PowerShell batch operation, do not need to install any software, but need to configure Powershell environment first
Method 1: Azure Portial
Enter the resource group, find the resource group that needs to be checked, and click in
In the deleted items, select "disk"
Click on each disk in turn to view the status
If Unsttached proves that the disk is not in use in status, it can be cleaned; if it is attached, it proves that the disk is mounted to VM and is in use.
Method 2: Azure Storage Explore
Download and install Azure Storage Explore
Https://azure.microsoft.com/en-us/features/storage-explorer/
Configure Azure Storage Explore
Enter the user name and password of the Azure account (this user needs to have permission to delete DISK)
Click Apply
Click as shown in the image to find the disk list, and you can view the list and status of all disks under a resource group. If the status is Unsttached, you can clean up the disk. If it is attached, it proves that the disk is mounted to VM and is in use.
Method 3: Powershell
Open Powershell as an administrator and enter the following command to log in to Azure
Login-azurermaccount-EnvironmentName AzureChinaCloud
Get the disk list of the current account
$MVHDS = Get-AzureRmDisk
Get a list of unused disks
$MVHD = $MVHDS | Where {$_ .ManagedBy-eq $null}
Note: if it is an unused disk, the ManagedBy field is blank
Delete unused disks
$MVHD | Remove-AzureRmDisk
After reading the above, do you know how to delete unused managed disks from Azure? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.