-
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
azurerm_monitor_action_group
- fix event_hub_receiver
when dependent event_hub is not in the same resource group
#17335
Conversation
…m into fix_mag_eventhub
azurerm_monitor_action_group
event_hub_receiverazurerm_monitor_action_group
- fix event_hub_receiver
when dependent event_hub is not in the same resource group
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.
How does the service know what eventhub to use as cannot you not have eventhubs with the same name in 2 different resource groups? if you create a test with the same named eventhub in two different resource groups what happens then?
Hi @katbyte , thanks for review, the eventhub ID is like So with |
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.
I have submitted another PR #18190 to fix the failed tests. |
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.
LGTM 🚜
This functionality has been released in v3.22.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
fix #17091
azurerm_monitor_action_group
and its dependencyazurerm_event_hub
are in different resource groups. Aterraform plan
command right afterterraform apply
will still show changes exist. This bug happened by replaceevent_hub_name
,event_hub_namespace
,andsubscription_id
withevent_hub_id
in terraform schema, and when perform Read() function, use the Action Group's resource group to construct theevent_hub_id
and then write it to the state (see source code), butevent_hub_id
has a different resource group.event_hub_name
,event_hub_namespace
,andsubscription_id
) in terraform schema which is same with REST API.Test Result