ImageTemplateVmProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.imagebuilder.models.ImageTemplateVmProfile

public final class ImageTemplateVmProfile

Describes the virtual machines used to build and validate images.

Constructor Summary

Constructor Description
ImageTemplateVmProfile()

Creates an instance of ImageTemplateVmProfile class.

Method Summary

Modifier and Type Method and Description
Integer osDiskSizeGB()

Get the osDiskSizeGB property: Size of the OS disk in GB.

List<String> userAssignedIdentities()

Get the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM.

void validate()

Validates the instance.

String vmSize()

Get the vmSize property: Size of the virtual machine used to build, customize and capture images.

VirtualNetworkConfig vnetConfig()

Get the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in.

ImageTemplateVmProfile withOsDiskSizeGB(Integer osDiskSizeGB)

Set the osDiskSizeGB property: Size of the OS disk in GB.

ImageTemplateVmProfile withUserAssignedIdentities(List<String> userAssignedIdentities)

Set the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM.

ImageTemplateVmProfile withVmSize(String vmSize)

Set the vmSize property: Size of the virtual machine used to build, customize and capture images.

ImageTemplateVmProfile withVnetConfig(VirtualNetworkConfig vnetConfig)

Set the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in.

Methods inherited from java.lang.Object

Constructor Details

ImageTemplateVmProfile

public ImageTemplateVmProfile()

Creates an instance of ImageTemplateVmProfile class.

Method Details

osDiskSizeGB

public Integer osDiskSizeGB()

Get the osDiskSizeGB property: Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.

Returns:

the osDiskSizeGB value.

userAssignedIdentities

public List<String> userAssignedIdentities()

Get the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.

Returns:

the userAssignedIdentities value.

validate

public void validate()

Validates the instance.

vmSize

public String vmSize()

Get the vmSize property: Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).

Returns:

the vmSize value.

vnetConfig

public VirtualNetworkConfig vnetConfig()

Get the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.

Returns:

the vnetConfig value.

withOsDiskSizeGB

public ImageTemplateVmProfile withOsDiskSizeGB(Integer osDiskSizeGB)

Set the osDiskSizeGB property: Size of the OS disk in GB. Omit or specify 0 to use Azure's default OS disk size.

Parameters:

osDiskSizeGB - the osDiskSizeGB value to set.

Returns:

the ImageTemplateVmProfile object itself.

withUserAssignedIdentities

public ImageTemplateVmProfile withUserAssignedIdentities(List<String> userAssignedIdentities)

Set the userAssignedIdentities property: Optional array of resource IDs of user assigned managed identities to be configured on the build VM and validation VM. This may include the identity of the image template.

Parameters:

userAssignedIdentities - the userAssignedIdentities value to set.

Returns:

the ImageTemplateVmProfile object itself.

withVmSize

public ImageTemplateVmProfile withVmSize(String vmSize)

Set the vmSize property: Size of the virtual machine used to build, customize and capture images. Omit or specify empty string to use the default (Standard_D1_v2 for Gen1 images and Standard_D2ds_v4 for Gen2 images).

Parameters:

vmSize - the vmSize value to set.

Returns:

the ImageTemplateVmProfile object itself.

withVnetConfig

public ImageTemplateVmProfile withVnetConfig(VirtualNetworkConfig vnetConfig)

Set the vnetConfig property: Optional configuration of the virtual network to use to deploy the build VM and validation VM in. Omit if no specific virtual network needs to be used.

Parameters:

vnetConfig - the vnetConfig value to set.

Returns:

the ImageTemplateVmProfile object itself.

Applies to