Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created December 5, 2012 12:49
Show Gist options
  • Save sandrinodimattia/4215259 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/4215259 to your computer and use it in GitHub Desktop.
Adding and removing RDP endpoint (by Michael Washam)
# Remove RDP endpoints from VMs in cloud service
Get-AzureVM -ServiceName myservice | Remove-AzureEndpoint -Name RemoteDesktop
| Update-AzureVM
# Add RDP endpoints to all VMs in cloud service
Get-AzureVM -ServiceName myservice | Add-AzureEndpoint -Name RemoteDesktop -LocalPort 3389 -Protocol tcp
| Update-AzureVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment