Class ImageStorageProfile
java.lang.Object
com.microsoft.azure.management.compute.ImageStorageProfile
Describes a storage profile.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet specifies the parameters that are used to add a data disk to a virtual machine.osDisk()
Get specifies information about the operating system disk used by the virtual machine.withDataDisks
(List<ImageDataDisk> dataDisks) Set specifies the parameters that are used to add a data disk to a virtual machine.withOsDisk
(ImageOSDisk osDisk) Set specifies information about the operating system disk used by the virtual machine.withZoneResilient
(Boolean zoneResilient) Set specifies whether an image is zone resilient or not.Get specifies whether an image is zone resilient or not.
-
Constructor Details
-
ImageStorageProfile
public ImageStorageProfile()
-
-
Method Details
-
osDisk
Get specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).- Returns:
- the osDisk value
-
withOsDisk
Set specifies information about the operating system disk used by the virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).- Parameters:
osDisk
- the osDisk value to set- Returns:
- the ImageStorageProfile object itself.
-
dataDisks
Get specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).- Returns:
- the dataDisks value
-
withDataDisks
Set specifies the parameters that are used to add a data disk to a virtual machine. <br><br> For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).- Parameters:
dataDisks
- the dataDisks value to set- Returns:
- the ImageStorageProfile object itself.
-
zoneResilient
Get specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).- Returns:
- the zoneResilient value
-
withZoneResilient
Set specifies whether an image is zone resilient or not. Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).- Parameters:
zoneResilient
- the zoneResilient value to set- Returns:
- the ImageStorageProfile object itself.
-