Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the StorageProfile class.
 /// </summary>
 /// <param name="imageReference">Specifies information about the image
 /// to use. You can specify information about platform images,
 /// marketplace images, or virtual machine images. This element is
 /// required when you want to use a platform image, marketplace image,
 /// or virtual machine image, but is not used in other creation
 /// operations.</param>
 /// <param name="osDisk">Specifies information about the operating
 /// system disk used by the virtual machine. &lt;br&gt;&lt;br&gt; For
 /// more information about disks, see [About disks and VHDs for Azure
 /// virtual
 /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).</param>
 /// <param name="dataDisks">Specifies the parameters that are used to
 /// add a data disk to a virtual machine. &lt;br&gt;&lt;br&gt; For more
 /// information about disks, see [About disks and VHDs for Azure
 /// virtual
 /// machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).</param>
 public StorageProfile(ImageReference imageReference = default(ImageReference), OSDisk osDisk = default(OSDisk), IList <DataDisk> dataDisks = default(IList <DataDisk>))
 {
     ImageReference = imageReference;
     OsDisk         = osDisk;
     DataDisks      = dataDisks;
     CustomInit();
 }
Ejemplo n.º 2
0
 internal AzureSLA GetDiskSLA(OSDisk osdisk)
 {
     return this.GetDiskSLA(osdisk.DiskSizeGB, osdisk.Vhd.Uri);
 }