< Back
Get-AzureRmDisk
Post
NAME Get-AzureRmDisk
SYNOPSIS
Gets the properties of a Managed disk.
SYNTAX
Get-AzureRmDisk [[-ResourceGroupName] <String>] [[-DiskName] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmDisk cmdlet gets the properties of a Managed disk.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DiskName <String>
Specifies the name of a disk.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of a resource group.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk
NOTES
Example 1
PS C:\\> Get-AzureRmDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01'
This command gets the properties of the disk named 'Disk01' in the resource group 'ResourceGroup01'.
Example 2
PS C:\\> Get-AzureRmDisk -ResourceGroupName 'ResourceGroup01'
This command gets the properties of all disks in the resource group 'ResourceGroup01'.
Example 3
PS C:\\> Get-AzureRmDisk
This command gets the properties of all disks under the subscription.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... zurermdisk
SYNOPSIS
Gets the properties of a Managed disk.
SYNTAX
Get-AzureRmDisk [[-ResourceGroupName] <String>] [[-DiskName] <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmDisk cmdlet gets the properties of a Managed disk.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure.
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-DiskName <String>
Specifies the name of a disk.
Required? false
Position? 2
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of a resource group.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
System.String
OUTPUTS
Microsoft.Azure.Commands.Compute.Automation.Models.PSDisk
NOTES
Example 1
PS C:\\> Get-AzureRmDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01'
This command gets the properties of the disk named 'Disk01' in the resource group 'ResourceGroup01'.
Example 2
PS C:\\> Get-AzureRmDisk -ResourceGroupName 'ResourceGroup01'
This command gets the properties of all disks in the resource group 'ResourceGroup01'.
Example 3
PS C:\\> Get-AzureRmDisk
This command gets the properties of all disks under the subscription.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... zurermdisk