0
我正在自动部署几个Azure虚拟机,并且我想将WinRM安装到每个虚拟机中以完成部署。如何从创建虚拟机的脚本中找到虚拟机的FQDN?Azure powershell - 如何从虚拟机获取FQDN?
我在寻找:
$psVirtualMachine = Add-AzureRmVMNetworkInterface -VM $psVirtualMachine -Id $Nic.Id
$CreateNewVM = New-AzureRMVM -ResourceGroupName $ResourceGroupName -Location $GeoLocation -VM $psVirtualMachine
Enter-PSSession -ConnectionUri https://<-- $CreateNewVM.FQDN -->:5986 -Credential $Cred -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck -SkipRevocationCheck) -Authentication Negotiate