你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmComputeModelFactory.DiskImagePatch Method

Definition

Initializes a new instance of DiskImagePatch.

public static Azure.ResourceManager.Compute.Models.DiskImagePatch DiskImagePatch(System.Collections.Generic.IDictionary<string,string> tags = 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 DiskImagePatch : System.Collections.Generic.IDictionary<string, string> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.ImageStorageProfile * string * Nullable<Azure.ResourceManager.Compute.Models.HyperVGeneration> -> Azure.ResourceManager.Compute.Models.DiskImagePatch
Public Shared Function DiskImagePatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional sourceVirtualMachineId As ResourceIdentifier = Nothing, Optional storageProfile As ImageStorageProfile = Nothing, Optional provisioningState As String = Nothing, Optional hyperVGeneration As Nullable(Of HyperVGeneration) = Nothing) As DiskImagePatch

Parameters

tags
IDictionary<String,String>

Resource tags.

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 DiskImagePatch instance for mocking.

Applies to