azure-native.azurestackhci.getVirtualHardDisk
Explore with Pulumi AI
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. 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 for details.
Using getVirtualHardDisk
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualHardDisk(args: GetVirtualHardDiskArgs, opts?: InvokeOptions): Promise<GetVirtualHardDiskResult>
function getVirtualHardDiskOutput(args: GetVirtualHardDiskOutputArgs, opts?: InvokeOptions): Output<GetVirtualHardDiskResult>def get_virtual_hard_disk(resource_group_name: Optional[str] = None,
                          virtual_hard_disk_name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetVirtualHardDiskResult
def get_virtual_hard_disk_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                          virtual_hard_disk_name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetVirtualHardDiskResult]func LookupVirtualHardDisk(ctx *Context, args *LookupVirtualHardDiskArgs, opts ...InvokeOption) (*LookupVirtualHardDiskResult, error)
func LookupVirtualHardDiskOutput(ctx *Context, args *LookupVirtualHardDiskOutputArgs, opts ...InvokeOption) LookupVirtualHardDiskResultOutput> Note: This function is named LookupVirtualHardDisk in the Go SDK.
public static class GetVirtualHardDisk 
{
    public static Task<GetVirtualHardDiskResult> InvokeAsync(GetVirtualHardDiskArgs args, InvokeOptions? opts = null)
    public static Output<GetVirtualHardDiskResult> Invoke(GetVirtualHardDiskInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualHardDiskResult> getVirtualHardDisk(GetVirtualHardDiskArgs args, InvokeOptions options)
public static Output<GetVirtualHardDiskResult> getVirtualHardDisk(GetVirtualHardDiskArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:azurestackhci:getVirtualHardDisk
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 - Virtual
Hard stringDisk Name  - Name of the virtual hard disk
 
- Resource
Group stringName  - The name of the resource group. The name is case insensitive.
 - Virtual
Hard stringDisk Name  - Name of the virtual hard disk
 
- resource
Group StringName  - The name of the resource group. The name is case insensitive.
 - virtual
Hard StringDisk Name  - Name of the virtual hard disk
 
- resource
Group stringName  - The name of the resource group. The name is case insensitive.
 - virtual
Hard stringDisk Name  - Name of the virtual hard disk
 
- resource_
group_ strname  - The name of the resource group. The name is case insensitive.
 - virtual_
hard_ strdisk_ name  - Name of the virtual hard disk
 
- resource
Group StringName  - The name of the resource group. The name is case insensitive.
 - virtual
Hard StringDisk Name  - Name of the virtual hard disk
 
getVirtualHardDisk Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Id string
 - Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
 - Location string
 - The geo-location where the resource lives
 - Name string
 - The name of the resource
 - Provisioning
State string - Provisioning state of the virtual hard disk.
 - Status
Pulumi.
Azure Native. Azure Stack HCI. Outputs. Virtual Hard Disk Status Response  - The observed state of virtual hard disks
 - System
Data Pulumi.Azure Native. Azure Stack HCI. Outputs. System Data Response  - Azure Resource Manager metadata containing createdBy and modifiedBy information.
 - Type string
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - Block
Size intBytes  - Block size in bytes
 - Container
Id string - Storage ContainerID of the storage container to be used for VHD
 - Create
From boolLocal  - Boolean indicating whether it is an existing local hard disk or if one should be created.
 - Disk
File stringFormat  - The format of the actual VHD file [vhd, vhdx]
 - Disk
Size doubleGB  - Size of the disk in GB
 - Download
Url string - 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.
 - Dynamic bool
 - Boolean for enabling dynamic sizing on the virtual hard disk
 - Extended
Location Pulumi.Azure Native. Azure Stack HCI. Outputs. Extended Location Response  - The extendedLocation of the resource.
 - Hyper
VGeneration string - The hypervisor generation of the Virtual Machine [V1, V2]
 - Logical
Sector intBytes  - Logical sector in bytes
 - Physical
Sector intBytes  - Physical sector in bytes
 - Dictionary<string, string>
 - Resource tags.
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - Id string
 - Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
 - Location string
 - The geo-location where the resource lives
 - Name string
 - The name of the resource
 - Provisioning
State string - Provisioning state of the virtual hard disk.
 - Status
Virtual
Hard Disk Status Response  - The observed state of virtual hard disks
 - System
Data SystemData Response  - Azure Resource Manager metadata containing createdBy and modifiedBy information.
 - Type string
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - Block
Size intBytes  - Block size in bytes
 - Container
Id string - Storage ContainerID of the storage container to be used for VHD
 - Create
From boolLocal  - Boolean indicating whether it is an existing local hard disk or if one should be created.
 - Disk
File stringFormat  - The format of the actual VHD file [vhd, vhdx]
 - Disk
Size float64GB  - Size of the disk in GB
 - Download
Url string - 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.
 - Dynamic bool
 - Boolean for enabling dynamic sizing on the virtual hard disk
 - Extended
Location ExtendedLocation Response  - The extendedLocation of the resource.
 - Hyper
VGeneration string - The hypervisor generation of the Virtual Machine [V1, V2]
 - Logical
Sector intBytes  - Logical sector in bytes
 - Physical
Sector intBytes  - Physical sector in bytes
 - map[string]string
 - Resource tags.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - id String
 - Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
 - location String
 - The geo-location where the resource lives
 - name String
 - The name of the resource
 - provisioning
State String - Provisioning state of the virtual hard disk.
 - status
Virtual
Hard Disk Status Response  - The observed state of virtual hard disks
 - system
Data SystemData Response  - Azure Resource Manager metadata containing createdBy and modifiedBy information.
 - type String
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - block
Size IntegerBytes  - Block size in bytes
 - container
Id String - Storage ContainerID of the storage container to be used for VHD
 - create
From BooleanLocal  - Boolean indicating whether it is an existing local hard disk or if one should be created.
 - disk
File StringFormat  - The format of the actual VHD file [vhd, vhdx]
 - disk
Size DoubleGB  - Size of the disk in GB
 - download
Url String - 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.
 - dynamic Boolean
 - Boolean for enabling dynamic sizing on the virtual hard disk
 - extended
Location ExtendedLocation Response  - The extendedLocation of the resource.
 - hyper
VGeneration String - The hypervisor generation of the Virtual Machine [V1, V2]
 - logical
Sector IntegerBytes  - Logical sector in bytes
 - physical
Sector IntegerBytes  - Physical sector in bytes
 - Map<String,String>
 - Resource tags.
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - id string
 - Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
 - location string
 - The geo-location where the resource lives
 - name string
 - The name of the resource
 - provisioning
State string - Provisioning state of the virtual hard disk.
 - status
Virtual
Hard Disk Status Response  - The observed state of virtual hard disks
 - system
Data SystemData Response  - Azure Resource Manager metadata containing createdBy and modifiedBy information.
 - type string
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - block
Size numberBytes  - Block size in bytes
 - container
Id string - Storage ContainerID of the storage container to be used for VHD
 - create
From booleanLocal  - Boolean indicating whether it is an existing local hard disk or if one should be created.
 - disk
File stringFormat  - The format of the actual VHD file [vhd, vhdx]
 - disk
Size numberGB  - Size of the disk in GB
 - download
Url string - 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.
 - dynamic boolean
 - Boolean for enabling dynamic sizing on the virtual hard disk
 - extended
Location ExtendedLocation Response  - The extendedLocation of the resource.
 - hyper
VGeneration string - The hypervisor generation of the Virtual Machine [V1, V2]
 - logical
Sector numberBytes  - Logical sector in bytes
 - physical
Sector numberBytes  - Physical sector in bytes
 - {[key: string]: string}
 - Resource tags.
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - id str
 - Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
 - location str
 - The geo-location where the resource lives
 - name str
 - The name of the resource
 - provisioning_
state str - Provisioning state of the virtual hard disk.
 - status
Virtual
Hard Disk Status Response  - The observed state of virtual hard disks
 - system_
data SystemData Response  - Azure Resource Manager metadata containing createdBy and modifiedBy information.
 - type str
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - block_
size_ intbytes  - Block size in bytes
 - container_
id str - Storage ContainerID of the storage container to be used for VHD
 - create_
from_ boollocal  - Boolean indicating whether it is an existing local hard disk or if one should be created.
 - disk_
file_ strformat  - The format of the actual VHD file [vhd, vhdx]
 - disk_
size_ floatgb  - Size of the disk in GB
 - download_
url str - 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.
 - dynamic bool
 - Boolean for enabling dynamic sizing on the virtual hard disk
 - extended_
location ExtendedLocation Response  - The extendedLocation of the resource.
 - hyper_
v_ strgeneration  - The hypervisor generation of the Virtual Machine [V1, V2]
 - logical_
sector_ intbytes  - Logical sector in bytes
 - physical_
sector_ intbytes  - Physical sector in bytes
 - Mapping[str, str]
 - Resource tags.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - id String
 - Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
 - location String
 - The geo-location where the resource lives
 - name String
 - The name of the resource
 - provisioning
State String - Provisioning state of the virtual hard disk.
 - status Property Map
 - The observed state of virtual hard disks
 - system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
 - type String
 - The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
 - block
Size NumberBytes  - Block size in bytes
 - container
Id String - Storage ContainerID of the storage container to be used for VHD
 - create
From BooleanLocal  - Boolean indicating whether it is an existing local hard disk or if one should be created.
 - disk
File StringFormat  - The format of the actual VHD file [vhd, vhdx]
 - disk
Size NumberGB  - Size of the disk in GB
 - download
Url String - 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.
 - dynamic Boolean
 - Boolean for enabling dynamic sizing on the virtual hard disk
 - extended
Location Property Map - The extendedLocation of the resource.
 - hyper
VGeneration String - The hypervisor generation of the Virtual Machine [V1, V2]
 - logical
Sector NumberBytes  - Logical sector in bytes
 - physical
Sector NumberBytes  - Physical sector in bytes
 - Map<String>
 - Resource tags.
 
Supporting Types
ExtendedLocationResponse  
SystemDataResponse  
- Created
At string - The timestamp of resource creation (UTC).
 - Created
By string - The identity that created the resource.
 - Created
By stringType  - The type of identity that created the resource.
 - Last
Modified stringAt  - The timestamp of resource last modification (UTC)
 - Last
Modified stringBy  - The identity that last modified the resource.
 - Last
Modified stringBy Type  - The type of identity that last modified the resource.
 
- Created
At string - The timestamp of resource creation (UTC).
 - Created
By string - The identity that created the resource.
 - Created
By stringType  - The type of identity that created the resource.
 - Last
Modified stringAt  - The timestamp of resource last modification (UTC)
 - Last
Modified stringBy  - The identity that last modified the resource.
 - Last
Modified stringBy Type  - The type of identity that last modified the resource.
 
- created
At String - The timestamp of resource creation (UTC).
 - created
By String - The identity that created the resource.
 - created
By StringType  - The type of identity that created the resource.
 - last
Modified StringAt  - The timestamp of resource last modification (UTC)
 - last
Modified StringBy  - The identity that last modified the resource.
 - last
Modified StringBy Type  - The type of identity that last modified the resource.
 
- created
At string - The timestamp of resource creation (UTC).
 - created
By string - The identity that created the resource.
 - created
By stringType  - The type of identity that created the resource.
 - last
Modified stringAt  - The timestamp of resource last modification (UTC)
 - last
Modified stringBy  - The identity that last modified the resource.
 - last
Modified stringBy Type  - The type of identity that last modified the resource.
 
- created_
at str - The timestamp of resource creation (UTC).
 - created_
by str - The identity that created the resource.
 - created_
by_ strtype  - The type of identity that created the resource.
 - last_
modified_ strat  - The timestamp of resource last modification (UTC)
 - last_
modified_ strby  - The identity that last modified the resource.
 - last_
modified_ strby_ type  - The type of identity that last modified the resource.
 
- created
At String - The timestamp of resource creation (UTC).
 - created
By String - The identity that created the resource.
 - created
By StringType  - The type of identity that created the resource.
 - last
Modified StringAt  - The timestamp of resource last modification (UTC)
 - last
Modified StringBy  - The identity that last modified the resource.
 - last
Modified StringBy Type  - The type of identity that last modified the resource.
 
VirtualHardDiskDownloadStatusResponse     
- Status string
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - Downloaded
Size doubleIn MB  - The downloaded sized of the virtual hard disk in MB
 - Progress
Percentage double - The progress of the operation in percentage
 
- Status string
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - Downloaded
Size float64In MB  - The downloaded sized of the virtual hard disk in MB
 - Progress
Percentage float64 - The progress of the operation in percentage
 
- status String
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - downloaded
Size DoubleIn MB  - The downloaded sized of the virtual hard disk in MB
 - progress
Percentage Double - The progress of the operation in percentage
 
- status string
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - downloaded
Size numberIn MB  - The downloaded sized of the virtual hard disk in MB
 - progress
Percentage number - The progress of the operation in percentage
 
- status str
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - downloaded_
size_ floatin_ mb  - The downloaded sized of the virtual hard disk in MB
 - progress_
percentage float - The progress of the operation in percentage
 
- status String
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - downloaded
Size NumberIn MB  - The downloaded sized of the virtual hard disk in MB
 - progress
Percentage Number - The progress of the operation in percentage
 
VirtualHardDiskStatusProvisioningStatusResponse      
- Status string
 - The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]
 - Operation
Id string - The ID of the operation performed on the virtual hard disk
 
- Status string
 - The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]
 - Operation
Id string - The ID of the operation performed on the virtual hard disk
 
- status String
 - The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]
 - operation
Id String - The ID of the operation performed on the virtual hard disk
 
- status string
 - The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]
 - operation
Id string - The ID of the operation performed on the virtual hard disk
 
- status str
 - The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]
 - operation_
id str - The ID of the operation performed on the virtual hard disk
 
- status String
 - The status of the operation performed on the virtual hard disk [Succeeded, Failed, InProgress]
 - operation
Id String - The ID of the operation performed on the virtual hard disk
 
VirtualHardDiskStatusResponse    
- Download
Status Pulumi.Azure Native. Azure Stack HCI. Inputs. Virtual Hard Disk Download Status Response  - The download status of the virtual hard disk
 - Error
Code string - VirtualHardDisk provisioning error code
 - Error
Message string - Descriptive error message
 - Provisioning
Status Pulumi.Azure Native. Azure Stack HCI. Inputs. Virtual Hard Disk Status Provisioning Status Response  - Provisioning status of the vhd
 - Upload
Status Pulumi.Azure Native. Azure Stack HCI. Inputs. Virtual Hard Disk Upload Status Response  - The upload status of the virtual hard disk
 
- Download
Status VirtualHard Disk Download Status Response  - The download status of the virtual hard disk
 - Error
Code string - VirtualHardDisk provisioning error code
 - Error
Message string - Descriptive error message
 - Provisioning
Status VirtualHard Disk Status Provisioning Status Response  - Provisioning status of the vhd
 - Upload
Status VirtualHard Disk Upload Status Response  - The upload status of the virtual hard disk
 
- download
Status VirtualHard Disk Download Status Response  - The download status of the virtual hard disk
 - error
Code String - VirtualHardDisk provisioning error code
 - error
Message String - Descriptive error message
 - provisioning
Status VirtualHard Disk Status Provisioning Status Response  - Provisioning status of the vhd
 - upload
Status VirtualHard Disk Upload Status Response  - The upload status of the virtual hard disk
 
- download
Status VirtualHard Disk Download Status Response  - The download status of the virtual hard disk
 - error
Code string - VirtualHardDisk provisioning error code
 - error
Message string - Descriptive error message
 - provisioning
Status VirtualHard Disk Status Provisioning Status Response  - Provisioning status of the vhd
 - upload
Status VirtualHard Disk Upload Status Response  - The upload status of the virtual hard disk
 
- download_
status VirtualHard Disk Download Status Response  - The download status of the virtual hard disk
 - error_
code str - VirtualHardDisk provisioning error code
 - error_
message str - Descriptive error message
 - provisioning_
status VirtualHard Disk Status Provisioning Status Response  - Provisioning status of the vhd
 - upload_
status VirtualHard Disk Upload Status Response  - The upload status of the virtual hard disk
 
- download
Status Property Map - The download status of the virtual hard disk
 - error
Code String - VirtualHardDisk provisioning error code
 - error
Message String - Descriptive error message
 - provisioning
Status Property Map - Provisioning status of the vhd
 - upload
Status Property Map - The upload status of the virtual hard disk
 
VirtualHardDiskUploadStatusResponse     
- Status string
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - Error
Code string - VirtualHardDisk upload error code
 - Error
Message string - Descriptive upload error message
 - Progress
Percentage double - The progress of the operation in percentage
 - Uploaded
Size doubleIn MB  - The uploaded sized of the virtual hard disk in MB
 
- Status string
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - Error
Code string - VirtualHardDisk upload error code
 - Error
Message string - Descriptive upload error message
 - Progress
Percentage float64 - The progress of the operation in percentage
 - Uploaded
Size float64In MB  - The uploaded sized of the virtual hard disk in MB
 
- status String
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - error
Code String - VirtualHardDisk upload error code
 - error
Message String - Descriptive upload error message
 - progress
Percentage Double - The progress of the operation in percentage
 - uploaded
Size DoubleIn MB  - The uploaded sized of the virtual hard disk in MB
 
- status string
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - error
Code string - VirtualHardDisk upload error code
 - error
Message string - Descriptive upload error message
 - progress
Percentage number - The progress of the operation in percentage
 - uploaded
Size numberIn MB  - The uploaded sized of the virtual hard disk in MB
 
- status str
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - error_
code str - VirtualHardDisk upload error code
 - error_
message str - Descriptive upload error message
 - progress_
percentage float - The progress of the operation in percentage
 - uploaded_
size_ floatin_ mb  - The uploaded sized of the virtual hard disk in MB
 
- status String
 - The status of Uploading virtual hard disk [Succeeded, Failed, InProgress]
 - error
Code String - VirtualHardDisk upload error code
 - error
Message String - Descriptive upload error message
 - progress
Percentage Number - The progress of the operation in percentage
 - uploaded
Size NumberIn MB  - The uploaded sized of the virtual hard disk in MB
 
Package Details
- Repository
 - Azure Native pulumi/pulumi-azure-native
 - License
 - Apache-2.0