如何查找虚拟机是否正在Azure中使用托管/非托管磁盘 [英] How to find if a Virtual Machine is using managed/Unmanaged disks in Azure

查看:52
本文介绍了如何查找虚拟机是否正在Azure中使用托管/非托管磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Azure中是否有一种方法可以查找是否以托管磁盘或非托管磁盘创建了蔚蓝色的VM?

Is there a way in Azure to find if a VM in azure created to with Managed/Unmanaged disks?

推荐答案

我们可以使用PowerShell列出Azure VM的信息.

We can use PowerShell to list the information of Azure VM.

这是非托管磁盘 VM的输出:

PS C:\Users> (get-azurermvm -ResourceGroupName jasonvn -Name jasonvm1).StorageProfile.OsDisk
 StorageProfile and NetworkProfile, respectively.


OsType             : Linux
EncryptionSettings :
Name               : jasonvm1
Vhd                : Microsoft.Azure.Management.Compute.Models.VirtualHardDisk
Image              :
Caching            : ReadWrite
CreateOption       : FromImage
DiskSizeGB         :
ManagedDisk        :

这是托管磁盘 VM的输出:

PS C:\Users> (get-azurermvm -ResourceGroupName jasonvn -Name jasonvm).StorageProfile.OsDisk
 StorageProfile and NetworkProfile, respectively.


OsType             : Linux
EncryptionSettings :
Name               : jasonvm
Vhd                :
Image              :
Caching            : ReadWrite
CreateOption       : FromImage
DiskSizeGB         : 30
ManagedDisk        : Microsoft.Azure.Management.Compute.Models.ManagedDiskParameters

另一种方法,我们可以使用Azure新门户检查自动化脚本以找到它:

Another way, we can use Azure new portal to check automation script to find it:

这篇关于如何查找虚拟机是否正在Azure中使用托管/非托管磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆