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

Cannot update runbook name on azurerm_automation_webhook resource #27250

Open
1 task done
ASHR4 opened this issue Aug 30, 2024 · 0 comments
Open
1 task done

Cannot update runbook name on azurerm_automation_webhook resource #27250

ASHR4 opened this issue Aug 30, 2024 · 0 comments

Comments

@ASHR4
Copy link
Contributor

ASHR4 commented Aug 30, 2024

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 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.9.5

AzureRM Provider Version

4.0.1

Affected Resource(s)/Data Source(s)

azurerm_automation_webhook

Terraform Configuration Files

resource "azurerm_automation_webhook" "this" {
  name                    = "xxx"
  resource_group_name     = "xxx"
  automation_account_name = "xxx"
  expiry_time             = "xxx"
  enabled                 = "xxx"
  runbook_name            = "xxx"
  parameters              = "xxx"
}

Debug Output/Panic Output

│ Error: creating Web Hook (Subscription: "xxx"
│ Resource Group Name: "xxx"
│ Automation Account Name: "xxx"
│ Web Hook Name: "xxx"): unexpected status 400 (400 Bad Request) with response: {"Message":"Property 'runbook' cannot be updated."}
│ 
│   with azurerm_automation_webhook.main["xxx"],
│   on automation_webhooks.tf line 70, in resource "azurerm_automation_webhook" "main":
│   70: resource "azurerm_automation_webhook" "main" {

Expected Behaviour

If this property cannot be updated, then I expect this resource to be rebuilt afresh to accommodate for the change in name

Actual Behaviour

Terraform plans show this will be modified, on apply ARM returns an error with a 400 status code

Steps to Reproduce

No response

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant