Skip to content

Commit

Permalink
Merge pull request Azure#1373 from jianghaolu/beta4hotfix
Browse files Browse the repository at this point in the history
Fix traffic manager sample
  • Loading branch information
Martin Sawicki authored Jan 5, 2017
2 parents 9eca49f + d153580 commit 7d23fb1
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,21 +186,18 @@ public static void main(String[] args) {
.define(tmName)
.withExistingResourceGroup(RG_NAME)
.withLeafDomainLabel(tmName)
.withTrafficRoutingMethod(TrafficRoutingMethod.WEIGHTED)
.withTrafficRoutingMethod(TrafficRoutingMethod.PRIORITY)
.defineAzureTargetEndpoint("endpoint1")
.toResourceId(app1.id())
.withRoutingPriority(1)
.attach()
.defineAzureTargetEndpoint("endpoint2")
.toResourceId(app2.id())
.withRoutingPriority(2)
.attach()
.defineAzureTargetEndpoint("endpoint3")
.toResourceId(app3.id())
.attach()
.defineAzureTargetEndpoint("endpoint4")
.toResourceId(app4.id())
.attach()
.defineAzureTargetEndpoint("endpoint5")
.toResourceId(app5.id())
.withRoutingPriority(3)
.attach()
.create();

Expand Down

0 comments on commit 7d23fb1

Please sign in to comment.