Get-AzDisk
Ruft die Eigenschaften eines verwalteten Datenträgers ab.
Syntax
Get-AzDisk
[[-ResourceGroupName] <String>]
[[-DiskName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Beschreibung
Das Cmdlet "Get-AzDisk " ruft die Eigenschaften eines verwalteten Datenträgers ab.
Beispiele
Beispiel 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 : {}
Dieser Befehl ruft die Eigenschaften des Datenträgers mit dem Namen "Disk01" in der Ressourcengruppe "ResourceGroup01" ab.
Beispiel 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 : {}
Dieser Befehl ruft die Eigenschaften aller Datenträger in der Ressourcengruppe "ResourceGroup01" ab.
Beispiel 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 : {}
Dieser Befehl ruft die Eigenschaften aller Datenträger unter dem Abonnement ab.
Beispiel 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 : {}
Dieser Befehl ruft die Eigenschaften aller Datenträger unter dem Abonnementnamen ab, beginnend mit win1_OsDisk.
Parameter
-DefaultProfile
Die Anmeldeinformationen, Konten, Mandanten und Abonnements, die für die Kommunikation mit Azure verwendet werden.
Typ: | IAzureContextContainer |
Aliase: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
-DiskName
Gibt den Namen eines Datenträgers an.
Typ: | String |
Aliase: | Name |
Position: | 1 |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | True |
-ResourceGroupName
Gibt den Namen einer Ressourcengruppe an.
Typ: | String |
Position: | 0 |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | True |