AzureRmVm-获取虚拟机的FQDN名称 [英] AzureRmVm - Obtaining the FQDN name of the VM
问题描述
我正在尝试从订阅中的所有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屋!