diff --git a/azurerm/provider.go b/azurerm/provider.go index 0520d15738644..f63176c319969 100644 --- a/azurerm/provider.go +++ b/azurerm/provider.go @@ -248,10 +248,10 @@ func Provider() terraform.ResourceProvider { "azurerm_iot_dps_certificate": resourceArmIotDPSCertificate(), "azurerm_iothub_consumer_group": resourceArmIotHubConsumerGroup(), "azurerm_iothub": resourceArmIotHub(), - "azurerm_iothub_endpoint_eventhub": resourceArmIotHubEndpointEventHub(), - "azurerm_iothub_endpoint_servicebus_queue": resourceArmIotHubEndpointServiceBusQueue(), - "azurerm_iothub_endpoint_servicebus_topic": resourceArmIotHubEndpointServiceBusTopic(), - "azurerm_iothub_endpoint_storage_container": resourceArmIotHubEndpointStorageContainer(), + "azurerm_iothub_endpoint_eventhub": resourceArmIotHubEndpointEventHub(), + "azurerm_iothub_endpoint_servicebus_queue": resourceArmIotHubEndpointServiceBusQueue(), + "azurerm_iothub_endpoint_servicebus_topic": resourceArmIotHubEndpointServiceBusTopic(), + "azurerm_iothub_endpoint_storage_container": resourceArmIotHubEndpointStorageContainer(), "azurerm_iothub_shared_access_policy": resourceArmIotHubSharedAccessPolicy(), "azurerm_key_vault_access_policy": resourceArmKeyVaultAccessPolicy(), "azurerm_key_vault_certificate": resourceArmKeyVaultCertificate(), diff --git a/azurerm/resource_arm_iothub.go b/azurerm/resource_arm_iothub.go index c6d797ce2a515..9f01606213c1d 100755 --- a/azurerm/resource_arm_iothub.go +++ b/azurerm/resource_arm_iothub.go @@ -491,8 +491,8 @@ func resourceArmIotHubCreateUpdate(d *schema.ResourceData, meta interface{}) err Location: utils.String(location), Sku: skuInfo, Properties: &devices.IotHubProperties{ - IPFilterRules: ipFilterRules, - Routing: &routingProperties, + IPFilterRules: ipFilterRules, + Routing: &routingProperties, StorageEndpoints: storageEndpoints, MessagingEndpoints: messagingEndpoints, EnableFileUploadNotifications: &enableFileUploadNotifications,