terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
falied to create azurerm_security_center_auto_provisioning
Is there an existing issue for this?
- [X] I have searched the existing issues
Community Note
- Please vote on this issue by adding a :thumbsup: reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave comments along the lines of "+1", "me too" or "any updates", 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 and review the contribution guide to help.
Terraform Version
1.7.5
AzureRM Provider Version
3.97.1
Affected Resource(s)/Data Source(s)
azurerm_security_center_auto_provisioning
Terraform Configuration Files
resource "azurerm_security_center_auto_provisioning" "example" {
auto_provision = "On"
}
Debug Output/Panic Output
│ Error: updating auto-provisioning setting for Auto Provisioning Setting: (Name "default"): security.AutoProvisioningSettingsClient#Create: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="Deprecated" Message="Log Analytics auto provisioning is deprecated and can no longer be enabled."
2460│
2461│ with module.sece.azurerm_security_center_auto_provisioning.seccen,
2462│ on sece/main.tf line 10, in resource "azurerm_security_center_auto_provisioning" "seccen":
2463│ 10: resource "azurerm_security_center_auto_provisioning" "seccen" {
2464│
2465╵
2466Error: Terraform exited with code 1.
2467Error: Process completed with exit code 1.
Expected Behaviour
the resource should be created without any error
Actual Behaviour
Can't create the resource because I think internally the provider tries to enable log analytics agent autoprovisioning which will be deprecated by November 2024 info
Steps to Reproduce
- user azurerm version 3.97.1
- terraform apply
Important Factoids
No response
References
No response