1、关机
Get-AzureVM -ServiceName ZAM**** -Name ZAMPDMP-** |Stop-AzureVM -Force
2、设置固定IP
Get-AzureVM -ServiceName ZAM**** -Name ZAMPDMP-** |
Set-AzureStaticVNetIP -IPAddress "10.66.88.50" |
Update-AzureVM
3、开机
Get-AzureVM -ServiceName ZAMP**** -Name ZAMPDMP-** |Start-AzureVM
[[email protected]]# ping 10.66.88.50
PING 10.66.88.50 (10.66.88.50) 56(84) bytes of data.
64 bytes from 10.66.88.50: icmp_seq=1 ttl=64 time=3.78 ms
64 bytes from 10.66.88.50: icmp_seq=2 ttl=64 time=0.394 ms
64 bytes from 10.66.88.50: icmp_seq=3 ttl=64 time=5.15 ms
时间: 2024-10-29 19:12:30