-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Support for Secure Webhook Receiver in azurerm_monitor_action_group
#10509
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yupwei68 - left a comment about the schema inline
azurerm/internal/services/monitor/monitor_action_group_resource.go
Outdated
Show resolved
Hide resolved
Thanks @katbyte for comments. Changes have been pushed. Please continue reviewing. |
@katbyte I've added the acctest. Please continue reviewing. |
azurerm/internal/services/monitor/monitor_action_group_resource.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hey @yupwei68
Thanks for pushing those changes - I've taken a look through and left some comments inline but if we can fix those up then this should otherwise be good to go 👍
Thanks!
azurerm/internal/services/monitor/monitor_action_group_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/monitor/monitor_action_group_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/monitor/monitor_action_group_resource.go
Outdated
Show resolved
Hide resolved
Thanks Tom for your comments. Changes have been updated. Please continue reviewing. |
=== RUN TestAccMonitorActionGroup_secureWebhookReceiver Test has passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yupwei68 - LGTM 👍
This has been released in version 2.50.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azurerm" {
version = "~> 2.50.0"
}
# ... other configuration ... |
FYI I looks like something in this change may have broken data.azurerm_monitor_action_group as suddenly our deploys have broken once they upgraded to using 2.50. The error looks like below. Will do some investigation and will create an issue if required.
|
@alastairtree Unfortunately, I could not reproduce your error. I've created a webhook at version 2.49.0, and then update this at 2.50.0. They are applied successfully. Would you create an issue for this, with the details of reproducing steps and you've created the |
It is the data source that's broken not the resource. See #10854 |
Same here, this is breaking the retrieval/refresh of action groups with webhooks not configured as securewebhooks. |
There's a fix for this incoming in #10876 |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Fix #10510
Manually tests pass.
It requires configuring your AAD application to expose a protected API to be called by a daemon app, and enabling Action Groups to use your Azure AD Application (which include
New-AzureADServiceAppRoleAssignment
in MS Graph), which could not be integrated into acctest e2e testing currently.