Get-AzSqlInstancePoolUsage
Returnerar information om användning av en Azure SQL Instance-pool.
Syntax
Get-AzSqlInstancePoolUsage
[-ResourceGroupName] <String>
[-Name] <String>
[-ExpandChildren]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSqlInstancePoolUsage
[-InstancePool] <AzureSqlInstancePoolModel>
[-ExpandChildren]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSqlInstancePoolUsage
[-ResourceId] <String>
[-ExpandChildren]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzSqlInstancePoolUsage returnerar information om användningen av en Azure SQL-instanspool.
Exempel
Exempel 1: Hämtar användningen av en Azure SQL-instanspool
Get-AzSqlInstancePoolUsage -ResourceGroupName resourcegroup01 -Name instancepool0
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/vcore_utilization
CurrentValue : 2
Limit : 8
RequestedLimit :
Unit : VCores
Name : VCore utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/storage_utilization
CurrentValue : 32
Limit : 8192
RequestedLimit :
Unit : Gigabytes
Name : Storage utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/database_utilization
CurrentValue : 0
Limit : 100
RequestedLimit :
Unit : Number Of Databases
Name : Database utilization
Type : Microsoft.Sql/instancePools/usages
Hämtar användningen för Azure SQL Instance-poolinstanspool0.
Exempel 2: Hämtar användningen av en Azure SQL Instance-pool med hjälp av ett instanspoolobjekt
$instancePool = Get-AzSqlInstancePool -ResourceGroupName resourcegroup01 -Name instancepool0
Get-AzSqlInstancePoolUsage -InstancePool $instancePool
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/vcore_utilization
CurrentValue : 2
Limit : 8
RequestedLimit :
Unit : VCores
Name : VCore utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/storage_utilization
CurrentValue : 32
Limit : 8192
RequestedLimit :
Unit : Gigabytes
Name : Storage utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/database_utilization
CurrentValue : 0
Limit : 100
RequestedLimit :
Unit : Number Of Databases
Name : Database utilization
Type : Microsoft.Sql/instancePools/usages
Hämtar användningen för Azure SQL Instance-poolinstanspool0 med hjälp av ett instanspoolobjekt.
Exempel 3: Hämtar användningen av en Azure SQL Instance-pool med hjälp av ett resurs-ID för instanspoolen
Get-AzSqlInstancePoolUsage -ResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancePool0"
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/vcore_utilization
CurrentValue : 2
Limit : 8
RequestedLimit :
Unit : VCores
Name : VCore utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/storage_utilization
CurrentValue : 32
Limit : 8192
RequestedLimit :
Unit : Gigabytes
Name : Storage utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/database_utilization
CurrentValue : 0
Limit : 100
RequestedLimit :
Unit : Number Of Databases
Name : Database utilization
Type : Microsoft.Sql/instancePools/usages
Hämtar användningen för Azure SQL Instance-poolinstanspool0 med hjälp av en resursidentifierare för instanspoolen.
Exempel 3: Hämtar användningen av en Azure SQL Instance-pool med en uppdelning av användningen av hanterade instanser i poolen.
Get-AzSqlInstancePoolUsage -ResourceGroupName resourcegroup01 -Name instancepool0 -ExpandChildren
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/vcore_utilization
CurrentValue : 2
Limit : 8
RequestedLimit :
Unit : VCores
Name : VCore utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/storage_utilization
CurrentValue : 32
Limit : 8192
RequestedLimit :
Unit : Gigabytes
Name : Storage utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourcegroup01/providers/Microsoft.Sql/instancePools/instancepool0/usages/database_utilization
CurrentValue : 0
Limit : 100
RequestedLimit :
Unit : Number Of Databases
Name : Database utilization
Type : Microsoft.Sql/instancePools/usages
Id : /subscriptions/2e7fe4bd-90c7-454e-8bb6-dc44649f27b2/resourceGroups/poolsPS/providers/Microsoft.Sql/instancePools/instancepool0/managedInstances/managedinstance0/usages/vcore_utilization
CurrentValue :
Limit : 2
RequestedLimit :
Unit : VCores
Name : VCore utilization
Type : Microsoft.Sql/instancePools/managedInstances/usages
Id : /subscriptions/2e7fe4bd-90c7-454e-8bb6-dc44649f27b2/resourceGroups/poolsPS/providers/Microsoft.Sql/instancePools/instancepool0/managedInstances/managedinstance0/usages/storage_utilization
CurrentValue :
Limit : 32
RequestedLimit :
Unit : Gigabytes
Name : Storage utilization
Type : Microsoft.Sql/instancePools/managedInstances/usages
Id : /subscriptions/2e7fe4bd-90c7-454e-8bb6-dc44649f27b2/resourceGroups/poolsPS/providers/Microsoft.Sql/instancePools/instancepool0/managedInstances/managedinstance0/usages/database_utilization
CurrentValue : 0
Limit : 100
RequestedLimit :
Unit : Number Of Databases
Name : Database utilization
Type : Microsoft.Sql/instancePools/managedInstances/usages
Hämtar användningen för Azure SQL Instance-poolinstanspool0 tillsammans med användningen av de hanterade instanserna i instancepool0.
Parametrar
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ExpandChildren
Flagga som anger om instanspoolens användning ska utökas med dess underordnade användning.
Typ: | SwitchParameter |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-InstancePool
Det överordnade instanspoolobjektet.
Typ: | AzureSqlInstancePoolModel |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Name
Namnet på den hanterade instanspoolen.
Typ: | String |
Alias: | InstancePoolName |
Position: | 1 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceGroupName
Resursgruppens namn.
Typ: | String |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-ResourceId
Det överordnade resurs-ID:t.
Typ: | String |
Alias: | InstancePoolResourceId |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
Utdata
Azure PowerShell