在ASR中查询“使用托管磁盘".从PowerShell [英] Query ASR for "use managed disks" from PowerShell

查看:70
本文介绍了在ASR中查询“使用托管磁盘".从PowerShell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我需要报告哪些虚拟机未启用此选项(请参见下面的内容):

I need to report which VMs don't have this option enabled (see below what it represents):

我不知道要使用哪个cmdlet,也不知道在何处获取此信息.你能帮我吗?你会? :)

I don't know which cmdlet to use, or where to aim to get this info. Can you help me out? Will you? :) 

谢谢

Dimas

PS:该选项表示在DR事件中将发生的情况.这是关于ASR的,我们使用ASR保护本地VM.因此,在发生灾难恢复的情况下,虚拟机将在Azure中启动以替换受影响的虚拟机.如果选择此选项,则该VM将具有托管磁盘. 如果不是,它将具有非托管磁盘. 

PS: the option represents what will happen in a DR event. This is about ASR, we're protecting on-premises VMs with ASR. So, in case of DR, a VM will spin up in Azure to replace the affected one. If this option is selected, this VM will have managed disks. If it's not, it will have unmanaged disks. 

推荐答案

此强大的Shell命令(Get-AzureRmDisk) 获取订阅下所有磁盘的属性.

This power shell command (Get-AzureRmDisk) gets the properties of all disks under the subscription.

Login-Azurermaccount

Login-Azurermaccount

Get-AzureRmDisk

Get-AzureRmDisk

运行上述cmdlet之后.您可以在附加到虚拟机的azure订阅中获取托管磁盘的详细信息.然后,您需要检查虚拟机是否正在使用Azure预订中的托管磁盘/非托管磁盘.要得到 根据您的环境查看的详细信息

And after running the above cmdlets. You can get the details of managed disks in azure subscription which are attached to virtual machines. Then you need to check whether the virtual machine is using managed disk/unmanged disk in azure subscription. To get the details as per your environment see this

https://stackoverflow.com/questions/43418208/how-to-find-if-a-virtual-machine-is-using-managed-unmanaged-disks-in-azure

https://stackoverflow.com/questions/43418208/how-to-find-if-a-virtual-machine-is-using-managed-unmanaged-disks-in-azure

干杯!

Zerion


这篇关于在ASR中查询“使用托管磁盘".从PowerShell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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