Skip to content

Instantly share code, notes, and snippets.

@Whistler092
Created April 19, 2017 20:43
Show Gist options
  • Save Whistler092/fef144bac948f3f1d46737ea92981b1a to your computer and use it in GitHub Desktop.
Save Whistler092/fef144bac948f3f1d46737ea92981b1a to your computer and use it in GitHub Desktop.
agregar excepciones en el firewall en azure.
$vm = Get-AzureVM -ServiceName servername -Name servername ; 10000..10005 | ForEach { $VM | Add-AzureEndpoint -Name FTPEndpoint$_ -Protocol TCP -LocalPort $_ -PublicPort $_} ; $vm | Update-AzureVM
$vm = Get-AzureVM -ServiceName servername -Name servername ; 10006..10100 | ForEach { $VM | Add-AzureEndpoint -Name FTPEndpoint$_ -Protocol TCP -LocalPort $_ -PublicPort $_} ; $vm | Update-AzureVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment