Skip to content

Commit 8d473f8

Browse files
committed
uploading changes so far
1 parent 6025112 commit 8d473f8

9 files changed

+44
-61
lines changed

articles/stream-analytics/includes/event-generator-app.md

Lines changed: 44 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -22,43 +22,44 @@ Before Stream Analytics can analyze the fraudulent calls data stream, the data n
2222
Use the following steps to create an event hub and send call data to that event hub:
2323

2424
1. Sign in to the [Azure portal](https://portal.azure.com/).
25-
2. Select **Create a resource** > **Internet of Things** > **Event Hubs**.
25+
2. Select **Create a resource** > **Internet of Things** > **Event Hubs**. On the **Event Hubs** page, select **Create**.
2626

27-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/find-event-hub-resource.png" alt-text="Screenshot showing the Event Hubs creation page.":::
28-
3. Fill out the **Create Namespace** pane with the following values:
27+
:::image type="content" source="media/event-generator-app/find-event-hub-resource.png" lightbox="media/event-generator-app/find-event-hub-resource.png" alt-text="Screenshot showing the Event Hubs creation page.":::
2928

30-
|**Setting** |**Suggested value** |**Description** |
31-
|---------|---------|---------|
32-
|Subscription | \<Your subscription\> | Select an Azure subscription where you want to create the event hub. |
33-
|Resource group | MyASADemoRG | Select **Create New** and enter a new resource-group name for your account. |
34-
|Namespace name | asaTutorialEventHubNS | A unique name to identify the event hub namespace. |
35-
|Location | West US2 | Location where the event hub namespace can be deployed. |
36-
4. Use default options on the remaining settings and select **Review + create**. Then select **Create** to start the deployment.
29+
If you don't see **Event Hubs** on the **Internet of Things** page, type **Event Hubs** in the search box and select it from the results. Then, select **Event Hubs** on the **Marketplace** page.
30+
3. On the **Create Namespace** page, follow these steps:
31+
1. Select an **Azure subscription** where you want to create the event hub.
32+
1. For **Resource group**, select **Create new** and enter a name for the resource group. The Event Hubs namespace is created in this resource group.
33+
1. For **Namespace name**, enter a unique name for the Event Hubs namespace.
34+
1. For **Location**, select the region in which you want to create the namespace.
35+
1. For **Pricing tier**, select **Standard**.
36+
1. Select **Review + create** at the bottom of the page.
3737

38-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/create-event-hub-namespace.png" alt-text="Screenshot showing the Create Namespace page.":::
38+
:::image type="content" source="media/event-generator-app/create-event-hub-namespace.png" alt-text="Screenshot showing the Create Namespace page.":::
39+
1. On the **Review + create** page of the namespace creation wizard, select **Create** at the bottom of the page after reviewing all settings.
3940
5. After the namespace is deployed successfully, select **Go to resource** to navigate to the **Event Hubs Namespace** page.
4041
6. On the **Event Hubs Namespace** page, select **+Event Hub** on the command bar.
4142

42-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/add-event-hub-button.png" alt-text="Screenshot showing the Add event hub button on the Event Hubs Namespace page.":::
43-
1. On the **Create Event Hub** page, enter a **Name** for the event hub. Set the **Partition Count** to 2. Use the default options in the remaining settings and select **Create**. Then wait for the deployment to succeed.
43+
:::image type="content" source="media/event-generator-app/add-event-hub-button.png" alt-text="Screenshot showing the Add event hub button on the Event Hubs Namespace page.":::
44+
1. On the **Create Event Hub** page, enter a **Name** for the event hub. Set the **Partition Count** to 2. Use the default options in the remaining settings and select **Review + create**.
4445

45-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/create-event-hub-portal.png" alt-text="Screenshot showing the Create event hub page.":::
46+
:::image type="content" source="media/event-generator-app/create-event-hub-portal.png" alt-text="Screenshot showing the Create event hub page.":::
47+
1. On the **Review + create** page, select **Create** at the bottom of the page. Then wait for the deployment to succeed.
4648

4749
### Grant access to the event hub and get a connection string
4850

4951
Before an application can send data to Azure Event Hubs, the event hub must have a policy that allows access. The access policy produces a connection string that includes authorization information.
5052

5153
1. On the **Event Hubs Namespace**, select **Event Hubs** under **Entities** on the left menu, and then select the event hub you created.
5254

53-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/select-event-hub.png" alt-text="Screenshot showing the selection of an event hub on the Event Hubs page.":::
55+
:::image type="content" source="media/event-generator-app/select-event-hub.png" alt-text="Screenshot showing the selection of an event hub on the Event Hubs page.":::
5456
1. On the **Event Hubs instance** page, select **Shared access policies** under **Settings** on the left menu, and then select **+ Add** on the command bar.
55-
2. Name the policy **MyPolicy**, ensure **Manage** is checked, and then select **Create**.
57+
2. Name the policy **MyPolicy**, select **Manage**, and then select **Create**.
5658

57-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/create-event-hub-access-policy.png" alt-text="Screenshot showing Shared access policies page for an event hub.":::
59+
:::image type="content" source="media/event-generator-app/create-event-hub-access-policy.png" alt-text="Screenshot showing Shared access policies page for an event hub.":::
5860
3. Once the policy is created, select the policy name to open the policy. Find the **Connection string–primary key**. Select the **copy** button next to the connection string.
5961

60-
![Save the shared access policy connection string](media/stream-analytics-real-time-fraud-detection/save-connection-string.png)
61-
62+
:::image type="content" source="media/event-generator-app/save-connection-string.png" alt-text="Screenshot showing the primary connection string of the Event Hubs namespace you created.":::
6263
4. Paste the connection string into a text editor. You need this connection string in the next section.
6364

6465
The connection string looks as follows:
@@ -107,54 +108,36 @@ Now that you have a stream of call events, you can create a Stream Analytics job
107108

108109
1. To create a Stream Analytics job, navigate to the [Azure portal](https://portal.azure.com/).
109110
2. Select **Create a resource** and search for **Stream Analytics job**. Select the **Stream Analytics job** tile and select **Create**.
110-
3. Fill out the **New Stream Analytics job** form with the following values:
111-
112-
|**Setting** |**Suggested value** |**Description** |
113-
|---------|---------|---------|
114-
|Subscription | \<Your subscription\> | Select an Azure subscription where you want to create the job. |
115-
|Resource group | MyASADemoRG | Select **Use existing** and enter a new resource-group name for your account. |
116-
|Job name | ASATutorial | A unique name to identify the event hub namespace. |
117-
|Location | West US2 | Location where the job can be deployed. It's recommended to place the job and the event hub in the same region for best performance and so that you don't pay to transfer data between regions. |
118-
|Hosting environment | Cloud | Stream Analytics jobs can be deployed to cloud or edge. **Cloud** allows you to deploy to Azure Cloud, and **Edge** allows you to deploy to an IoT Edge device. |
119-
|Streaming units | 1 | Streaming units represent the computing resources that are required to execute a job. By default, this value is set to 1. To learn about scaling streaming units, see [understanding and adjusting streaming units](../stream-analytics-streaming-unit-consumption.md) article. |
120-
4. Use default options on the remaining settings, select **Create**, and wait for the deployment to succeed.
121-
122-
![Create an Azure Stream Analytics job](media/stream-analytics-real-time-fraud-detection/create-stream-analytics-job.png)
111+
1. On the **New Stream Analytics job** page, follow these steps:
112+
1. For **Subscription**, select the subscription that contains the Event Hubs namespace.
113+
1. For **Resource group**, select the resource group you created earlier.
114+
1. In the **Instance details** section, For **Name**, enter a unique name for the Stream Analytics job.
115+
1. For **Region**, select the region in which you want to create the Stream Analytics job. We recommend that you place the job and the event hub in the same region for best performance and so that you don't pay to transfer data between regions.
116+
1. For **Hosting environment**< select **Cloud** if it's not already selected. Stream Analytics jobs can be deployed to cloud or edge. **Cloud** allows you to deploy to Azure Cloud, and **Edge** allows you to deploy to an IoT Edge device.
117+
1. For **Streaming units**, select **1**. Streaming units represent the computing resources that are required to execute a job. By default, this value is set to 1. To learn about scaling streaming units, see [understanding and adjusting streaming units](../stream-analytics-streaming-unit-consumption.md) article.
118+
1. Select **Review + create** at the bottom of the page.
119+
120+
![Create an Azure Stream Analytics job](media/event-generator-app/create-stream-analytics-job.png)
121+
1. On the **Review + create** page, review settings, and then select **Create** to create the Stream Analytics job.
123122
5. After the job is deployed, select **Go to resource** to navigate to the **Stream Analytics job** page.
124123

125124
## Configure job input
126125

127126
The next step is to define an input source for the job to read data using the event hub you created in the previous section.
128127

129-
2. On the **Stream Analytics job** page, in the **Job Topology** section on the left menu, select **Inputs**.
130-
3. On the **Inputs** page, select **+ Add stream input** and **Event hub**.
131-
132-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/add-input-event-hub-menu.png" lightbox="media/stream-analytics-real-time-fraud-detection/add-input-event-hub-menu.png" alt-text="Screenshot showing the Input page for a Stream Analytics job.":::
133-
4. Fill out the input form with the following values:
134-
135-
|**Setting** |**Suggested value** |**Description** |
136-
|---------|---------|---------|
137-
|Input alias | CallStream | Provide a friendly name to identify your input. Input alias can contain alphanumeric characters, hyphens, and underscores only and must be 3-63 characters long. |
138-
|Subscription | \<Your subscription\> | Select the Azure subscription where you created the event hub. The event hub can be in same or a different subscription as the Stream Analytics job. |
139-
|Event hub namespace | asaTutorialEventHub | Select the event hub namespace you created in the previous section. All the event hub namespaces available in your current subscription are listed in the dropdown. |
140-
|Event hub name | MyEventHub | Select the event hub you created in the previous section. All the event hubs available in your current subscription are listed in the dropdown. |
141-
| Authentication mode | Connection string | In this tutorial, you'll use the connection string to connect to the event hub. |
142-
|Event hub policy name | MyPolicy | Select **Use existing**, and then select the policy you created earlier in this tutorial. |
143-
144-
4. Use default options on the remaining settings and select **Save**.
145-
146-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/configure-stream-analytics-input.png" alt-text="Screenshot showing the Event Hubs configuration page for an input.":::
147-
148-
## Create a consumer group
149-
150-
We recommend that you use a distinct consumer group for each Stream Analytics job. If no consumer group is specified, the Stream Analytics job uses the $Default consumer group. When a job contains a self-join or has multiple inputs, some inputs later might be read by more than one reader. This situation affects the number of readers in a single consumer group.
128+
1. On the **Stream Analytics job** page, in the **Job Topology** section on the left menu, select **Inputs**.
129+
2. On the **Inputs** page, select **+ Add stream input** and **Event hub**.
151130

152-
To add a new consumer group:
131+
:::image type="content" source="media/event-generator-app/add-input-event-hub-menu.png" lightbox="media/event-generator-app/add-input-event-hub-menu.png" alt-text="Screenshot showing the Input page for a Stream Analytics job.":::
132+
3. On the **Event hub** page, follow these steps:
133+
1. For **Input alias**, enter **CallStream**. Input alias is a friendly name to identify your input. Input alias can contain alphanumeric characters, hyphens, and underscores only and must be 3-63 characters long.
134+
1. For **Subscription**, select the Azure subscription where you created the event hub. The event hub can be in same or a different subscription as the Stream Analytics job.
135+
1. For **Event Hubs namespace**, select the Event Hubs namespace you created in the previous section. All the namespaces available in your current subscription are listed in the dropdown.
136+
1. For **Event hub name**, select the event hub you created in the previous section. All the event hubs available in the selected namespace are listed in the dropdown.
137+
1. For **Event hub consumer group**, keep the **Create new** option selected so taht a new consumer group is created on the event hub. We recommend that you use a distinct consumer group for each Stream Analytics job. If no consumer group is specified, the Stream Analytics job uses the `$Default` consumer group. When a job contains a self-join or has multiple inputs, some inputs later might be read by more than one reader. This situation affects the number of readers in a single consumer group.
138+
1. For **Authentication mode**, select **Connection string**. It's easier to test the tutorial with this option.
139+
1. For **Event hub policy name**, select **Use existing**, and then select the policy you created earlier.
140+
1. Select **Save** at the bottom of the page.
153141

154-
1. In the Azure portal, go to your Event Hubs instance.
155-
1. In the left menu, under **Entities**, select **Consumer groups**.
156-
1. Select **+ Consumer group** on the command bar.
142+
:::image type="content" source="media/event-generator-app/configure-stream-analytics-input.png" alt-text="Screenshot showing the Event Hubs configuration page for an input.":::
157143

158-
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/create-consumer-group.png" alt-text="Screenshot that shows creating a new consumer group.":::
159-
1. In **Name**, enter a name for your new consumer group. For example, *MyConsumerGroup*.
160-
1. Select **Create**.
-2.11 KB
Loading
-3.3 KB
Loading
-1.05 KB
Loading
1.61 KB
Loading
-71.5 KB
Loading
-28.3 KB
Loading
-16.7 KB
Loading
-5.57 KB
Loading

0 commit comments

Comments
 (0)