ReturnT - the next stage of the definitionpublic static interface LoadBalancer.DefinitionStages.WithVirtualMachine<ReturnT>
| Modifier and Type | Method and Description |
|---|---|
ReturnT |
withExistingVirtualMachines(HasNetworkInterfaces... vms)
Adds the specified set of virtual machines, assuming they are from the same
availability set, to this load balancer's back end address pool.
|
ReturnT withExistingVirtualMachines(HasNetworkInterfaces... vms)
This will create a new backend address pool for this load balancer and add references to the primary IP configurations of the primary network interfaces of each of the provided set of virtual machines.
If the virtual machines are not in the same availability set, the load balancer will still be created, but the virtual machines will not associated with its back end.
Only those virtual machines will be associated with the load balancer that already have an existing network interface. Virtual machines without a network interface will be skipped.
vms - existing virtual machines/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/