VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface Interface
public interface WithPrimaryNetworkInterface
The stage of a virtual machine definition allowing to specify the primary network interface.
Method Summary
Modifier and Type | Method and Description |
---|---|
Virtual |
withExistingPrimaryNetworkInterface(NetworkInterface networkInterface)
Associates an existing network interface with the virtual machine as its primary network interface. |
Virtual |
withNewPrimaryNetworkInterface(Creatable<NetworkInterface> creatable)
Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition. |
Method Details
withExistingPrimaryNetworkInterface
public WithOS withExistingPrimaryNetworkInterface(NetworkInterface networkInterface)
Associates an existing network interface with the virtual machine as its primary network interface.
Parameters:
Returns:
withNewPrimaryNetworkInterface
public WithOS withNewPrimaryNetworkInterface(Creatable
Creates a new network interface to associate with the virtual machine as its primary network interface, based on the provided definition.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for