ArmComputeModelFactory.ImageDiskReference Method

Definition

public static Azure.ResourceManager.Compute.Models.ImageDiskReference ImageDiskReference(Azure.Core.ResourceIdentifier id = default, string sharedGalleryImageId = default, string communityGalleryImageId = default, int? lun = default);
static member ImageDiskReference : Azure.Core.ResourceIdentifier * string * string * Nullable<int> -> Azure.ResourceManager.Compute.Models.ImageDiskReference
Public Shared Function ImageDiskReference (Optional id As ResourceIdentifier = Nothing, Optional sharedGalleryImageId As String = Nothing, Optional communityGalleryImageId As String = Nothing, Optional lun As Nullable(Of Integer) = Nothing) As ImageDiskReference

Parameters

id
ResourceIdentifier

A relative uri containing either a Platform Image Repository, user image, or Azure Compute Gallery image reference.

sharedGalleryImageId
String

A relative uri containing a direct shared Azure Compute Gallery image reference.

communityGalleryImageId
String

A relative uri containing a community Azure Compute Gallery image reference.

lun
Nullable<Int32>

If the disk is created from an image's data disk, this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.

Returns

A new ImageDiskReference instance for mocking.

Applies to