ImageTemplateVmProfile Class
- java.
lang. Object - com.
azure. resourcemanager. imagebuilder. models. ImageTemplateVmProfile
- com.
public final class ImageTemplateVmProfile
Describes the virtual machines used to build and validate images.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageTemplateVmProfile() |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Integer |
osDiskSizeGB()
Get the os |
| List<String> |
userAssignedIdentities()
Get the user |
| void |
validate()
Validates the instance. |
| String |
vmSize()
Get the vm |
|
Virtual |
vnetConfig()
Get the vnet |
|
Image |
withOsDiskSizeGB(Integer osDiskSizeGB)
Set the os |
|
Image |
withUserAssignedIdentities(List<String> userAssignedIdentities)
Set the user |
|
Image |
withVmSize(String vmSize)
Set the vm |
|
Image |
withVnetConfig(VirtualNetworkConfig vnetConfig)
Set the vnet |
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:
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:
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:
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:
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:
Returns:
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:
Returns:
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:
Returns:
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:
Returns: