所以我在我的Azure帐户中挥之不去,找到了set static IP的某种方式。
设置静态IP的命令是:
Get-AzureVM -ServiceName <service-name> -Name <name> | Set-AzureStaticVNetIP -IPAddress <ip-address> | Update-AzureVM
当我这样做时:
Get-AzureVM -ServiceName <service-name> | Set-AzureStaticVNetIP -IPAddress <ip-address> | Update-AzureVM
或者:
Get-AzureVM -Name <name> | Set-AzureStaticVNetIP -IPAddress <ip-address> | Update-AzureVM
它仍然成功。
ServiceName和名称之间的区别是什么?
而且,相关的问题。 如何列出IP地址设置为静态的虚拟机?