You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-capture-python.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: 'Quickstart: Read Azure Eevnt Hubs captured data (Python)'
2
+
title: 'Quickstart: Read Azure Event Hubs captured data (Python)'
3
3
description: This quickstart shows you how to write Python code to capture data that's sent to an event hub and read the captured event data from an Azure storage account.
4
4
ms.topic: quickstart
5
5
ms.date: 03/14/2022
@@ -32,7 +32,7 @@ In this quickstart, you:
32
32
- An Azure subscription. If you don't have one, [create a free account](https://azure.microsoft.com/free/) before you begin.
33
33
- An active Event Hubs namespace and event hub.
34
34
[Create an Event Hubs namespace and an event hub in the namespace](event-hubs-create.md). Record the name of the Event Hubs namespace, the name of the event hub, and the primary access key for the namespace. To get the access key, see [Get an Event Hubs connection string](event-hubs-get-connection-string.md#azure-portal). The default key name is *RootManageSharedAccessKey*. For this quickstart, you need only the primary key. You don't need the connection string.
35
-
- An Azure storage account, a blob container in the storage account, and a connection string to the storage account. If you don't have these items, do the following:
35
+
- An Azure storage account, a blob container in the storage account, and a connection string to the storage account. If you don't have these items, do the following steps:
36
36
1.[Create an Azure storage account](../storage/common/storage-account-create.md?tabs=azure-portal)
37
37
1.[Create a blob container in the storage account](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container)
38
38
1.[Get the connection string to the storage account](../storage/common/storage-account-get-info.md#get-a-connection-string-for-the-storage-account)
@@ -41,7 +41,7 @@ In this quickstart, you:
41
41
Be sure to record the connection string and container name for later use in this quickstart.
42
42
43
43
## Enable Capture feature for the event hub
44
-
Enable the Capture feature for the event hub. To do so, follow the instructions in [Enable Event Hubs Capture using the Azure portal](event-hubs-capture-enable-through-portal.md). Select the storage account and the blob container you created in the preceding step. Select **Avro** for **Output event serialziation format**.
44
+
Enable the Capture feature for the event hub. To do so, follow the instructions in [Enable Event Hubs Capture using the Azure portal](event-hubs-capture-enable-through-portal.md). Select the storage account and the blob container you created in the preceding step. Select **Avro** for **Output event serialization format**.
45
45
46
46
## Create a Python script to send events to your event hub
47
47
In this section, you create a Python script that sends 200 events (10 devices * 20 events) to an event hub. These events are a sample environmental reading that's sent in JSON format.
@@ -89,7 +89,7 @@ In this section, you create a Python script that sends 200 events (10 devices *
89
89
[](./media/get-started-capture-python-v2/messages-portal.png#lightbox)
90
90
91
91
## Create a Python script to read your Capture files
92
-
In this example, the captured data is stored in Azure Blob storage. The script in this section reads the captured data files from your Azure storage account and generates CSV files for you to easily openand view. You will see 10 files in the current working directory of the application. These files will contain the environmental readings for the 10 devices.
92
+
In this example, the captured data is stored in Azure Blob storage. The script in this section reads the captured data files from your Azure storage account and generates CSV files for you to easily openand view. You see 10 files in the current working directory of the application. These files contain the environmental readings for the 10 devices.
93
93
94
94
1. In your Python editor, create a script called *capturereader.py*. This script reads the captured files and creates a filefor each device to write the data only for that device.
95
95
2. Paste the following code into *capturereader.py*.
@@ -179,7 +179,7 @@ In this example, the captured data is stored in Azure Blob storage. The script i
179
179
python capturereader.py
180
180
```
181
181
182
-
This capture processor uses the local directory to download all the blobs from the storage account and container. It processes any that are not empty, and it writes the results asCSV files into the local directory.
182
+
This capture processor uses the local directory to download all the blobs from the storage account and container. It processes files that aren't empty, and it writes the results as CSV files into the local directory.
183
183
184
184
## Next steps
185
185
Check out [Python samples on GitHub](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples).
Copy file name to clipboardExpand all lines: articles/event-hubs/event-hubs-resource-manager-namespace-event-hub.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ ms.date: 06/08/2021
7
7
---
8
8
9
9
# Quickstart: Create an event hub by using an ARM template
10
-
In this quickstart, you will create an event hub by using an [Azure Resource Manager template (ARM template)](../azure-resource-manager/management/overview.md). You deploy an ARM template to create a namespace of type [Event Hubs](./event-hubs-about.md), with one event hub.
10
+
In this quickstart, you create an event hub by using an [Azure Resource Manager template (ARM template)](../azure-resource-manager/management/overview.md). You deploy an ARM template to create a namespace of type [Event Hubs](./event-hubs-about.md), with one event hub.
11
11
12
12
## Prerequisites
13
13
14
14
- If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/) before you begin.
15
-
- If you are new to Azure Event Hubs, see [Event Hubs overview](event-hubs-about.md) and [Event Hubs features](event-hubs-features.md).
15
+
- If you're new to Azure Event Hubs, see [Event Hubs overview](event-hubs-about.md) and [Event Hubs features](event-hubs-features.md).
16
16
17
17
18
18
## Review the template
@@ -32,16 +32,16 @@ To find more template samples, see [Azure Quickstart Templates](https://azure.mi
32
32
33
33
### Using Azure portal user interface
34
34
35
-
1. If your environment meets the prerequisites and you're familiar with using ARM templates, select the **Deploy to Azure** button. The template will open in the Azure portal.
35
+
1. If your environment meets the prerequisites and you're familiar with using ARM templates, select the **Deploy to Azure** button. The template opens in the Azure portal.
36
36
37
37
[](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.eventhub%2Feventhubs-create-namespace-and-eventhub%2Fazuredeploy.json)
38
38
2. Select an existing **resource group** or create a resource group and select it.
39
39
1. Select the **region**.
40
-
1. Enter a unique **name** for the **project**. This name will be used to generate names for an Event Hubs namespace and an event hub in the namespace.
40
+
1. Enter a unique **name** for the **project**. This name is used to generate names for an Event Hubs namespace and an event hub in the namespace.
41
41
1. Select **Review + create**.
42
42
1. On the **Review + create** page, select **Create**.
0 commit comments