Created
January 3, 2017 09:46
-
-
Save win2000b/f400d22dda4ff568032492ec749603ae to your computer and use it in GitHub Desktop.
Add Port Range to Azure Load Balancer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$VM = Get-AzureVM -ServiceName "cloudservicename" -Name "VirtualMachineName" | |
for ($Port = 6000; $Port -le 6100; $Port++) | |
{ | |
$VM = $VM | Add-AzureEndpoint -Name "FTP-Pasv-$Port" -Protocol 'TCP' -LocalPort $Port -PublicPort $Port | |
} | |
$VM | Update-AzureVM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment