Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreation of imported azurerm_security_center_setting for Serntinel #24203

Closed
1 task done
oleksandr-ivanov-ah opened this issue Dec 12, 2023 · 1 comment · Fixed by #24210
Closed
1 task done

Recreation of imported azurerm_security_center_setting for Serntinel #24203

oleksandr-ivanov-ah opened this issue Dec 12, 2023 · 1 comment · Fixed by #24210

Comments

@oleksandr-ivanov-ah
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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 and review the contribution guide to help.

Terraform Version

v1.5.7

AzureRM Provider Version

3.84

Affected Resource(s)/Data Source(s)

azurerm_security_center_setting

Terraform Configuration Files

resource "azurerm_security_center_setting" "self" {
  setting_name = "SENTINEL"
  enabled      = true
}

Debug Output/Panic Output

# module.security-center.module.sentinel.azurerm_security_center_setting.self must be replaced
-/+ resource "azurerm_security_center_setting" "self" {
      ~ id           = "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Security/settings/Sentinel" -> (known after apply)
      ~ setting_name = "Sentinel" -> "SENTINEL" # forces replacement
        # (1 unchanged attribute hidden)
    }

Expected Behaviour

setting_name argument for azurerm_security_center_setting have to be "Sentinel" instead of "SENTINEL"

Actual Behaviour

setting_name accepts only "SENTINEL" as a result existing (imported) azurerm_security_center_setting will be recreated.
According to the azure-rest-api-specs SettingName for Sentinel have to be "Sentinel"
I checked the initial version of azurerm_security_center_setting and it had correct setting_name value "Sentinel"

Steps to Reproduce

  1. az security setting update -n "Sentinel" --enabled true
  2. Import existing Sentinel azurerm_security_center_setting
  3. Run terraform plan

Important Factoids

No response

References

No response

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants