Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 305 Bytes
[CmdletBinding()]
Param(
[Parameter(Position=0, Mandatory=$true)]
[string]$ServiceName
)
$VM = Get-AzureVM -ServiceName $ServiceName
try {
$VM | Remove-AzureEndpoint -Name "RemoteDesktop" | Update-AzureVM
}
catch {
$VM | Remove-AzureEndpoint -Name "Remote Desktop" | Update-AzureVM
}
You can’t perform that action at this time.