'The provided database edition "" is not valid

I'm getting "The provided database edition "" is not valid." error, when importing a database using the azure api.

I'm using the endpoint from the documentation: Import to a new database.

Im getting a 202 which means it is processing the request. When I check the import/export history tab in the sql server azure portal, I see that import failed with the mentioned error.

Important:

  • If I import to a empty database using this endpont Import to existing DB, it works
  • When I do this process from the azure portal, the import works

Looks like the error only happens when importing to a new database



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source