< Back

Get-AzureRmSqlServerUpgradeHint

Tue Jan 29, 2019 10:09 pm

NAME Get-AzureRmSqlServerUpgradeHint



SYNOPSIS

Gets pricing tier hints for upgrading an Azure SQL Database server.





SYNTAX

Get-AzureRmSqlServerUpgradeHint [-ResourceGroupName] <String> [-ServerName] <String> [-DefaultProfile <IAzureContextContainer>]

[-ExcludeElasticPools <Boolean>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmSqlServerUpgradeHint cmdlet gets pricing tier hints for upgrading an Azure SQL Database server. Hints may contain the elastic

database pool and stand-alone database hints. Databases that are still in Web and Business pricing tiers get a hint to upgrade to the new Basic,

Standard, or Premium pricing tiers, or to go into the elastic database pool. This cmdlet returns hints for all databases hosted on the specified

server.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ExcludeElasticPools <Boolean>

Indicates whether databases that are included in elastic database pools should be returned.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group to which the server is assigned.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ServerName <String>

Specifies the name of the server for which this cmdlet gets an upgrade hint.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS



NOTES









Example 1: Get combined recommendations



PS C:\\>Get-AzureRmSqlServerUpgradeHint -ResourceGroupName "ResourceGroup01" -ServerName "Server01"

ElasticPools Databases

------------ ---------

{} {database01, database02}



This command gets combined recommendations for all the databases on a server named Server01.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... pgradehint

Get-AzureRmSqlDatabaseExpanded

Get-AzureRmSqlElasticPoolRecommendation

SQL Database Documentation https://docs.microsoft.com/azure/sql-database/