-
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
Add support for the Azure IotHub fallback route #2719
Comments
The default action of creating a hub via cli or portal is to have the IoT fallback route enabled. The default action of the terraform creating a hub is to have the IoT fallback route disabled with no option to enable it. Terraform Configuration
Azure CLI Commands# Create a Hub
az iot hub create --resource-group IoTEdgeResources --name test-cli-hub --sku S1 --location eastus2
# View fallbackRoute status
az iot hub list -g IoTEdgeResources --query \
"[].{name:name, fallback:properties.routing.fallbackRoute.isEnabled}" \
-otable Creation Result
|
Terraform is indeed disabling the fallback route by default. Terraform created"routing": {
"endpoints": {
"serviceBusQueues": [],
"serviceBusTopics": [],
"eventHubs": [],
"storageContainers": []
},
"routes": [],
"fallbackRoute": {
"name": "$fallback",
"source": "DeviceMessages",
"condition": "true",
"endpointNames": [
"events"
],
"isEnabled": false
}
}, Azure Portal created"routing": {
"endpoints": {
"serviceBusQueues": [],
"serviceBusTopics": [],
"eventHubs": [],
"storageContainers": []
},
"routes": [],
"fallbackRoute": {
"name": "$fallback",
"source": "DeviceMessages",
"condition": "true",
"endpointNames": [
"events"
],
"isEnabled": true
}
}, |
Added the option to specify if the IoTHub fallback route should be enabled or not. It defaults to enabled since the Azure Portal, CLI or ARM all default to true. This is a change in the behaviour of Terraform since Terraform used to default to disabled. See also issue #2719
I think this issue can be closed, since #2764 is merged and is released with 1.23.0 |
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 👉 [email protected]. Thanks! |
Community Note
Description
When you create an IoT Hub with a custom route via terraform, the IoTHub fallback route is disabled by default which is not suitable. If you enable this parameter in portal and run terraform again, it disables it.
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: