Closed ukphillips closed 4 years ago
Thanks for opening this issue. Seems currently terraform would use the resource group where iothub exists as the resource group of endpoint by default. So I made a fix to allow to specify the endpoint resource group. Hopes it would be helpful. Thanks.
This has been released in version 2.34.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.34.0"
}
# ... other configuration ...
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!
Community Note
Terraform (and AzureRM Provider) Version
Terraform v0.11.13
Affected Resource(s)
IoT Hub
azurerm_iothub
Terraform Configuration Files
Created successfully
Panic Output
N/A
Expected Behavior
Custom endpoint should be created on IoT hub
Actual Behavior
Custom endpoint appears created, but when you drill into it, there is a not found message. Upon drilling into the resources in the resource explorer:
My test12 queue was manually created in the portal, and is correct, but the one above it (created by TF) is created with the assumption that the servicebus will reside in the same resource group as the parent (which is the IoT hub), this is not correct and is failing to connect the resourced together properly.
I would expect there to be an optional override to specify a different resourcegrouo/subscriptionid for the queue. This also seems to be an issue with other endpoint resources as well.
Steps to Reproduce
Important Factoids
N/A
References
0000