![]() These events are a sample environmental reading that's sent in JSON format. In this section, you create a Python script that sends 200 events (10 devices * 20 events) to an event hub. Create a Python script to send events to your event hub Select Avro for Output event serialization format. Select the storage account and the blob container you created in the preceding step. To do so, follow the instructions in Enable Event Hubs Capture using the Azure portal. Get the connection string to the storage accountīe sure to record the connection string and container name for later use in this quickstart.Įnable the Capture feature for the event hub.Create a blob container in the storage account.If you don't have these items, do the following steps: You don't need the connection string.Īn Azure storage account, a blob container in the storage account, and a connection string to the storage account. For this quickstart, you need only the primary key. The default key name is RootManageSharedAccessKey. To get the access key, see Get an Event Hubs connection string. Record the name of the Event Hubs namespace, the name of the event hub, and the primary access key for the namespace. If you don't have one, create a free account before you begin.Īn active Event Hubs namespace and event hub.Ĭreate an Event Hubs namespace and an event hub in the namespace. The code in this article has been tested against these versions.Īn Azure subscription. Python with PIP and the following packages installed. Read and process files from Event Hubs Capture by using another Python script.Send data to your event hub by using a Python script.Create an event hub with the Capture feature enabled and connect it to your storage account.Create an Event Hubs namespace by using the Azure portal.Create an Azure Blob storage account and container in the Azure portal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |