Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$svc="AZSEDB"
$prot="tcp"
$locport=1433
$pubport=1433
$ilb="SQLILB"
$vmname="AZSEDB001"
$epname="LOB1"
Get-AzureVM –ServiceName $svc –Name $vmname | Add-AzureEndpoint -Name $epname -Protocol $prot -LocalPort $locport -PublicPort $pubport –DefaultProbe -InternalLoadBalancerName $ilb | Update-AzureVM
$epname="LOB2"
$vmname="AZSEDB002"
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