AzureRmVm-获取虚拟机的FQDN名称 [英] AzureRmVm - Obtaining the FQDN name of the VM

查看:53
本文介绍了AzureRmVm-获取虚拟机的FQDN名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从订阅中的所有VM中获取域名,但似乎找不到解决方法.我看过以下命令,但似乎找不到cmdlet来提供此信息:

I am trying to get the domain names from all my VMs within my subscription but I can not seem to find how to do this. I have looked at the following commands but I seem I can not find a cmdlet to give me this information:

NetworkInterfaceIPConfigurationListResult
Get-AzureRmVM

NetworkInterfaceIPConfigurationListResult
Get-AzureRmVM

Get-AzureRmDnsZone

Get-AzureRmDnsZone

我不知道如何使用AzureRm获得我的Vm的FQDN名称.对此的任何帮助将不胜感激.

I can't figure out how to obtain the FQDN name of my Vm with AzureRm. Any help to do obtain this would be greatly appreciated. 

推荐答案

我认为该脚本可以为您提供帮助.

I think that this script could help you.

如果您有任何疑问,请随时问我.

If you have any question do not hesitate to ask me.

#Connect To Azure And Select Your Subscription
Login-AzureRmAccount
Set-AzureRmContext -SubscriptionId ''

#Get The FQDN From A Resource Group


ResourceGroupName =''
ResourceGroupName = ''


PublicIPAddress ='' (Get-AzureRmPublicIpAddress -ResourceGroupName
PublicIPAddress = '' (Get-AzureRmPublicIpAddress -ResourceGroupName


这篇关于AzureRmVm-获取虚拟机的FQDN名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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