Get-AzDisk
Obtém as propriedades de um disco gerenciado.
Sintaxe
Get-AzDisk
[[-ResourceGroupName] <String>]
[[-DiskName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
O cmdlet Get-AzDisk obtém as propriedades de um disco gerenciado.
Exemplos
Exemplo 1
Get-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01'
ResourceGroupName : ResourceGroup01
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:26:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compu
te/disks/Disk01
Name : Disk01
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
Este comando obtém as propriedades do disco chamado 'Disk01' no grupo de recursos 'ResourceGroup01'.
Exemplo 2
Get-AzDisk -ResourceGroupName 'ResourceGroup01'
ResourceGroupName : ResourceGroup01
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:26:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compu
te/disks/win1_OsDisk_1
Name : win1_OsDisk_1
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroup01
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:27:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compu
te/disks/win1_OsDisk_2
Name : win1_OsDisk_2
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
Este comando obtém as propriedades de todos os discos no grupo de recursos 'ResourceGroup01'.
Exemplo 3
Get-AzDisk
ResourceGroupName : ResourceGroup01
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:26:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compu
te/disks/win1_OsDisk_1
Name : win1_OsDisk_1
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroup02
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:27:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup02/providers/Microsoft.Compu
te/disks/win1_OsDisk_2
Name : win1_OsDisk_2
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
Este comando obtém as propriedades de todos os discos sob a assinatura.
Exemplo 4
Get-AzDisk -Name win_OsDisk*
ResourceGroupName : ResourceGroup01
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:26:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup01/providers/Microsoft.Compu
te/disks/win1_OsDisk_1
Name : win1_OsDisk_1
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroup02
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.DiskSku
Zones :
TimeCreated : 6/29/2018 4:27:27 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
DiskIOPSReadWrite : 500
DiskMBpsReadWrite : 100
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/ResourceGroup02/providers/Microsoft.Compu
te/disks/win1_OsDisk_2
Name : win1_OsDisk_2
Type : Microsoft.Compute/disks
Location : westus2
Tags : {}
Este comando obtém as propriedades de todos os discos sob o nome da assinatura, começando com win1_OsDisk.
Parâmetros
-DefaultProfile
As credenciais, a conta, o locatário e a assinatura usados para comunicação com o azure.
Tipo: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | False |
Aceitar carateres universais: | False |
-DiskName
Especifica o nome de um disco.
Tipo: | String |
Aliases: | Name |
Position: | 1 |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | True |
-ResourceGroupName
Especifica o nome de um grupo de recursos.
Tipo: | String |
Position: | 0 |
Default value: | None |
Necessário: | False |
Aceitar entrada de pipeline: | True |
Aceitar carateres universais: | True |