### YamlMime:JavaType uid: "com.azure.resourcemanager.network.models.LoadBalancerBackend.DefinitionStages.WithVirtualMachine" fullName: "com.azure.resourcemanager.network.models.LoadBalancerBackend.DefinitionStages.WithVirtualMachine" name: "LoadBalancerBackend.DefinitionStages.WithVirtualMachine" nameWithType: "LoadBalancerBackend.DefinitionStages.WithVirtualMachine" summary: "The stage of a load balancer backend definition allowing to select a set of virtual machines to load balance the network traffic among." syntax: "public static interface **LoadBalancerBackend.DefinitionStages.WithVirtualMachine**" methods: - uid: "com.azure.resourcemanager.network.models.LoadBalancerBackend.DefinitionStages.WithVirtualMachine.withExistingVirtualMachines(com.azure.resourcemanager.network.models.HasNetworkInterfaces...)" fullName: "com.azure.resourcemanager.network.models.LoadBalancerBackend.DefinitionStages.WithVirtualMachine.withExistingVirtualMachines(HasNetworkInterfaces[] vms)" name: "withExistingVirtualMachines(HasNetworkInterfaces[] vms)" nameWithType: "LoadBalancerBackend.DefinitionStages.WithVirtualMachine.withExistingVirtualMachines(HasNetworkInterfaces[] vms)" summary: "Adds the specified set of virtual machines, assuming they are from the same availability set, to this backend address pool." modifiers: - "abstract" parameters: - description: "existing virtual machines" name: "vms" type: "[]" syntax: "public abstract LoadBalancerBackend.DefinitionStages.WithAttach withExistingVirtualMachines(HasNetworkInterfaces[] vms)" desc: "Adds the specified set of virtual machines, assuming they are from the same availability set, to this backend address pool.\n\nThis will add references to the primary IP configurations of the primary network interfaces of the provided set of virtual machines.\n\nIf the virtual machines are not in the same availability set, they will not be associated with this back end.\n\nOnly 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." returns: description: "the next stage of the definition" type: "<>" - uid: "com.azure.resourcemanager.network.models.LoadBalancerBackend.DefinitionStages.WithVirtualMachine.withExistingVirtualMachines(java.util.Collection)" fullName: "com.azure.resourcemanager.network.models.LoadBalancerBackend.DefinitionStages.WithVirtualMachine.withExistingVirtualMachines(Collection vms)" name: "withExistingVirtualMachines(Collection vms)" nameWithType: "LoadBalancerBackend.DefinitionStages.WithVirtualMachine.withExistingVirtualMachines(Collection vms)" summary: "Adds the specified set of virtual machines, assuming they are from the same availability set, to this backend address pool." modifiers: - "abstract" parameters: - description: "existing virtual machines" name: "vms" type: "Collection<>" syntax: "public abstract LoadBalancerBackend.DefinitionStages.WithAttach withExistingVirtualMachines(Collection vms)" desc: "Adds the specified set of virtual machines, assuming they are from the same availability set, to this backend address pool.\n\nThis will add references to the primary IP configurations of the primary network interfaces of the provided set of virtual machines.\n\nIf the virtual machines are not in the same availability set, they will not be associated with this back end.\n\nOnly 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." returns: description: "the next stage of the definition" type: "<>" type: "interface" typeParameters: - description: "the next stage of the definition" name: "ReturnT" desc: "The stage of a load balancer backend definition allowing to select a set of virtual machines to load balance the network traffic among." metadata: {} package: "com.azure.resourcemanager.network.models" artifact: com.azure.resourcemanager:azure-resourcemanager-network:2.44.0