Delen via


ArmComputeModelFactory.DiskImageData Method

Definition

Initializes a new instance of DiskImageData.

public static Azure.ResourceManager.Compute.DiskImageData DiskImageData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.Core.ResourceIdentifier sourceVirtualMachineId = default, Azure.ResourceManager.Compute.Models.ImageStorageProfile storageProfile = default, string provisioningState = default, Azure.ResourceManager.Compute.Models.HyperVGeneration? hyperVGeneration = default);
static member DiskImageData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Resources.Models.ExtendedLocation * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.ImageStorageProfile * string * Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> -> Azure.ResourceManager.Compute.DiskImageData
Public Shared Function DiskImageData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional sourceVirtualMachineId As ResourceIdentifier = Nothing, Optional storageProfile As ImageStorageProfile = Nothing, Optional provisioningState As String = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing) As DiskImageData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

extendedLocation
ExtendedLocation

The extended location of the Image.

sourceVirtualMachineId
ResourceIdentifier

The source virtual machine from which Image is created.

storageProfile
ImageStorageProfile

Specifies the storage settings for the virtual machine disks.

provisioningState
String

The provisioning state.

hyperVGeneration
Nullable<HyperVGeneration>

Specifies the HyperVGenerationType of the VirtualMachine created from the image. From API Version 2019-03-01 if the image source is a blob, then we need the user to specify the value, if the source is managed resource like disk or snapshot, we may require the user to specify the property if we cannot deduce it from the source managed resource.

Returns

A new DiskImageData instance for mocking.

Applies to