Get-AzDisk
Mendapatkan properti disk Terkelola.
Sintaks
Get-AzDisk
[[-ResourceGroupName] <String>]
[[-DiskName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzDisk mendapatkan properti disk Terkelola.
Contoh
Contoh 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 : {}
Perintah ini mendapatkan properti disk bernama 'Disk01' di grup sumber daya 'ResourceGroup01'.
Contoh 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 : {}
Perintah ini mendapatkan properti semua disk dalam grup sumber daya 'ResourceGroup01'.
Contoh 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 : {}
Perintah ini mendapatkan properti semua disk di bawah langganan.
Contoh 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 : {}
Perintah ini mendapatkan properti semua disk di bawah nama langganan yang dimulai dengan win1_OsDisk.
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure.
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-DiskName
Menentukan nama disk.
Jenis: | String |
Alias: | Name |
Position: | 1 |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | True |
Terima karakter wildcard: | True |
-ResourceGroupName
Menentukan nama grup sumber daya.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | True |
Terima karakter wildcard: | True |
Input
Output
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure PowerShell