Enable the SQL Threat Detection feature when deploying SQL Servers in Platform as a Service
sql_threat_detection : "true"
The Azure API documentation
https://docs.microsoft.com/en-us/rest/api/sql/databasethreatdetectionpolicies/createorupdate
Go SDK does not appear to support it ( i couldnt find it)
hey @whytoe
Thanks for opening this issue :)
Taking a quick look at this / some notes for whoever picks this up: this appears to be available in the Go SDK here: https://github.com/Azure/azure-sdk-for-go/blob/v17.4.0/services/sql/mgmt/2014-04-01/sql/databasethreatdetectionpolicies.go#L52 - and this would probably make sense nested under the azurerm_sql_server resource rather than as an independent resource.
Thanks!
@tombuildsstuff just going through the issue backlog, looks like this one got resolved a while back and can be closed.
It's available on DB-Level, but not on server-level (which is recommended by Microsoft)
Is there a time plan for this feature?
Is there any plan to add this for Azure storage?
The go SDK doesn't seem to support it currently but it can be done via a direct call to the API:
https://docs.microsoft.com/en-us/rest/api/securitycenter/advancedthreatprotection/create
@techjacker I may be wrong, but that appears to be a separate (unrelated) service to the one in this issue? If so, would you mind opening a separate feature request for that? Thanks!
@tombuildsstuff Sure I'll do this and add the link back to this thread when I'm done.
@tombuildsstuff Sure I'll do this and add the link back to this thread when I'm done.
Created feature request here: https://github.com/terraform-providers/terraform-provider-azurerm/issues/3670
Are there any plans for this to be added to SQL Server Configuration?
Most helpful comment
It's available on DB-Level, but not on server-level (which is recommended by Microsoft)