Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az sql db create returns error that contradicts itself #11926

Closed
Jtango18 opened this issue Jan 23, 2020 · 7 comments
Closed

az sql db create returns error that contradicts itself #11926

Jtango18 opened this issue Jan 23, 2020 · 7 comments
Assignees
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. SQL az sql

Comments

@Jtango18
Copy link

Jtango18 commented Jan 23, 2020

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
``

Errors:

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

-Ensure you have database server created with name set to $serverName

  • Execute the following:
az sql db create \
--resource-group $resourceGroupName \
--server $serverName \
--name myTestDatabase \
--edition GeneralPurpose \
--family Gen5 \
--capacity 1 \
--zone-redundant false

This returns an error showing an invalid SKU has been specified.

Could not find sku in tier 'GeneralPurpose' with family 'Gen5', capacity 1. Supported families & capacities for 'GeneralPurpose' are: [('Gen5', 1), ...

The very first Family/Capacity pair is identical to the one specified in the command.
Switching to Capacity 2, works as expected.
Suspect this is related to Serverless DB vs Provisioned Compute

Expected Behavior

Either:

  • Creates the database
  • Shows an error as to why specified data is invalid

Environment Summary

Linux-4.15.0-1066-azure-x86_64-with-debian-stretch-sid
Python 3.6.5
Shell: bash

azure-cli 2.0.80

Additional Context

@jiasli jiasli added the SQL az sql label Jan 23, 2020
@jiasli jiasli added the Service Attention This issue is responsible by Azure service team. label Jan 23, 2020
@ghost
Copy link

ghost commented Jan 23, 2020

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub

@jeroenterheerdt
Copy link

@jaredmoo

@jaredmoo
Copy link
Contributor

Yes, it's because of serverless. You'll see that below are smallest available capacities:

> az sql db list-editions -l westus -o table
ServiceObjective    Sku            Edition           Family    Capacity    Unit    Available
------------------  -------------  ----------------  --------  ----------  ------  ----------
GP_S_Gen5_1         GP_S_Gen5      GeneralPurpose    Gen5      1           VCores  True
GP_Gen5_2           GP_Gen5        GeneralPurpose    Gen5      2           VCores  True

Let me take a look at how we can fix this.

@jaredmoo
Copy link
Contributor

I chatted with @weizeng-msft and he will fix this. Thank you for reporting this issue!

@OsaPL
Copy link

OsaPL commented May 18, 2020

Still happening :(
Powershell Win10 x64

Getting available:

>az sql db list-editions -l centralus -o table
ServiceObjective    Sku            Edition           Family    Capacity    Unit    Available
------------------  -------------  ----------------  --------  ----------  ------  -----------
Basic               Basic          Basic                       5           DTU     True

Creating server:

>az sql server create --name $authNameServer `
                     --admin-password 1337_Pass `
                     --admin-user hackerman `
                     --resource-group $resourceGroup `
                     --location centralus

And finally the Db:

>az sql db create --name $authNameDb `
                 --resource-group $resourceGroup `
                 --server $authNameServer `
                 --compute-model Serverless `
                 --capacity 5 `
                 --edition Basic `
                 --family None

az : Could not find sku in tier 'Basic' with family 'None', capacity 5. Supported families & capacities for 'Basic' are: [(None, 5)]. Please specify one of these supported combinations of family and capacity.
At line:15 char:1
+ az sql db create --name $authNameDb `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (Could not find ...y and capacity.:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

@NBroomfield
Copy link

+1 I'm getting the same issue, any update on this?

@RakeshMohanMSFT RakeshMohanMSFT self-assigned this Aug 8, 2022
@RakeshMohanMSFT RakeshMohanMSFT added the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Aug 8, 2022
@RakeshMohanMSFT
Copy link
Contributor

Duplicate issue of #13600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. SQL az sql
Projects
None yet
Development

No branches or pull requests

7 participants