ArmComputeModelFactory.DiskImagePatch 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.
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
Azure SDK for .NET