|
| 1 | +--- |
| 2 | +title: Export IoT Central data to a secure VNet | Microsoft Docs |
| 3 | +description: Learn how to use IoT Central data export to send data to a destination in a secure VNet. Data export destinations include Azure Blob Storage, Azure Event Hubs, and Azure Service Bus Messaging. |
| 4 | +author: dominicbetts |
| 5 | +ms.author: dobett |
| 6 | +ms.date: 04/25/2022 |
| 7 | +ms.topic: how-to |
| 8 | +ms.service: iot-central |
| 9 | +services: iot-central |
| 10 | + |
| 11 | +# Administrator |
| 12 | +--- |
| 13 | + |
| 14 | +# Export data to a secure destination on an Azure Virtual Network |
| 15 | + |
| 16 | +Data export in IoT Central lets you continuously stream device data to destinations such as Azure Blob Storage, Azure Event Hubs, Azure Service Bus Messaging. You may choose to lock down these destinations by using an Azure Virtual Network (VNet) and private endpoints. |
| 17 | + |
| 18 | +Currently, it's not possible to connect an IoT Central application directly to VNet for data export. However, because IoT Central is a trusted Azure service, it's possible to configure an exception to the firewall rules and connect to a secure destination on a VNet. In this scenario, you typically use a managed identity to authenticate and authorize with the destination. |
| 19 | + |
| 20 | +## Prerequisites |
| 21 | + |
| 22 | +- An IoT Central application. To learn more, see [Create an IoT Central application](howto-create-iot-central-application.md). |
| 23 | + |
| 24 | +- Data export configured in your IoT Central application to send device data to a destination such as Azure Blob Storage, Azure Event Hubs, or Azure Service Bus. The destination is configured to use a managed identity. To learn more, see [Export IoT data to cloud destinations using data export](howto-export-data.md). |
| 25 | + |
| 26 | +## Configure the destination service |
| 27 | + |
| 28 | +To configure Azure Blob Storage to use a VNet and private endpoint see: |
| 29 | + |
| 30 | +- [Configure Azure Storage firewalls and virtual networks](../../storage/common/storage-network-security.md?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json) |
| 31 | +- [Private endpoints for your storage account](../../storage/common/storage-private-endpoints.md) |
| 32 | + |
| 33 | +To configure Azure Event Hubs to use a VNet and private endpoint see: |
| 34 | + |
| 35 | +- [Allow access to Azure Event Hubs namespaces from specific virtual networks](../../event-hubs/event-hubs-service-endpoints.md) |
| 36 | +- [Allow access to Azure Event Hubs namespaces via private endpoints](../../event-hubs/private-link-service.md) |
| 37 | + |
| 38 | +To configure Azure Service Bus Messaging to use a VNet and private endpoint see: |
| 39 | + |
| 40 | +- [Allow access to Azure Service Bus namespace from specific virtual networks](../../service-bus-messaging/service-bus-service-endpoints.md) |
| 41 | +- [Allow access to Azure Service Bus namespaces via private endpoints](../../service-bus-messaging/private-link-service.md) |
| 42 | + |
| 43 | +## Configure the firewall exception |
| 44 | + |
| 45 | +To allow IoT Central to connect to a destination on a VNet, enable a firewall exception on the VNet to allow connections from trusted Azure services. |
| 46 | + |
| 47 | +To configure the exception in the Azure portal for Azure Blob Storage, navigate to **Networking > Firewalls and virtual networks**. Then select **Allow Azure services on the trusted services list to access this storage account.**: |
| 48 | + |
| 49 | +:::image type="content" source="media/howto-connect-secure-vnet/blob-storage-exception.png" alt-text="Screenshot from Azure portal that shows firewall exception for Azure Blob Storage virtual network."::: |
| 50 | + |
| 51 | +To configure the exception in the Azure portal for Azure Event Hubs, navigate to **Networking > Public access**. Then select **Yes** to allow trusted Microsoft services to bypass this firewall: |
| 52 | + |
| 53 | +:::image type="content" source="media/howto-connect-secure-vnet/event-hubs-exception.png" alt-text="Screenshot from Azure portal that shows firewall exception for Azure Event Hubs virtual network."::: |
| 54 | + |
| 55 | +To configure the exception in the Azure portal for Azure Service Bus, navigate to **Networking > Public access**. Then select **Yes** to allow trusted Microsoft services to bypass this firewall: |
| 56 | + |
| 57 | +:::image type="content" source="media/howto-connect-secure-vnet/service-bus-queue-exception.png" alt-text="Screenshot from Azure portal that shows firewall exception for Azure Service Bus virtual network."::: |
| 58 | + |
| 59 | +## Next steps |
| 60 | + |
| 61 | +Now that you've learned how to export data to a destination locked down on a VNet, here's the suggested next step: |
| 62 | + |
| 63 | +> [!div class="nextstepaction"] |
| 64 | +> [Administer your application](howto-administer.md). |
0 commit comments