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