Description Usage Arguments See Also Examples
Load balancer configuration
1 2 3 4 5 6 |
type |
The SKU of the load balancer resource: "basic" or "standard". If NULL (the default), this will be determined based on the VM scaleset's configuration. Note that the load balancer SKU must be the same as that of its public IP address. |
rules |
A list of load balancer rules, each obtained via a call to |
probes |
A list of health checking probes, each obtained via a call to |
... |
Other named arguments that will be treated as resource properties. |
name |
For |
port |
For |
interval |
For |
fail_on |
For |
protocol |
For |
frontend_port, backend_port |
For |
timeout |
The timeout interval for the rule. The default is 5 minutes. |
floating_ip |
Whether to use floating IP addresses (direct server return). Only needed for specific scenarios, and when the frontend and backend ports don't match. |
probe_name |
The name of the corresponding health check probe. |
create_vm_scaleset, vmss_config, lb_rules for some predefined load balancing rules and probes
1 2 3 4 5 6 | lb_config()
lb_config(type="basic")
lb_config(
rules=list(lb_rule_ssh, lb_rule_rdp),
probes=list(lb_probe_ssh, lb_probe_rdp)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.