Skip to content

Commit e9495eb

Browse files
committed
Acrolynx
1 parent fcb6152 commit e9495eb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

articles/event-hubs/event-hubs-capture-python.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Quickstart: Read Azure Eevnt Hubs captured data (Python)'
2+
title: 'Quickstart: Read Azure Event Hubs captured data (Python)'
33
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.
44
ms.topic: quickstart
55
ms.date: 03/14/2022
@@ -32,7 +32,7 @@ In this quickstart, you:
3232
- An Azure subscription. If you don't have one, [create a free account](https://azure.microsoft.com/free/) before you begin.
3333
- An active Event Hubs namespace and event hub.
3434
[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:
3636
1. [Create an Azure storage account](../storage/common/storage-account-create.md?tabs=azure-portal)
3737
1. [Create a blob container in the storage account](../storage/blobs/storage-quickstart-blobs-portal.md#create-a-container)
3838
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:
4141
Be sure to record the connection string and container name for later use in this quickstart.
4242

4343
## 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**.
4545

4646
## Create a Python script to send events to your event hub
4747
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 *
8989
[![Verify that the event hub received the messages](./media/get-started-capture-python-v2/messages-portal.png)](./media/get-started-capture-python-v2/messages-portal.png#lightbox)
9090

9191
## 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 open and 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 open and view. You see 10 files in the current working directory of the application. These files contain the environmental readings for the 10 devices.
9393

9494
1. In your Python editor, create a script called *capturereader.py*. This script reads the captured files and creates a file for each device to write the data only for that device.
9595
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
179179
python capturereader.py
180180
```
181181

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 as CSV 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.
183183

184184
## Next steps
185185
Check out [Python samples on GitHub](https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/eventhub/azure-eventhub/samples).

articles/event-hubs/event-hubs-resource-manager-namespace-event-hub.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ ms.date: 06/08/2021
77
---
88

99
# 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.
1111

1212
## Prerequisites
1313

1414
- 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).
1616

1717

1818
## Review the template
@@ -32,16 +32,16 @@ To find more template samples, see [Azure Quickstart Templates](https://azure.mi
3232

3333
### Using Azure portal user interface
3434

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.
3636

3737
[![Deploy to Azure](../media/template-deployments/deploy-to-azure.svg)](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)
3838
2. Select an existing **resource group** or create a resource group and select it.
3939
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.
4141
1. Select **Review + create**.
4242
1. On the **Review + create** page, select **Create**.
4343

44-
### Using Azure CloudShell
44+
### Using Azure Cloud Shell
4545

4646
To deploy the template using Azure Cloud Shell:
4747

0 commit comments

Comments
 (0)