Get-AzStackHCIVMVirtualHardDisk
Gets a virtual hard disk
Get-AzStackHCIVMVirtualHardDisk
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStackHCIVMVirtualHardDisk
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStackHCIVMVirtualHardDisk
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzStackHCIVMVirtualHardDisk
[-ResourceId <String>]
[-DefaultProfile <PSObject>]
[-NoWait]
[<CommonParameters>]
Gets a virtual hard disk
Get-AzStackHCIVMVirtualHardDisk -Name "testVhd" -ResourceGroupName "test-rg"
Name ResourceGroupName
---- -----------------
testVhd test-rg
This command gets a specific virtual hard disk in the specified resource group.
Get-AzStackHCIVMVirtualHardDisk -ResourceGroupName "test-rg"
Name ResourceGroupName
---- -----------------
testVhd test-rg
This command lists all virtual hard disks in the specified resource group.
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Name of the virtual hard disk
Type: | String |
Aliases: | VirtualHardDiskName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Run the command asynchronously
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The ARM ID of the virtual hard disk.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The ID of the target subscription.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Azure PowerShell feedback
Azure PowerShell is an open source project. Select a link to provide feedback: