terraform-provider-azurerm: Error: ID was missing the `securityContacts` element, since v2.88.0

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 (and AzureRM Provider) Version

Terraform v1.0.0 provider registry.terraform.io/hashicorp/azurerm v2.89.0

But the same issue was found with azurerm 2.88.0 and 2.88.1.

Affected Resource(s)

  • azurerm_security_center_contact

Terraform Configuration Files

resource "azurerm_security_center_contact" "contact" {
  count = (var.production && (length(local.team_email)) > 0) ? 1 : 0

  email = local.team_email

  alert_notifications = true
  alerts_to_admins    = true

  provider = azurerm.target-subscription
}

Debug Output

https://gist.github.com/martenvd/332a0af454c1bcde192d926391bbb5df

Expected Behaviour

Actual Behaviour

plan fails with Error: ID was missing the ``securityContacts`` element. In previous versions (up until 2.88.0), this error did not come up. Also when pinning the provider on version 2.87.0, it doesn’t fail.

Steps to Reproduce

terraform plan

References

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 9
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Hi, just checking if this is supposed to be fixed in 2.91.0 since I am still getting after upgrading hashicorp/azurerm requirement from ~> 2.87.0 to ~> 2.91.0

image

~Or do I need to wait for v2.92.0?~

Thanks!

Edit: Looks like this has been pushed to v2.92.0 based on https://github.com/hashicorp/terraform-provider-azurerm/milestone/163