Automate Azure SQL edition (from Standard to Basic)

Felipe silveira 101 Reputation points
2021-02-23T18:24:07.82+00:00

Hello, I'm trying to figure it out how to change Azure SQL tier using automation. During the day I will use Standard S0 and during the night I want to reduce to Basic. My question is about parameter perflevel. Edition -> "Basic" PerfLevel -> [EmptyString] ?

Azure SQL Database
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,134 questions
0 comments No comments
{count} votes

Accepted answer
  1. Felipe silveira 101 Reputation points
    2021-02-24T12:51:04.12+00:00

    Solved!

    Perflevel must be: "Basic"

    Edition: "Basic"

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Anurag Sharma 17,576 Reputation points
    2021-02-24T06:19:51.847+00:00

    Hi @Felipe silveira , welcome to Microsoft QnA forum.

    You can set the perfLevel as any of these S0, S1, S2, S3, P1, P2, P3 etc. You can find the complete list below. Again as per edition we need to select these.

    Resource limits for single databases using the DTU purchasing model - Azure SQL Database

    Please let us know if this helps.

    ----------

    If answer helps, please mark it 'Accept Answer'

    0 comments No comments

  2. Felipe silveira 101 Reputation points
    2021-02-24T12:08:33.76+00:00

    Hi @AnuragSharma-MSFT, thanks for the answer.

    But my doubt is how to set perflevel of basic tier. I try to leave field empty but doesn't work.

    71587-basic.jpg

    0 comments No comments

  3. Felipe silveira 101 Reputation points
    2021-02-24T12:11:23.06+00:00

    I receive this erros from the job log:

    Cannot validate argument on parameter 'ServiceObjectiveName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. At Set-AzureSqlDatabaseEdition:71 char:71 + + CategoryInfo : InvalidData: (:) [Get-AzureSqlDatabaseServiceObjective], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.WindowsAzure.Commands.SqlDatabase.Database.Cmdl et.GetAzureSqlDatabaseServiceObjective

    0 comments No comments