共用方式為


Get-AzElasticSan

從訂用帳戶或資源群組取得彈性 SAN 清單,或取得單一彈性 SAN。

語法

Get-AzElasticSan
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzElasticSan
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzElasticSan
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzElasticSan
   -InputObject <IElasticSanIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

從訂用帳戶或資源群組取得彈性 SAN 清單,或取得單一彈性 SAN。

範例

範例 1:取得訂用帳戶中的所有彈性 SAN

Get-AzElasticSan

AvailabilityZone             :
BaseSizeTiB                  : 1
ExtendedCapacitySizeTiB      : 6
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup
                               /providers/Microsoft.ElasticSan/elasticSans/myelasticsan1
Location                     : eastus
Name                         : myelasticsan1
ProvisioningState            : Succeeded
SkuName                      : Premium_LRS
SkuTier                      :
SystemDataCreatedAt          : 9/19/2022 9:50:25 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 9/19/2022 9:50:25 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
TotalIops                    : 5000
TotalMBps                    : 80
TotalSizeTiB                 : 7
TotalVolumeSizeGiB           : 0
Type                         : Microsoft.ElasticSan/ElasticSans
VolumeGroupCount             : 0

AvailabilityZone             :
BaseSizeTiB                  : 1
ExtendedCapacitySizeTiB      : 6
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr
                               osoft.ElasticSan/elasticSans/myelasticsan2
Location                     : eastus
Name                         : myelasticsan2
ProvisioningState            : Succeeded
SkuName                      : Premium_LRS
SkuTier                      :
SystemDataCreatedAt          : 8/18/2022 8:42:21 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/18/2022 8:42:21 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
TotalIops                    : 5000
TotalMBps                    : 80
TotalSizeTiB                 : 7
TotalVolumeSizeGiB           : 100
Type                         : Microsoft.ElasticSan/ElasticSans
VolumeGroupCount             : 7

此命令會取得訂用帳戶中的所有彈性 SAN。

範例 2:取得資源群組中的所有彈性 Sans

Get-AzElasticSan -ResourceGroupName myresourcegroup

AvailabilityZone             :
BaseSizeTiB                  : 1
ExtendedCapacitySizeTiB      : 6
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup
                               /providers/Microsoft.ElasticSan/elasticSans/myelasticsan1
Location                     : eastus
Name                         : myelasticsan1
ProvisioningState            : Succeeded
SkuName                      : Premium_LRS
SkuTier                      :
SystemDataCreatedAt          : 9/19/2022 9:50:25 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 9/19/2022 9:50:25 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
TotalIops                    : 5000
TotalMBps                    : 80
TotalSizeTiB                 : 7
TotalVolumeSizeGiB           : 0
Type                         : Microsoft.ElasticSan/ElasticSans
VolumeGroupCount             : 0

AvailabilityZone             :
BaseSizeTiB                  : 1
ExtendedCapacitySizeTiB      : 6
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr
                               osoft.ElasticSan/elasticSans/myelasticsan2
Location                     : eastus
Name                         : myelasticsan2
ProvisioningState            : Succeeded
SkuName                      : Premium_LRS
SkuTier                      :
SystemDataCreatedAt          : 8/18/2022 8:42:21 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/18/2022 8:42:21 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
TotalIops                    : 5000
TotalMBps                    : 80
TotalSizeTiB                 : 7
TotalVolumeSizeGiB           : 100
Type                         : Microsoft.ElasticSan/ElasticSans
VolumeGroupCount             : 7

此命令會取得資源群組中的所有彈性 SAN。

範例 3:取得特定的彈性 SAN

Get-AzElasticSan -ResourceGroupName myresourcegroup -Name myelasticsan

AvailabilityZone             :
BaseSizeTiB                  : 1
ExtendedCapacitySizeTiB      : 6
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myresourcegroup/providers/Micr
                               osoft.ElasticSan/elasticSans/myelasticsan
Location                     : eastus
Name                         : myelasticsan
ProvisioningState            : Succeeded
SkuName                      : Premium_LRS
SkuTier                      :
SystemDataCreatedAt          : 8/18/2022 8:42:21 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 8/18/2022 8:42:21 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.ElasticSan.Models.Api20211120Preview.ResourceTags
TotalIops                    : 5000
TotalMBps                    : 80
TotalSizeTiB                 : 7
TotalVolumeSizeGiB           : 100
Type                         : Microsoft.ElasticSan/ElasticSans
VolumeGroupCount             : 7

此命令會取得特定的彈性 SAN。

參數

-DefaultProfile

DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。

類型:PSObject
別名:AzureRMContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InputObject

Identity 參數

類型:IElasticSanIdentity
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-Name

ElasticSan 的名稱。

類型:String
別名:ElasticSanName
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-ResourceGroupName

資源群組的名稱。 名稱不區分大小寫。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-SubscriptionId

目標訂用帳戶的標識碼。

類型:String[]
Position:Named
預設值:(Get-AzContext).Subscription.Id
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

IElasticSanIdentity

輸出

IElasticSan