Skip to content

Commit

Permalink
"state" only allows "Disabled" or "Enabled". (#7364)
Browse files Browse the repository at this point in the history
"state" only allows "Disabled" or "Enabled" and NOT "New".
Altered documentation to reflect this.

Error when using "New" in terraform is:

Error: error updataing mssql server security alert policy: sql.ServerSecurityAlertPoliciesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="DataSecurityInvalidUserSuppliedParameter" Message="Invalid parameter 'state'. Allowed values are 'Enabled' or 'Disabled'.\r\nParameter name: state"

on ../../modules/sqlserver/sqlserver.tf line 18, in resource "azurerm_mssql_server_security_alert_policy" "sqlserver":
18: resource "azurerm_mssql_server_security_alert_policy" "sqlserver" {
  • Loading branch information
scott-doyland-burrows committed Jun 17, 2020
1 parent f4d5841 commit cf905c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The following arguments are supported:

* `server_name` - (Required) Specifies the name of the MS SQL Server. Changing this forces a new resource to be created.

* `state` - (Required) Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database server. Allowed values are: `Disabled`, `Enabled`, `New`.
* `state` - (Required) Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database server. Allowed values are: `Disabled`, `Enabled`.

* `disabled_alerts` - (Optional) Specifies an array of alerts that are disabled. Allowed values are: `Sql_Injection`, `Sql_Injection_Vulnerability`, `Access_Anomaly`, `Data_Exfiltration`, `Unsafe_Action`.

Expand Down

0 comments on commit cf905c6

Please sign in to comment.