Get-AzureVM
6001..6018|%{
$null=Get-AzureVM -ServiceName "roleserver02" -Name "roleserver02"|Add-AzureEndpoint –Name Game$_ –Protocol tcp –LocalPort $_ -PublicPort $_ | Update-AzureVM
if($?){
Write-Host $_"添加成功!"
}else{
Write-Host $_"添加失败!"
}
}
Get-AzureVM -ServiceName "roleserver02" -Name "roleserver02" | Get-AzureEndpoint|select Localport,Name,port,Vip
阅读(1570) | 评论(0) | 转发(0) |