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

Support for built-in IOT Hub EventHub endpoint in resources: azurerm_eventhub_authorization_rule and azurerm_iothub_endpoint_eventhub #10146

Closed
tomaszszlek opened this issue Jan 12, 2021 · 2 comments

Comments

@tomaszszlek
Copy link

tomaszszlek commented Jan 12, 2021

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

Description

Terraform provider doesn't have support for built-in IOTHub EventHub endpoint.
There are two missing things to support such endpoint:

  1. Terraform provider offer resource called "azurerm_eventhub_authorization_rule".
    It allows to refer to specific EventHub by providing EventHub name and namespace.
    Unfortunately it doesn't support built-in IOTHub EventHub endpoint.
    Such endpoint doesn't have explicit "EventHub namespace" which is required by "azurerm_eventhub_authorization_rule" so I don't know what to put as an namespace.
    For now I have work around for this by providing connection_string in plain text when referencing EventHub in other endpoint however I would like to use azurerm_eventhub_authorization_rule.
  2. azurerm_iothub_endpoint_eventhub doesn't support endpoint-resource-group. Using Azure CLI it is possible to declare EventHub in specific resource group however when creating this by Terraform resource group of EventHub endpoint is always empty.

New or Affected Resource(s)

  • azurerm_eventhub_authorization_rule
  • azurerm_iothub_endpoint_eventhub

Terraform Configuration

data "azurerm_eventhub_authorization_rule" "test" {
  name                = "test"
  namespace_name      = "I don't have namespace as it is not explicit in build-in IOTHub EventHub !"
  eventhub_name       = "${azurerm_eventhub.test.name}"
  resource_group_name = "${azurerm_resource_group.test.name}"
}

resource "azurerm_iothub_endpoint_eventhub" "example" {
  resource_group_name = azurerm_resource_group.example.name
  iothub_name         = azurerm_iothub.example.name
  name                = "example"

  connection_string = azurerm_eventhub_authorization_rule.test.primary_connection_string
}
@tomaszszlek tomaszszlek changed the title Support for azurerm_eventhub_authorization_rule to built-in IOT Hub EventHub endpoint Support for built-in IOT Hub EventHub endpoint in resources: azurerm_eventhub_authorization_rule and azurerm_iothub_endpoint_eventhub Jan 12, 2021
@catriona-m catriona-m self-assigned this Jan 12, 2022
@catriona-m
Copy link
Member

fixed in #14942

@github-actions
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 Mar 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants