import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Stack HCI Virtual Hard Disk. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-rg", * location: "West Europe", * }); * const exampleHciStoragePath = new azure.stack.HciStoragePath("example", { * name: "example-sp", * resourceGroupName: example.name, * location: example.location, * customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", * path: "C:\\ClusterStorage\\UserStorage_2\\sp-example", * tags: { * foo: "bar", * }, * }); * const exampleHciVirtualHardDisk = new azure.stack.HciVirtualHardDisk("example", { * name: "example-vhd", * resourceGroupName: example.name, * location: example.location, * customLocationId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ExtendedLocation/customLocations/cl1", * diskSizeInGb: 2, * storagePathId: exampleHciStoragePath.id, * tags: { * foo: "bar", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.AzureStackHCI` - 2024-01-01 * * ## Import * * Azure Stack HCI Virtual Hard Disks can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:stack/hciVirtualHardDisk:HciVirtualHardDisk example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AzureStackHCI/virtualHardDisks/disk1 * ``` */ export declare class HciVirtualHardDisk extends pulumi.CustomResource { /** * Get an existing HciVirtualHardDisk resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: HciVirtualHardDiskState, opts?: pulumi.CustomResourceOptions): HciVirtualHardDisk; /** * Returns true if the given object is an instance of HciVirtualHardDisk. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is HciVirtualHardDisk; /** * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly blockSizeInBytes: pulumi.Output; /** * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly customLocationId: pulumi.Output; /** * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly diskFileFormat: pulumi.Output; /** * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly diskSizeInGb: pulumi.Output; /** * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly dynamicEnabled: pulumi.Output; /** * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly hypervGeneration: pulumi.Output; /** * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly location: pulumi.Output; /** * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly logicalSectorInBytes: pulumi.Output; /** * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly name: pulumi.Output; /** * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly physicalSectorInBytes: pulumi.Output; /** * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ readonly resourceGroupName: pulumi.Output; /** * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. * * > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. */ readonly storagePathId: pulumi.Output; /** * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a HciVirtualHardDisk resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: HciVirtualHardDiskArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HciVirtualHardDisk resources. */ export interface HciVirtualHardDiskState { /** * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ blockSizeInBytes?: pulumi.Input; /** * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ customLocationId?: pulumi.Input; /** * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ diskFileFormat?: pulumi.Input; /** * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ diskSizeInGb?: pulumi.Input; /** * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ dynamicEnabled?: pulumi.Input; /** * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ hypervGeneration?: pulumi.Input; /** * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ location?: pulumi.Input; /** * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ logicalSectorInBytes?: pulumi.Input; /** * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ name?: pulumi.Input; /** * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ physicalSectorInBytes?: pulumi.Input; /** * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ resourceGroupName?: pulumi.Input; /** * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. * * > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. */ storagePathId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a HciVirtualHardDisk resource. */ export interface HciVirtualHardDiskArgs { /** * The block size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ blockSizeInBytes?: pulumi.Input; /** * The ID of the Custom Location where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ customLocationId: pulumi.Input; /** * The format of the disk file. Possible values are `vhdx` and `vhd`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ diskFileFormat?: pulumi.Input; /** * The size of the disk in GB. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ diskSizeInGb: pulumi.Input; /** * Whether to enable dynamic sizing for the Azure Stack HCI Virtual Hard Disk. Defaults to `false`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ dynamicEnabled?: pulumi.Input; /** * The hypervisor generation of the Azure Stack HCI Virtual Hard Disk. Possible values are `V1` and `V2`. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ hypervGeneration?: pulumi.Input; /** * The Azure Region where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ location?: pulumi.Input; /** * The logical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ logicalSectorInBytes?: pulumi.Input; /** * The name which should be used for this Azure Stack HCI Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ name?: pulumi.Input; /** * The physical sector size of the disk in bytes. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ physicalSectorInBytes?: pulumi.Input; /** * The name of the Resource Group where the Azure Stack HCI Virtual Hard Disk should exist. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. */ resourceGroupName: pulumi.Input; /** * The ID of the Azure Stack HCI Storage Path used for this Virtual Hard Disk. Changing this forces a new Azure Stack HCI Virtual Hard Disk to be created. * * > **Note:** If `storagePathId` is not specified, the Virtual Hard Disk will be placed in a high availability Storage Path. If you experience a diff you may need to add this to `ignoreChanges`. */ storagePathId?: pulumi.Input; /** * A mapping of tags which should be assigned to the Azure Stack HCI Virtual Hard Disk. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }