Open leandromsft opened 11 months ago
Can anyone look into this issue since it's really dealbreaker ?
Is there anyone who can look this issue as it occurs with a widely used SKU of a very popular database on Azure ? @katbyte @tombuildsstuff
Expected behavior should be that if license_type
is omitted or set to null
, the value in state should change to reflect that.
Currently state persists the previous value, which if it was set before is incompatible with serverless skus. If the value is manually changed in state a subsequent run will apply with no errors.
isn't this a duplicate of #15455 (which seem to have been prematurely closed).
This feel like fallout from the azurerm_mssql_database resource trying to handle all three cases:
in my experience, I was able to make a module that let the caller switch from serverless vcore to DTU and back w/o issues....but once you switch to a provisioned vCore sku, you can't move off that sku and any attempt to do so will give this errror
Is there an existing issue for this?
Community Note
I'm trying to apply a SQL Server database change from Provisioned to Serverless configuring the field sku_name from GP_Gen5_2 to GP_S_Gen5_2 and I get the error below.
My terraform plan is:
Terraform Version
v1.5.6
AzureRM Provider Version
3.71.0
Affected Resource(s)/Data Source(s)
azurerm_mssql_database
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
No response
Actual Behaviour
No response
Steps to Reproduce
No response
Important Factoids
No response
References
No response