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

Long Term Retention is not supported : Not supported for database with Free edition. #16231

Closed
1 task done
AlexPaskhin opened this issue Apr 2, 2022 · 3 comments · Fixed by #26894
Closed
1 task done
Labels
enhancement service/mssql Microsoft SQL Server upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR v/3.x
Milestone

Comments

@AlexPaskhin
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.1.7

AzureRM Provider Version

3.0.2

Affected Resource(s)/Data Source(s)

azurerm_mssql_database

Terraform Configuration Files

resource "azurerm_mssql_database" "mps_mssqldb" {
  name                 = "mps_db"
  server_id            = azurerm_mssql_server.mps_mssql.id
  collation            = "SQL_Latin1_General_CP1_CI_AS"
  sku_name             = var.sql_sku_name
  read_scale           = "false"
  zone_redundant       = "Local"
  storage_account_type = "Free"
}

Debug Output/Panic Output

│ Error: retrieving Long Term Retention Policies for Database: (Name "mps_db" / Server Name "dev-mps-mssql" / Resource Group "dev-rg-mps-spa-studio-wallsmedia"): sql.LongTermRetentionPoliciesClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="LongTermRetentionPolicyNotSupported" Message="Long Term Retention is not supported : Not supported for database with Free edition."
│
│   with azurerm_mssql_database.mps_mssqldb,
│   on mssql.tf line 47, in resource "azurerm_mssql_database" "mps_mssqldb":
│   47: resource "azurerm_mssql_database" "mps_mssqldb" {

Expected Behaviour

Pass

Actual Behaviour

Error: retrieving Long Term Retention Policies for Database:

Steps to Reproduce

terraform apply or plan

Important Factoids

No

References

None

@AlexPaskhin AlexPaskhin added the bug label Apr 2, 2022
@github-actions github-actions bot removed the bug label Apr 2, 2022
@stephybun stephybun added enhancement service/mssql Microsoft SQL Server upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR labels Apr 4, 2022
@1mamute
Copy link

1mamute commented May 16, 2022

Also getting this error using 3.5.0. Can't create a free tier Azure SQL database because of it.

Edit: That's weird. Just noticed that the database was created even with the error in the terraform CLI. Now everytime I run a plan i get this error. Had to remove the SQL Database from the terraform state to keep building.

@RockyMM
Copy link

RockyMM commented Feb 9, 2024

I observe the same behaviour.

Anyways, the 32 Megabytes database is not very useful. I am hoping more for support of the Free offer on the Serverless.

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement service/mssql Microsoft SQL Server upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR v/3.x
Projects
None yet
5 participants