Get-AzsDisk

Returnerar disken.

Syntax

Get-AzsDisk
   [-Location <String>]
   [-SubscriptionId <String[]>]
   [-Count \<Int32>]
   [-ScaleUnit <String>]
   [-SharePath <String>]
   [-Start \<Int32>]
   [-Status <String>]
   [-UserSubscriptionId <String>]
   [-VolumeLabel <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzsDisk
   -Name <String>
   [-Location <String>]
   [-SubscriptionId <String[]>]
   [-ShowSizeDetail]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzsDisk
   -INPUTOBJECT \<IComputeAdminIdentity>
   [-ShowSizeDetail]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

Returnerar disken.

Exempel

-------------------------- EXEMPEL 1 --------------------------

Get-AzsDisk

-------------------------- EXEMPEL 2 --------------------------

Get-AzsDisk -Name "426b8945-8a24-42ad-acdc-c26f16202489"

ActualSizeGb: 24 DiskId: 426b8945-8a24-42ad-acdc-c26f16202489 DiskSku : Premium_LRS DiskType : Disk-ID: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/providers/Microsoft.Compute. Admin/locations/north west/disks/426b8945-8a24-42ad-acdc-c26f16202489 Plats: northwest ManagedBy : Name : northwest/426b894 5-8a24-42ad-acdc-c26f16202489 ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_3 Status : Ej ansluten typ: Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/LADTEST/providers/Microsoft.Comput e/Disks/TEST_OsDisk_1_426b89458a2442adacdcc26f16202489

-------------------------- EXEMPEL 3 --------------------------

Get-AzsDisk -Count 3

ActualSizeGb: 24 DiskId: 20f1619e-4210-47f6-81e6-b89e3028df06 DiskSku : Premium_LRS DiskType: Disk-ID: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/providers/Microsoft.Compute. Admin/locations/north west/disks/20f1619e-4210-47f6-81e6-b89e3028df06 Plats: northwest ManagedBy : Name : northwest/20f1619e-4210-47f6-81e6-b89e3028df06 ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_4 Status: Ej ansluten typ : Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/RG1/providers/Microsoft.Compute/Di sks/TEST_OsDisk_1_20f1619e421047f681e6b89e3028df06

ActualSizeGb: 24 DiskId: 38a767e4-4ceb-49fb-a53c-48de9b08aaae DiskSku : Standard_LRS DiskType: Disk-ID: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/providers/Microsoft.Compute. Admin/locations/north west/disks/38a767e4-4ceb-49fb-a53c-48de9b08aaae Plats: northwest ManagedBy : Name : northwest/38a767e 4-4ceb-49fb-a53c-48de9b08aaae ProvisionSizeGb: 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_4 Status: Ej ansluten typ : Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/SCTE/providers/Microsoft.Compute/D isks/SCTETest_OsDisk_1_38a767e44ceb49fba53c48de9b08aaae

ActualSizeGb: 24 DiskId: 426b8945-8a24-42ad-acdc-c26f16202489 DiskSku : Premium_LRS DiskType : Disk-ID: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/providers/Microsoft.Compute. Admin/locations/north west/disks/426b8945-8a24-42ad-acdc-c26f16202489 Plats: northwest ManagedBy : Name : northwest/426b894 5-8a24-42ad-acdc-c26f16202489 ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_3 Status : Ej ansluten typ: Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/LADTEST/providers/Microsoft.Comput e/Disks/TEST_OsDisk_1_426b89458a2442adacdcc26f16202489

-------------------------- EXEMPEL 4 --------------------------

Get-AzsDisk -Status All -ScaleUnit s-cluster -VolumeLabel Objstore_4

ActualSizeGb: 2 DiskId: e4732f76-0753-40ec-80f5-8effdd0b437d DiskSku : Premium_LRS DiskType: Disk-ID: /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/providers/Microsoft.Compute. Admin/locations/redmond/disks/e4732f76-0753-40ec-80f5-8effdd0b437d Plats: redmond ManagedBy : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Namn: redmond/e4732f76-0753-40ec-80f5-8effdd0b437d ProvisionSizeGb: 30 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status: Reserverad typ: Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/RBACTEST/providers/Microsoft.Compute/Disks/test1_OsDisk_1_e4732f76075340ec80f58effdd0b437d

ActualSizeGb: 1 DiskId: 0485cbc9-1efa-43bd-86c2-0e201d79c528 DiskSku : Premium_LRS DiskType: Disk-ID: /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/providers/Microsoft.Compute. Admin/locations/redmond/disks/0485cbc9-1efa-43bd-86c2-0e201d79c528 Plats: redmond ManagedBy : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Namn: redmond/0485cbc9-1efa-43bd-86c2-0e201d79c528 ProvisionSizeGb: 64 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status: Reserverad typ: Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/TESTRG1/providers/Microsoft.Compute/Disks/gpsdisk

ActualSizeGb: 1 DiskId: 137893db-e7ce-4907-a488-b35c5e928614 DiskSku : Premium_LRS DiskType : Disk-ID: /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/providers/Microsoft.Compute. Admin/locations/redmond/disks/137893db-e7ce-4907-a488-b35c5e928614 Plats: redmond ManagedBy : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Namn: redmond/137893db-e7ce-4907-a488-b35c5e928614 ProvisionSizeGb: 55 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status: Reserverad typ: Microsoft.Compute.Admin /locations/disks UserResourceId : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/RBACTEST/providers/Microsoft.Compute/Disks/testdd

Parametrar

-Count

Det maximala antalet diskar som ska returneras.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

Autentiseringsuppgifterna, kontot, klientorganisationen och prenumerationen som används för kommunikation med Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

Identitetsparameter Att skapa finns i avsnittet ANTECKNINGAR för INPUTOBJECT-egenskaper och skapa en hash-tabell.

Type:Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.IComputeAdminIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Location

Platsen för resursen.

Type:String
Position:Named
Default value:(Get-AzLocation)[0].Location
Accept pipeline input:False
Accept wildcard characters:False
-Name

Disk-GUID som identitet.

Type:String
Aliases:DiskId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ScaleUnit

Skalningsenheten som resursen tillhör.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SharePath

Resursen som resursen tillhör.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ShowSizeDetail

Växla om du vill ange om sammanfattnings- eller detaljerad information om diskstorlek ska returneras.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Start

Startindexet för diskar i frågan.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Status

Parametrarna för disktillstånd.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubscriptionId

Autentiseringsuppgifter för prenumeration som unikt identifierar Microsoft Azure-prenumeration. Prenumerations-ID:t utgör en del av URI:n för varje tjänstanrop.

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False
-UserSubscriptionId

Användarprenumerations-ID som resursen tillhör.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VolumeLabel

Volymetiketten för volymen som resursen tillhör.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Indata

Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.IComputeAdminIdentity

Utdata

Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk

Kommentarer

ALIAS

EGENSKAPER FÖR KOMPLEXA PARAMETRAR

Skapa parametrarna som beskrivs nedan genom att skapa en hash-tabell som innehåller lämpliga egenskaper. Om du vill ha information om hash-tabeller kör du Get-Help about_Hash_Tables.

INPUTOBJECT <IComputeAdminIdentity>: Identitetsparameter

  • [DiskId <String>]: Diskens GUID som identitet.
  • [FeatureName <String>]: Namnet på funktionen.
  • [Id <String>]: Resursidentitetssökväg
  • [Location <String>]: Platsen för resursen.
  • [MigrationId <String>]: Guid-namnet för migreringsjobbet.
  • [Offer <String>]: Namnet på erbjudandet.
  • [Publisher <String>]: Utgivarens namn.
  • [QuotaName <String>]: Namnet på kvoten.
  • [ScaleUnitName <String>]: Namnet på skalningsenheten.
  • [Sku <String>]: Namnet på SKU:n.
  • [SubscriptionId <String>]: Prenumerationsautentiseringsuppgifter som unikt identifierar Microsoft Azure-prenumeration. Prenumerations-ID:t utgör en del av URI:n för varje tjänstanrop.
  • [Type <String>]: Typ av tillägg.
  • [Version <String>]: Resursversionen.