public static interface VirtualMachine.DefinitionStages.WithNetwork extends VirtualMachine.DefinitionStages.WithPrimaryNetworkInterface
| Modifier and Type | Method and Description |
|---|---|
VirtualMachine.DefinitionStages.WithSubnet |
withExistingPrimaryNetwork(com.microsoft.azure.management.network.Network network)
Associate an existing virtual network with the the virtual machine's primary network interface.
|
VirtualMachine.DefinitionStages.WithPrivateIp |
withNewPrimaryNetwork(com.microsoft.azure.management.resources.fluentcore.model.Creatable<com.microsoft.azure.management.network.Network> creatable)
Create a new virtual network to associate with the virtual machine's primary network interface, based on
the provided definition.
|
VirtualMachine.DefinitionStages.WithPrivateIp |
withNewPrimaryNetwork(String addressSpace)
Creates a new virtual network to associate with the virtual machine's primary network interface.
|
withExistingPrimaryNetworkInterface, withNewPrimaryNetworkInterfaceVirtualMachine.DefinitionStages.WithPrivateIp withNewPrimaryNetwork(com.microsoft.azure.management.resources.fluentcore.model.Creatable<com.microsoft.azure.management.network.Network> creatable)
creatable - a creatable definition for a new virtual networkVirtualMachine.DefinitionStages.WithPrivateIp withNewPrimaryNetwork(String addressSpace)
the virtual network will be created in the same resource group and region as of virtual machine, it will be created with the specified address space and a default subnet covering the entirety of the network IP address space.
addressSpace - the address space for the virtual networkVirtualMachine.DefinitionStages.WithSubnet withExistingPrimaryNetwork(com.microsoft.azure.management.network.Network network)
network - an existing virtual network/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/