Get-AzsDisk

Retourneert de schijf.

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

Retourneert de schijf.

Voorbeelden

-------------------------- VOORBEELD 1 --------------------------

Get-AzsDisk

-------------------------- VOORBEELD 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. Beheer/locations/north west/disks/426b8945-8a24-42ad-acdc-c26f16202489 Location : northwest ManagedBy : Name : northwest/426b8945-8a24-42ad-acdc-c26f16202489 ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_3 Status: Niet-gekoppeld type: Microsoft.Compute.Beheer /locations/disks UserResourceId: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/LADTEST/providers/Microsoft.Comput e/Disks/TEST_OsDisk_1_426b89458a2442adacdcc26f16202489

-------------------------- VOORBEELD 3 --------------------------

Get-AzsDisk -Count 3

ActualSizeGb : 24 DiskId : 20f1619e-4210-47f6-81e6-b89e3028df06 DiskSku : Premium_LRS DiskType : Schijf-id: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/providers/Microsoft.Compute. Beheer/locations/north west/disks/20f1619e-4210-47f6-81e6-b89e3028df06 Location : northwest ManagedBy : Name : northwest/20f1619e-4210-47f6-81e6-b89e3028df06 ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_4 Status: Niet-gekoppeld type: Microsoft.Compute.Beheer /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. Beheer/locations/north west/disks/38a767e4-4ceb-49fb-a53c-48de9b08aaae Location : northwest ManagedBy : Name : northwest/38a767e4-4ceb-49fb-a53c-48de9b08aaae ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_4 Status: Niet-gekoppeld type: Microsoft.Compute.Beheer /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. Beheer/locations/north west/disks/426b8945-8a24-42ad-acdc-c26f16202489 Location : northwest ManagedBy : Name : northwest/426b8945-8a24-42ad-acdc-c26f16202489 ProvisionSizeGb : 127 SharePath : \SU1FileServer.azs-long02-int.selfhost.corp.microsoft.com\SU1_ObjStore_3 Status: Niet-gekoppeld type: Microsoft.Compute.Beheer /locations/disks UserResourceId: /subscriptions/74c72bdc-d917-431c-a377-8ca80f4238a0/resourceGroups/LADTEST/providers/Microsoft.Comput e/Disks/TEST_OsDisk_1_426b89458a2442adacdcc26f16202489

-------------------------- VOORBEELD 4 --------------------------

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

ActualSizeGb : 2 DiskId : e4732f76-0753-40ec-80f5-8effd0b437d DiskSku : Premium_LRS DiskType : Schijf-id: /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/providers/Microsoft.Compute. Beheer/locations/redmond/disks/e4732f76-0753-40ec-80f5-8effd0b437d Location: redmond ManagedBy : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Name : redmond/e4732f76-0753-40ec-80f5-8effdd0b437d ProvisionSizeGb : 30 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status: Gereserveerd type: Microsoft.Compute.Beheer /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 : Schijf-id: /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/providers/Microsoft.Compute. Beheer/locations/redmond/disks/0485cbc9-1efa-43bd-86c2-0e201d79c528 Location : redmond ManagedBy : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c9c /resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Name : redmond/0485cbc9-1efa-43bd-86c2-0e201d79c528 ProvisionSizeGb : 64 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status: Gereserveerd type : Microsoft.Compute.Beheer /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. Beheer/locations/redmond/disks/137893db-e7ce-4907-a488-b35c5e928614 Location: redmond ManagedBy : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c//resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Name : redmond/137893db-e7ce-4907-a488-b35c5e928614 ProvisionSizeGb : 55 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status: Gereserveerd type: Microsoft.Compute.Beheer /locations/disks UserResourceId : /subscriptions/7829c784-cd3f-464a-b195-3be83c964c9c/resourceGroups/RBACTEST/providers/Microsoft.Compute/Disks/testdd

Parameters

-Count

Het maximum aantal schijven dat moet worden geretourneerd.

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

De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure.

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

Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

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

Locatie van de resource.

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

De schijf-GUID als identiteit.

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

De schaaleenheid waartoe de resource behoort.

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

De share waartoe de resource behoort.

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

Schakel over of er informatie over de samenvattings- of gedetailleerde schijfgrootte wordt geretourneerd.

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

De beginindex van schijven in de query.

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

De parameters van de schijfstatus.

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

Abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke serviceoproep.

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

Gebruikersabonnements-id waartoe de resource behoort.

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

Het volumelabel van het volume waartoe de resource behoort.

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

Invoerwaarden

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

Uitvoerwaarden

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

Notities

ALIASSEN

EIGENSCHAPPEN VAN COMPLEXE PARAMETERS

Als u de hieronder beschreven parameters wilt maken, maakt u een hash-tabel met de juiste eigenschappen. Voer Get-Help about_Hash_Tables uit voor informatie over hashtabellen.

INPUTOBJECT <IComputeAdminIdentity>: Id-parameter

  • [DiskId <String>]: de schijf-GUID als identiteit.
  • [FeatureName <String>]: Naam van de functie.
  • [Id <String>]: Resource-id-pad
  • [Location <String>]: Locatie van de resource.
  • [MigrationId <String>]: de guid-naam van de migratietaak.
  • [Offer <String>]: Naam van de aanbieding.
  • [Publisher <String>]: Naam van de uitgever.
  • [QuotaName <String>]: Naam van het quotum.
  • [ScaleUnitName <String>]: Naam van de schaaleenheid.
  • [Sku <String>]: Naam van de SKU.
  • [SubscriptionId <String>]: Abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke serviceoproep.
  • [Type <String>]: Type extensie.
  • [Version <String>]: De versie van de resource.