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

azurerm_eventgrid_event_subscription support for Service Bus Queue endpoint #4857

Closed
landintrees opened this issue Nov 12, 2019 · 4 comments · Fixed by #6860
Closed

azurerm_eventgrid_event_subscription support for Service Bus Queue endpoint #4857

landintrees opened this issue Nov 12, 2019 · 4 comments · Fixed by #6860

Comments

@landintrees
Copy link

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

There are currently 5 endpoint types available when configuring an event grid event subscription (both through Azure portal and az cli):

  • Webhook
  • Storage Queue
  • Event Hub
  • Hybrid Connection
  • Service Bus Queue

azurerm_eventgrid_event_subscription currently supports the first 4 of these, but not Service Bus Queue.

New or Affected Resource(s)

  • azurerm_eventgrid_event_subscription

Potential Terraform Configuration

resource "azurerm_eventgrid_event_subscription" "default" {
  name  = "defaultEventSubscription"
  scope = azurerm_resource_group.default.id

  service_bus_queue_endpoint {
    connection_string = azurerm_servicebus_queue_authorization_rule.default.primary_connection_string
  }
}
  • #0000
@francuesta
Copy link

Any news about this issue? Some workaround?

@landintrees
Copy link
Author

landintrees commented Dec 11, 2019

Any news about this issue? Some workaround?

Hi @francuesta, for now we've fallen back to using az cli to create the event subscription. Something like this:

 az eventgrid event-subscription create
      --subscription "$TEST_ORG_1_SUBSCRIPTION"
      --name "$TEST_ACCOUNT-event-sub"
      --source-resource-id "/subscriptions/$TEST_ORG_1_SUBSCRIPTION/resourceGroups/$IOTHUB_RESOURCE_GROUP/providers/Microsoft.Devices/IotHubs/$IOTHUB_NAME"
      --endpoint-type servicebusqueue
      --endpoint "/subscriptions/$TEST_ORG_1_SUBSCRIPTION/resourceGroups/$IOTHUB_RESOURCE_GROUP/providers/Microsoft.ServiceBus/namespaces/$IOTHUB_NAMESPACE/queues/$IOTHUB_QUEUE_NAME"
      --advanced-filter data.deviceId StringBeginsWith $TEST_ACCOUNT

katbyte pushed a commit that referenced this issue May 24, 2020
Updates/extends resource azurerm_eventgrid_event_subscription

Additions to resource azurerm_eventgrid_event_subscription:

service_bus_queue_endpoint
service_bus_topic_endpoint
expiration_time_utc
Fixes #4308
Fixes #4857
@katbyte katbyte added this to the v2.12.0 milestone May 24, 2020
@ghost
Copy link

ghost commented May 28, 2020

This has been released in version 2.12.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.12.0"
}
# ... other configuration ...

pbrit pushed a commit to pbrit/terraform-provider-azurerm that referenced this issue May 31, 2020
Updates/extends resource azurerm_eventgrid_event_subscription

Additions to resource azurerm_eventgrid_event_subscription:

service_bus_queue_endpoint
service_bus_topic_endpoint
expiration_time_utc
Fixes hashicorp#4308
Fixes hashicorp#4857
@ghost
Copy link

ghost commented Jun 24, 2020

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!

@hashicorp hashicorp locked and limited conversation to collaborators Jun 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.