Skip to content

Commit

Permalink
Republished samples with Fluent 1.2.1 reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed Aug 30, 2017
1 parent 00660e3 commit 97712bb
Show file tree
Hide file tree
Showing 18 changed files with 15,923 additions and 45 deletions.
8 changes: 8 additions & 0 deletions Asset/create_resources_with_msi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

/usr/bin/yes | sudo apt-get update
/usr/bin/yes | sudo apt install python-pip
/usr/bin/yes | sudo pip install --upgrade pip
sudo pip install azure-cli
az login -u $1@$2
az storage account create -n $3 -g $4 -l $5 --sku Premium_LRS
Binary file added Asset/square-function-app-function-auth.zip
Binary file not shown.
Binary file added Asset/square-function-app.zip
Binary file not shown.
209 changes: 195 additions & 14 deletions Common/Utilities.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ManageVirtualMachineScaleSetAsync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.8" />
<PackageReference Include="Microsoft.Azure.Management.Fluent" Version="1.1.3" />
<PackageReference Include="Microsoft.Azure.Management.Fluent" Version="1.2.1" />
<PackageReference Include="CoreFTP" Version="1.2.0" />
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="0.0.2-preview" />
<PackageReference Include="SSH.NET" Version="2016.0.0" />
Expand Down
56 changes: 26 additions & 30 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,54 +124,50 @@ await Task.WhenAll(azure.Networks.Define(vnetName)
var loadBalancer1 = await azure.LoadBalancers.Define(loadBalancerName1)
.WithRegion(region)
.WithExistingResourceGroup(rgName)
.DefinePublicFrontend(frontendName)
.WithExistingPublicIPAddress(publicIPAddress)
.Attach()
// Add two backend one per rule
.DefineBackend(backendPoolName1)
.Attach()
.DefineBackend(backendPoolName2)
.Attach()
// Add two probes one per rule
.DefineHttpProbe(httpProbe)
.WithRequestPath("/")
.WithPort(80)
.Attach()
.DefineHttpProbe(httpsProbe)
.WithRequestPath("/")
.WithPort(443)
.Attach()

// Add two rules that uses above backend and probe
.DefineLoadBalancingRule(httpLoadBalancingRule)
.WithProtocol(TransportProtocol.Tcp)
.WithFrontend(frontendName)
.WithFrontendPort(80)
.FromFrontend(frontendName)
.FromFrontendPort(80)
.ToBackend(backendPoolName1)
.WithProbe(httpProbe)
.WithBackend(backendPoolName1)
.Attach()
.DefineLoadBalancingRule(httpsLoadBalancingRule)
.WithProtocol(TransportProtocol.Tcp)
.WithFrontend(frontendName)
.WithFrontendPort(443)
.FromFrontend(frontendName)
.FromFrontendPort(443)
.ToBackend(backendPoolName2)
.WithProbe(httpsProbe)
.WithBackend(backendPoolName2)
.Attach()

// Add nat pools to enable direct VM connectivity for
// SSH to port 22 and TELNET to port 23
.DefineInboundNatPool(natPool50XXto22)
.WithProtocol(TransportProtocol.Tcp)
.WithFrontend(frontendName)
.WithFrontendPortRange(5000, 5099)
.WithBackendPort(22)
.FromFrontend(frontendName)
.FromFrontendPortRange(5000, 5099)
.ToBackendPort(22)
.Attach()
.DefineInboundNatPool(natPool60XXto23)
.WithProtocol(TransportProtocol.Tcp)
.WithFrontend(frontendName)
.WithFrontendPortRange(6000, 6099)
.WithBackendPort(23)
.FromFrontend(frontendName)
.FromFrontendPortRange(6000, 6099)
.ToBackendPort(23)
.Attach()
// Explicitly define the frontend
.DefinePublicFrontend(frontendName)
.WithExistingPublicIPAddress(publicIPAddress)
.Attach()
// Add two probes one per rule
.DefineHttpProbe(httpProbe)
.WithRequestPath("/")
.WithPort(80)
.Attach()
.DefineHttpProbe(httpsProbe)
.WithRequestPath("/")
.WithPort(443)
.Attach()

.CreateAsync();

// Print load balancer details
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\daschult\\.nuget\\packages"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"runtimeOptions": {}
}
Loading

0 comments on commit 97712bb

Please sign in to comment.