Skip to content

Instantly share code, notes, and snippets.

@andreaswasita
Created October 27, 2014 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreaswasita/a274b19ecd547386bbe5 to your computer and use it in GitHub Desktop.
Save andreaswasita/a274b19ecd547386bbe5 to your computer and use it in GitHub Desktop.
$svc="techedadfs"
$prot="tcp"
$locport=443
$pubport=443
$ilb="adfsilb"
$vmname="azadfs01"
$epname="SSL"
Get-AzureVM –ServiceName $svc –Name $vmname | Add-AzureEndpoint -Name $epname -Protocol $prot -LocalPort $locport -PublicPort $pubport –DefaultProbe -InternalLoadBalancerName $ilb | Update-AzureVM
$epname="SSL"
$vmname="azadfs02"
Get-AzureVM –ServiceName $svc –Name $vmname | Add-AzureEndpoint -Name $epname -Protocol $prot -LocalPort $locport -PublicPort $pubport –DefaultProbe -InternalLoadBalancerName $ilb | Update-AzureVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment