You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating an event subscription with a storage queue as an endpoint within an event grid topic the resources are created as expected but an error is thrown and the event subscription in the state file becomes tainted and you can no longer run a plan or apply.
module.event-topics.azurerm_storage_account.default: Creating...
module.event-topics.azurerm_storage_account.default: Still creating... [10s elapsed]
module.event-topics.azurerm_storage_account.default: Still creating... [20s elapsed]
module.event-topics.azurerm_storage_account.default: Creation complete after 25s [id=/subscriptions/***/resourceGroups/tf-testing/providers/Microsoft.Storage/storageAccounts/defaultstoragefoo]
module.event-topics.azurerm_storage_queue.default: Creating...
module.event-topics.azurerm_storage_queue.default: Creation complete after 1s [id=https://defaultstoragefoo.queue.core.windows.net/defaultstoragequeue]
module.event-topics.azurerm_eventgrid_event_subscription.default: Creating...
module.event-topics.azurerm_eventgrid_event_subscription.default: Still creating... [10s elapsed]
module.event-topics.azurerm_eventgrid_event_subscription.default: Still creating... [20s elapsed]
module.event-topics.azurerm_eventgrid_event_subscription.default: Still creating... [30s elapsed]
module.event-topics.azurerm_eventgrid_event_subscription.default: Still creating... [40s elapsed]
module.event-topics.azurerm_eventgrid_event_subscription.default: Still creating... [50s elapsed]
module.event-topics.azurerm_eventgrid_event_subscription.default: Still creating... [1m0s elapsed]
Error: ID contained more segments than required: "/subscriptions/***/resourceGroups/tf-testing/providers/Microsoft.EventGrid/topics/default-topic/providers/Microsoft.EventGrid/eventSubscriptions/defaultEventSubscription"
on ../../modules/project/event-topics/main.tf line 159, in resource "azurerm_eventgrid_event_subscription" "default":
159: resource "azurerm_eventgrid_event_subscription" "default" {
Expected Behavior
resources are created with no errors and the state is not tainted and a subsequent plan can be run.
Actual Behavior
When creating an event subscription with a storage queue as an endpoint within an event grid topic the resources are created as expected but an error is thrown and the event subscription in the state file becomes tainted and you can no longer run a plan or apply.
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!
This issue was originally opened by @mluker as hashicorp/terraform#24979. It was migrated here as a result of the provider split. The original body of the issue is below.
When creating an event subscription with a storage queue as an endpoint within an event grid topic the resources are created as expected but an error is thrown and the event subscription in the state file becomes tainted and you can no longer run a plan or apply.
Terraform Version
Terraform Code
Terraform Output
Expected Behavior
resources are created with no errors and the state is not tainted and a subsequent plan can be run.
Actual Behavior
When creating an event subscription with a storage queue as an endpoint within an event grid topic the resources are created as expected but an error is thrown and the event subscription in the state file becomes tainted and you can no longer run a plan or apply.
Steps to Reproduce
terraform init
terraform apply
ADDITIONAL INFO (TAINTED STATE)
The text was updated successfully, but these errors were encountered: