Search in sources :

Example 1 with VirtualMachineScaleSetVMProfile

use of com.microsoft.azure.management.compute.VirtualMachineScaleSetVMProfile in project azure-sdk-for-java by Azure.

the class VirtualMachineScaleSetsImpl method wrapModel.

@Override
protected VirtualMachineScaleSetImpl wrapModel(String name) {
    VirtualMachineScaleSetInner inner = new VirtualMachineScaleSetInner();
    inner.withVirtualMachineProfile(new VirtualMachineScaleSetVMProfile());
    inner.virtualMachineProfile().withStorageProfile(new VirtualMachineScaleSetStorageProfile().withOsDisk(new VirtualMachineScaleSetOSDisk().withVhdContainers(new ArrayList<String>())));
    inner.virtualMachineProfile().withOsProfile(new VirtualMachineScaleSetOSProfile());
    inner.virtualMachineProfile().withNetworkProfile(new VirtualMachineScaleSetNetworkProfile());
    inner.virtualMachineProfile().networkProfile().withNetworkInterfaceConfigurations(new ArrayList<VirtualMachineScaleSetNetworkConfigurationInner>());
    VirtualMachineScaleSetNetworkConfigurationInner primaryNetworkInterfaceConfiguration = new VirtualMachineScaleSetNetworkConfigurationInner().withPrimary(true).withName("primary-nic-cfg").withIpConfigurations(new ArrayList<VirtualMachineScaleSetIPConfigurationInner>());
    primaryNetworkInterfaceConfiguration.ipConfigurations().add(new VirtualMachineScaleSetIPConfigurationInner().withName("primary-nic-ip-cfg"));
    inner.virtualMachineProfile().networkProfile().networkInterfaceConfigurations().add(primaryNetworkInterfaceConfiguration);
    return new VirtualMachineScaleSetImpl(name, inner, this.manager(), this.storageManager, this.networkManager);
}
Also used : VirtualMachineScaleSetNetworkProfile(com.microsoft.azure.management.compute.VirtualMachineScaleSetNetworkProfile) VirtualMachineScaleSetVMProfile(com.microsoft.azure.management.compute.VirtualMachineScaleSetVMProfile) VirtualMachineScaleSetOSProfile(com.microsoft.azure.management.compute.VirtualMachineScaleSetOSProfile) VirtualMachineScaleSetOSDisk(com.microsoft.azure.management.compute.VirtualMachineScaleSetOSDisk) VirtualMachineScaleSetStorageProfile(com.microsoft.azure.management.compute.VirtualMachineScaleSetStorageProfile)

Aggregations

VirtualMachineScaleSetNetworkProfile (com.microsoft.azure.management.compute.VirtualMachineScaleSetNetworkProfile)1 VirtualMachineScaleSetOSDisk (com.microsoft.azure.management.compute.VirtualMachineScaleSetOSDisk)1 VirtualMachineScaleSetOSProfile (com.microsoft.azure.management.compute.VirtualMachineScaleSetOSProfile)1 VirtualMachineScaleSetStorageProfile (com.microsoft.azure.management.compute.VirtualMachineScaleSetStorageProfile)1 VirtualMachineScaleSetVMProfile (com.microsoft.azure.management.compute.VirtualMachineScaleSetVMProfile)1