Skip to content

Commit

Permalink
azurerm_mssql_database - support min_capacity up to 5 (hashicorp#7457)
Browse files Browse the repository at this point in the history
Minimum capacities for GP_S_Gen5 serverless databases go from 0.5 to 5 (docs), but the current validator function only allows min_capacity up to 2. This PR updates the validator to allow all documented minimum capacities for serverless databases.
  • Loading branch information
davidtom authored and jrauschenbusch committed Jun 29, 2020
1 parent 4690750 commit 22fc608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurerm/internal/services/mssql/mssql_database_resource.go
Expand Up @@ -123,7 +123,7 @@ func resourceArmMsSqlDatabase() *schema.Resource {
Type: schema.TypeFloat,
Optional: true,
Computed: true,
ValidateFunc: azValidate.FloatInSlice([]float64{0.5, 0.75, 1, 1.25, 1.5, 1.75, 2}),
ValidateFunc: azValidate.FloatInSlice([]float64{0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 3, 4, 5}),
},

"restore_point_in_time": {
Expand Down

0 comments on commit 22fc608

Please sign in to comment.