Get-AzSqlServerServiceObjective
Gets service objectives for an Azure SQL Database server.
Syntax
ByLocation (Default)
Get-AzSqlServerServiceObjective
[[-ServiceObjectiveName] <String>]
-Location <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByServer
Get-AzSqlServerServiceObjective
[[-ServiceObjectiveName] <String>]
[-ResourceGroupName] <String>
[-ServerName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Get-AzSqlServerServiceObjective cmdlet gets the available service objectives for an Azure SQL Database server.
Examples
Example 1: Get service objectives
Get-AzSqlServerServiceObjective -ResourceGroupName "ResourceGroup01" -ServerName "Server01"
serviceObjectiveName SkuName Edition Family Capacity CapacityUnit Enabled
-------------------- ------- ------- ------ -------- ------------ -------
System System System 0 DTU False
Free Free Free 5 DTU True
Basic Basic Basic 5 DTU True
S0 Standard Standard 10 DTU True
S1 Standard Standard 20 DTU True
P1 Premium Premium 125 DTU True
P2 Premium Premium 250 DTU True
DW100c DataWarehouse DataWarehouse 900 DTU False
GP_Gen4_1 GP_Gen4 GeneralPurpose Gen4 1 VCores True
GP_Gen5_2 GP_Gen5 GeneralPurpose Gen5 2 VCores True
BC_Gen4_1 BC_Gen4 BusinessCritical Gen4 1 VCores True
BC_Gen5_4 BC_Gen5 BusinessCritical Gen5 4 VCores True
This command gets the service objectives for the server named Server01.
Example 2: Get service objectives using filtering
Get-AzSqlServerServiceObjective -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -ServiceObjectiveName "P*"
ServiceObjectiveName SkuName Edition Family Capacity CapacityUnit Enabled
-------------------- ------- ------- ------ -------- ------------ -------
P1 Premium Premium 125 DTU True
P2 Premium Premium 250 DTU True
This command gets the service objectives for the server named Server01 that start with "System".
Example 3: Get service objectives for a location
Get-AzSqlServerServiceObjective -Location "west us"
serviceObjectiveName SkuName Edition Family Capacity CapacityUnit Enabled
-------------------- ------- ------- ------ -------- ------------ -------
System System System 0 DTU False
Free Free Free 5 DTU True
Basic Basic Basic 5 DTU True
S0 Standard Standard 10 DTU True
S1 Standard Standard 20 DTU True
P1 Premium Premium 125 DTU True
P2 Premium Premium 250 DTU True
DW100c DataWarehouse DataWarehouse 900 DTU False
GP_Gen4_1 GP_Gen4 GeneralPurpose Gen4 1 VCores True
GP_Gen5_2 GP_Gen5 GeneralPurpose Gen5 2 VCores True
BC_Gen4_1 BC_Gen4 BusinessCritical Gen4 1 VCores True
BC_Gen5_4 BC_Gen5 BusinessCritical Gen5 4 VCores True
This command gets the service objectives for a specified Azure region.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: SwitchParameter
Default value: False
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
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: IAzureContextContainer
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzContext, 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
-Location
The name of the Location for which to get the service objectives.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByLocation
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ResourceGroupName
Specifies the name of a resource group.
This cmdlet gets service objectives for a SQL Database server assigned to this resource.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByServer
Position: 0
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ServerName
Specifies the name of a SQL Database SQL Database server.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByServer
Position: 1
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-ServiceObjectiveName
Specifies the name of a service objective for an Azure SQL Database server.
The acceptable values for this parameter are: Basic, S0, S1, S2, P1, P2, and P3.
Parameter properties
Type: String
Default value: None
Supports wildcards: True
DontShow: False
Parameter sets
(All)
Position: 2
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: True
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: False
Supports wildcards: False
DontShow: False
Aliases: wi
Parameter sets
(All)
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 .
Outputs