azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Allow New-AzSqlDatabaseImport to create a vCore-based database

Open grrlgeek opened this issue 5 years ago • 7 comments

Currently, New-AzSqlDatabaseImport accepts -Edition <DatabaseEdition> and -ServiceObjectiveName <String>, which allow you to create a DTU-based SQL Database. However, I want to create a vCore-based SQL Database.

I'd like to see new optional parameters added.

  • -Edition would be the General Purpose/Business Critical/Hyperscale tier
  • -Vcore would be the number of vCores assigned
  • -ComputeGeneration would be Gen5, F-Series, etc.

This is in line with the parameters for New-AzSqlDatabase.

This is the code I'd like to run:

New-AzSqlDatabaseImport -DatabaseName $SQLDB -Edition $DBEdition -Vcore $Vcore -ComputeGeneration $Gen -DatabaseMaxSizeBytes $DBSize -ServerName $SqlServerName -StorageKeyType 'StorageAccessKey' -StorageKey $StorageAcctKey -StorageUri $StorageUri -AdministratorLogin $SqlAdminUser -AdministratorLoginPassword $SqlAdminPass -ResourceGroupName $RGName

grrlgeek avatar Aug 27 '20 16:08 grrlgeek

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

ghost avatar Aug 28 '20 08:08 ghost

SQL team, please help to look into this requestion.

dingmeng-xue avatar Aug 28 '20 08:08 dingmeng-xue

Is there any update on adding the vcore parameter option? I too am running into this problem when creating a database from a bacpac file.

jdennis17 avatar Dec 21 '20 18:12 jdennis17

Any update on this issue? i need this functionality too.

bdo-ca avatar May 08 '21 16:05 bdo-ca

Any updated on this???

alvipeo avatar Jun 29 '21 15:06 alvipeo

I've tried to test this with different combinations of -Edition and -ServiceObjectiveName, with no success. Please let us know when the option to use vCore will be available. The work to create a DTU database then convert to a vCore database is unnecessary.

grrlgeek avatar Jul 02 '21 14:07 grrlgeek

Hi, could you please give us an update?

CarstenMertes avatar Sep 10 '22 18:09 CarstenMertes

Any updates on this matter Microsoft? I just spend several hours debugging on this, just to realize its a known limitation for several years. Its not ideal to have, to import it as a DTU database, and then change it afterwards.

ksl28 avatar May 11 '23 09:05 ksl28

Hello, just adding my voice in here to ask if this is ever going to be implemented? Seems like a big oversight. We should also be able to create the imported database in an elastic pool.

Nullh avatar May 07 '24 14:05 Nullh