-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: matyang222 <matthew.yang@microsoft.com>
- Loading branch information
Showing
7 changed files
with
1,230 additions
and
1 deletion.
There are no files selected for viewing
348 changes: 348 additions & 0 deletions
348
...oft.Network/stable/2021-02-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,348 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-02-01", | ||
"subscriptionId": "subid", | ||
"resourceGroupName": "rg1", | ||
"loadBalancerName": "lb", | ||
"parameters": { | ||
"location": "eastus", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"frontendIPConfigurations": [ | ||
{ | ||
"name": "fe-lb", | ||
"properties": { | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" | ||
}, | ||
"gatewayLoadBalancer": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider" | ||
} | ||
} | ||
} | ||
], | ||
"backendAddressPools": [ | ||
{ | ||
"name": "be-lb", | ||
"properties": {} | ||
} | ||
], | ||
"loadBalancingRules": [ | ||
{ | ||
"name": "rulelb", | ||
"properties": { | ||
"frontendIPConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" | ||
}, | ||
"frontendPort": 80, | ||
"backendPort": 80, | ||
"enableFloatingIP": true, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp", | ||
"loadDistribution": "Default", | ||
"backendAddressPool": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" | ||
}, | ||
"probe": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" | ||
} | ||
} | ||
} | ||
], | ||
"probes": [ | ||
{ | ||
"name": "probe-lb", | ||
"properties": { | ||
"protocol": "Http", | ||
"port": 80, | ||
"requestPath": "healthcheck.aspx", | ||
"intervalInSeconds": 15, | ||
"numberOfProbes": 2 | ||
} | ||
} | ||
], | ||
"inboundNatRules": [ | ||
{ | ||
"name": "in-nat-rule", | ||
"properties": { | ||
"frontendIPConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" | ||
}, | ||
"frontendPort": 3389, | ||
"backendPort": 3389, | ||
"enableFloatingIP": true, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp" | ||
} | ||
} | ||
], | ||
"inboundNatPools": [], | ||
"outboundRules": [] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"name": "lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", | ||
"type": "Microsoft.Network/loadBalancers", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"location": "eastus", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "00000000-0000-0000-0000-00000000", | ||
"frontendIPConfigurations": [ | ||
{ | ||
"name": "fe-lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", | ||
"type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"privateIPAddress": "10.0.1.4", | ||
"privateIPAllocationMethod": "Dynamic", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" | ||
}, | ||
"loadBalancingRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" | ||
} | ||
], | ||
"inboundNatRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" | ||
} | ||
], | ||
"gatewayLoadBalancer": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider" | ||
} | ||
} | ||
} | ||
], | ||
"backendAddressPools": [ | ||
{ | ||
"name": "be-lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", | ||
"type": "Microsoft.Network/loadBalancers/backendAddressPools", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"loadBalancingRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"loadBalancingRules": [ | ||
{ | ||
"name": "rulelb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", | ||
"type": "Microsoft.Network/loadBalancers/loadBalancingRules", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"frontendIPConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" | ||
}, | ||
"frontendPort": 80, | ||
"backendPort": 80, | ||
"enableFloatingIP": true, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp", | ||
"loadDistribution": "Default", | ||
"backendAddressPool": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" | ||
}, | ||
"probe": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" | ||
}, | ||
"disableOutboundSnat": false | ||
} | ||
} | ||
], | ||
"probes": [ | ||
{ | ||
"name": "probe-lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", | ||
"type": "Microsoft.Network/loadBalancers/probes", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"protocol": "Http", | ||
"port": 80, | ||
"requestPath": "healthcheck.aspx", | ||
"intervalInSeconds": 15, | ||
"numberOfProbes": 2, | ||
"loadBalancingRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"inboundNatRules": [ | ||
{ | ||
"name": "in-nat-rule", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", | ||
"type": "Microsoft.Network/loadBalancers/inboundNatRules", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"frontendIPConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" | ||
}, | ||
"frontendPort": 3389, | ||
"backendPort": 3389, | ||
"enableFloatingIP": true, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp" | ||
} | ||
} | ||
], | ||
"outboundRules": [], | ||
"inboundNatPools": [] | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"name": "lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb", | ||
"type": "Microsoft.Network/loadBalancers", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"location": "eastus", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"resourceGuid": "00000000-0000-0000-0000-00000000", | ||
"frontendIPConfigurations": [ | ||
{ | ||
"name": "fe-lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb", | ||
"type": "Microsoft.Network/loadBalancers/frontendIPConfigurations", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"privateIPAddress": "10.0.1.4", | ||
"privateIPAllocationMethod": "Dynamic", | ||
"subnet": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnetlb/subnets/subnetlb" | ||
}, | ||
"loadBalancingRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" | ||
} | ||
], | ||
"inboundNatRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule" | ||
} | ||
], | ||
"gatewayLoadBalancer": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb-provider" | ||
} | ||
} | ||
} | ||
], | ||
"backendAddressPools": [ | ||
{ | ||
"name": "be-lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb", | ||
"type": "Microsoft.Network/loadBalancers/backendAddressPools", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"loadBalancingRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"loadBalancingRules": [ | ||
{ | ||
"name": "rulelb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb", | ||
"type": "Microsoft.Network/loadBalancers/loadBalancingRules", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"frontendIPConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" | ||
}, | ||
"frontendPort": 80, | ||
"backendPort": 80, | ||
"enableFloatingIP": true, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp", | ||
"loadDistribution": "Default", | ||
"backendAddressPool": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/backendAddressPools/be-lb" | ||
}, | ||
"probe": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb" | ||
}, | ||
"disableOutboundSnat": false | ||
} | ||
} | ||
], | ||
"probes": [ | ||
{ | ||
"name": "probe-lb", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/probes/probe-lb", | ||
"type": "Microsoft.Network/loadBalancers/probes", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"protocol": "Http", | ||
"port": 80, | ||
"requestPath": "healthcheck.aspx", | ||
"intervalInSeconds": 15, | ||
"numberOfProbes": 2, | ||
"loadBalancingRules": [ | ||
{ | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/loadBalancingRules/rulelb" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"inboundNatRules": [ | ||
{ | ||
"name": "in-nat-rule", | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/inboundNatRules/in-nat-rule", | ||
"type": "Microsoft.Network/loadBalancers/inboundNatRules", | ||
"etag": "W/\"00000000-0000-0000-0000-00000000\"", | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"frontendIPConfiguration": { | ||
"id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/loadBalancers/lb/frontendIPConfigurations/fe-lb" | ||
}, | ||
"frontendPort": 3389, | ||
"backendPort": 3389, | ||
"enableFloatingIP": true, | ||
"idleTimeoutInMinutes": 15, | ||
"protocol": "Tcp" | ||
} | ||
} | ||
], | ||
"outboundRules": [], | ||
"inboundNatPools": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.