다음을 통해 공유


Get-AzsDisk

Returns the disk.

Syntax

List (Default)

Get-AzsDisk
    [-Location <String>]
    [-SubscriptionId <String[]>]
    [-ScaleUnit <String>]
    [-SharePath <String>]
    [-Status <String>]
    [-UserSubscriptionId <String>]
    [-VolumeLabel <String>]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Get

Get-AzsDisk
    -Name <String>
    [-Location <String>]
    [-SubscriptionId <String[]>]
    [-ShowSizeDetail]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

GetViaIdentity

Get-AzsDisk
    -INPUTOBJECT
    [-ShowSizeDetail]
    [-DefaultProfile <PSObject>]
    [<CommonParameters>]

Description

Returns the disk.

Examples

-------------------------- EXAMPLE 1 --------------------------

Get-AzsDisk

-------------------------- EXAMPLE 2 --------------------------

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

ActualSizeGb : 24 DiskId : 426b8945-8a24-42ad-acdc-c26f16202489 DiskSku : Premium_LRS DiskType : Disk Id : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Compute.Admin/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 : Unattached Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/LADTEST/providers/Microsoft.Comput e/Disks/TEST_OsDisk_1_426b89458a2442adacdcc26f16202489

-------------------------- EXAMPLE 3 --------------------------

Get-AzsDisk -Count 3

ActualSizeGb : 24 DiskId : 20f1619e-4210-47f6-81e6-b89e3028df06 DiskSku : Premium_LRS DiskType : Disk Id : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Compute.Admin/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 : Unattached Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Compute.Admin/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 : Unattached Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/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/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/providers/Microsoft.Compute.Admin/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 : Unattached Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/LADTEST/providers/Microsoft.Comput e/Disks/TEST_OsDisk_1_426b89458a2442adacdcc26f16202489

-------------------------- EXAMPLE 4 --------------------------

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

ActualSizeGb : 2 DiskId : cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a DiskSku : Premium_LRS DiskType : Disk Id : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/providers/Microsoft.Compute.Admin/locations/redmond/disks/cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a Location : redmond ManagedBy : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Name : redmond/cccc2c2c-dd3d-ee4e-ff5f-aaaaaa6a6a6a ProvisionSizeGb : 30 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status : Reserved Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/RBACTEST/providers/Microsoft.Compute/Disks/test1_OsDisk_1_e4732f76075340ec80f58effdd0b437d

ActualSizeGb : 1 DiskId : dddd3d3d-ee4e-ff5f-aa6a-bbbbbb7b7b7b DiskSku : Premium_LRS DiskType : Disk Id : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/providers/Microsoft.Compute.Admin/locations/redmond/disks/dddd3d3d-ee4e-ff5f-aa6a-bbbbbb7b7b7b Location : redmond ManagedBy : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Name : redmond/dddd3d3d-ee4e-ff5f-aa6a-bbbbbb7b7b7b ProvisionSizeGb : 64 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status : Reserved Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/TESTRG1/providers/Microsoft.Compute/Disks/gpsdisk

ActualSizeGb : 1 DiskId : eeee4efe-ff5f-aa6a-bb7b-cccccc8c8c8c DiskSku : Premium_LRS DiskType : Disk Id : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/providers/Microsoft.Compute.Admin/locations/redmond/disks/eeee4efe-ff5f-aa6a-bb7b-cccccc8c8c8c Location : redmond ManagedBy : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/rbactest/providers/Microsoft.Compute/virtualMachines/test1 Name : redmond/eeee4efe-ff5f-aa6a-bb7b-cccccc8c8c8c ProvisionSizeGb : 55 SharePath : \SU1FileServer.s11r0401.masd.stbtest.microsoft.com\SU1_ObjStore_4 Status : Reserved Type : Microsoft.Compute.Admin/locations/disks UserResourceId : /subscriptions/bbbb1b1b-cc2c-dd3d-ee4e-ffffff5f5f5f/resourceGroups/RBACTEST/providers/Microsoft.Compute/Disks/testdd

Parameters

-Count

The maximum number of disks to return.

Parameter properties

Type:System.Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Parameter properties

Type:System.Management.Automation.PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-InputObject

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

Parameter properties

Type:Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.IComputeAdminIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

GetViaIdentity
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Location

Location of the resource.

Parameter properties

Type:System.String
Default value:(Get-AzLocation)[0].Location
Supports wildcards:False
DontShow:False

Parameter sets

Get
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

The disk guid as identity.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:DiskId

Parameter sets

Get
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ScaleUnit

The scale unit which the resource belongs to.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SharePath

The share which the resource belongs to.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ShowSizeDetail

Switch for whether summary or detailed disk size information is returned.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Get
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
GetViaIdentity
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Start

The start index of disks in query.

Parameter properties

Type:System.Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Status

The parameters of disk state.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SubscriptionId

Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Parameter properties

Type:

System.String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

Get
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-UserSubscriptionId

User Subscription Id which the resource belongs to.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VolumeLabel

The volume label of the volume which the resource belongs to.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

List
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

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

Outputs

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

Notes

ALIASES

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

INPUTOBJECT <IComputeAdminIdentity>: Identity Parameter

  • [DiskId <String>]: The disk guid as identity.
  • [FeatureName <String>]: Name of the feature.
  • [Id <String>]: Resource identity path
  • [Location <String>]: Location of the resource.
  • [MigrationId <String>]: The migration job guid name.
  • [Offer <String>]: Name of the offer.
  • [Publisher <String>]: Name of the publisher.
  • [QuotaName <String>]: Name of the quota.
  • [ScaleUnitName <String>]: Name of the scale unit.
  • [Sku <String>]: Name of the SKU.
  • [SubscriptionId <String>]: Subscription credentials that uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
  • [Type <String>]: Type of extension.
  • [Version <String>]: The version of the resource.