Skip to content

az sql db update doesn't work if --edition Basic --service-objective Basic #31456

@francesco1119

Description

@francesco1119

Type of issue

Code doesn't work

Reference command name

I use az sql db update quite a lot as I have a script that scale databases.

I have no problem running it and scale Azure SQL Database to whatever tier like:

az sql db update -s MyServer -g MyResourceGroup -n MyDatabase --edition Standard --service-objective S2 --subscription "MySubscription"

Problems arrive when I run something like:

az sql db update -s MyServer -g MyResourceGroup -n MyDatabase --edition Basic --service-objective Basic --subscription "MySubscription"

In that case the database won't scale and returns the error:

Error | ERROR: (InvalidMaxSizeTierCombination) The tier 'Basic' does not support the database max size '268435456000'.

But then I scale from S0 to Basic form the Portal and everything works fine.

You don't believe it?

Look at this picture

Image

Feedback

There is a bug in the AZ SQL module when scaling to Basic.
For all other edition and tier there is no problem

Page URL

https://learn.microsoft.com/en-us/cli/azure/sql/db?view=azure-cli-latest#az-sql-db-update

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-autogen/Latest-version/latest/sql/db.yml

Author

@mikefrobbins

Document Id

4c91220f-45c6-84de-2473-07c1cd296beb

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions