ArmComputeModelFactory.ImageDiskReference Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.
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.