@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets a virtual hard disk
*
* Uses Azure REST API version 2025-02-01-preview.
*
* Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview, 2025-06-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurestackhci [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getVirtualHardDisk(args: GetVirtualHardDiskArgs, opts?: pulumi.InvokeOptions): Promise<GetVirtualHardDiskResult>;
export interface GetVirtualHardDiskArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Name of the virtual hard disk
*/
virtualHardDiskName: string;
}
/**
* The virtual hard disk resource definition.
*/
export interface GetVirtualHardDiskResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Block size in bytes
*/
readonly blockSizeBytes?: number;
/**
* Storage ContainerID of the storage container to be used for VHD
*/
readonly containerId?: string;
/**
* Boolean indicating whether it is an existing local hard disk or if one should be created.
*/
readonly createFromLocal?: boolean;
/**
* The format of the actual VHD file [vhd, vhdx]
*/
readonly diskFileFormat?: string;
/**
* Size of the disk in GB
*/
readonly diskSizeGB?: number;
/**
* URL for downloading or accessing the virtual hard disk. This URL points to a secure link from where the VHD can be downloaded or accessed directly.
*/
readonly downloadUrl?: string;
/**
* Boolean for enabling dynamic sizing on the virtual hard disk
*/
readonly dynamic?: boolean;
/**
* The extendedLocation of the resource.
*/
readonly extendedLocation?: outputs.azurestackhci.ExtendedLocationResponse;
/**
* The hypervisor generation of the Virtual Machine [V1, V2]
*/
readonly hyperVGeneration?: string;
/**
* Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
*/
readonly id: string;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* Logical sector in bytes
*/
readonly logicalSectorBytes?: number;
/**
* The name of the resource
*/
readonly name: string;
/**
* Physical sector in bytes
*/
readonly physicalSectorBytes?: number;
/**
* Provisioning state of the virtual hard disk.
*/
readonly provisioningState: string;
/**
* The observed state of virtual hard disks
*/
readonly status: outputs.azurestackhci.VirtualHardDiskStatusResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.azurestackhci.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Gets a virtual hard disk
*
* Uses Azure REST API version 2025-02-01-preview.
*
* Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview, 2025-06-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native azurestackhci [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getVirtualHardDiskOutput(args: GetVirtualHardDiskOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVirtualHardDiskResult>;
export interface GetVirtualHardDiskOutputArgs {
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the virtual hard disk
*/
virtualHardDiskName: pulumi.Input<string>;
}