Skip to content

Commit d1daaac

Browse files
committedFeb 2, 2022
add image file and make Acrolinx fixes for PR review
1 parent 68c9890 commit d1daaac

File tree

2 files changed

+23
-24
lines changed

2 files changed

+23
-24
lines changed
 

‎articles/stream-analytics/stream-analytics-real-time-fraud-detection.md

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@ Before you start, make sure you have completed the following steps:
3737

3838
Sign in to the [Azure portal](https://portal.azure.com).
3939

40-
## Create an Azure Event Hub
40+
## Create an event hub
4141

4242
Before Stream Analytics can analyze the fraudulent calls data stream, the data needs to be sent to Azure. In this tutorial, you will send data to Azure by using [Azure Event Hubs](../event-hubs/event-hubs-about.md).
4343

44-
Use the following steps to create an Event Hub and send call data to that Event Hub:
44+
Use the following steps to create an event hub and send call data to that event hub:
4545

4646
1. Sign in to the [Azure portal](https://portal.azure.com/).
4747
2. Select **Create a resource** > **Internet of Things** > **Event Hubs**.
4848

49-
![Create an Azure Event Hub in the portal](media/stream-analytics-real-time-fraud-detection/find-event-hub-resource.png)
49+
![Create an event hub in the Azure portal.](media/stream-analytics-real-time-fraud-detection/find-event-hub-resource.png)
50+
5051
3. Fill out the **Create Namespace** pane with the following values:
5152

5253
|**Setting** |**Suggested value** |**Description** |
@@ -58,13 +59,13 @@ Use the following steps to create an Event Hub and send call data to that Event
5859

5960
4. Use default options on the remaining settings and select **Review + create**. Then select **Create** to start the deployment.
6061

61-
![Create event hub namespace in Azure portal](media/stream-analytics-real-time-fraud-detection/create-event-hub-namespace.png)
62+
![Create event hub namespace in the Azure portal](media/stream-analytics-real-time-fraud-detection/create-event-hub-namespace.png)
6263

6364
5. When the namespace has finished deploying, go to **All resources** and find *asaTutorialEventHub* in the list of Azure resources. Select *asaTutorialEventHub* to open it.
6465

65-
6. Next select **+Event Hub** and 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.
66+
6. Next select **+Event Hub** and 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.
6667

67-
![Event Hub configuration in Azure portal](media/stream-analytics-real-time-fraud-detection/create-event-hub-portal.png)
68+
![Event hub configuration in the Azure portal](media/stream-analytics-real-time-fraud-detection/create-event-hub-portal.png)
6869

6970
### Grant access to the event hub and get a connection string
7071

@@ -140,7 +141,7 @@ Now that you have a stream of call events, you can create a Stream Analytics job
140141
|Subscription | \<Your subscription\> | Select an Azure subscription where you want to create the job. |
141142
|Resource group | MyASADemoRG | Select **Use existing** and enter a new resource-group name for your account. |
142143
|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. |
143-
|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. |
144+
|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. |
144145
|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. |
145146

146147
4. Use default options on the remaining settings, select **Create**, and wait for the deployment to succeed.
@@ -162,33 +163,31 @@ The next step is to define an input source for the job to read data using the ev
162163
|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. |
163164
|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. |
164165
|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. |
165-
|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. |
166-
|Event Hub policy name | MyPolicy | Select the event hub shared access policy you created in the previous section. All the event hubs policies available in your current subscription are listed in the dropdown. |
166+
|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. |
167+
|Event hub policy name | MyPolicy | Select the event hub shared access policy you created in the previous section. All the event hubs policies available in your current subscription are listed in the dropdown. |
167168

168169
4. Use default options on the remaining settings and select **Save**.
169170

170171
![Configure Azure Stream Analytics input](media/stream-analytics-real-time-fraud-detection/configure-stream-analytics-input.png)
171172

172173
## Create a consumer group
173174

174-
It is recommended to 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 might be read by more than one reader downstream. This situation impacts the number of readers in a single consumer group.
175+
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.
175176

176-
Navigate to your Event Hubs Instance to add a new **Consumer group**.
177+
To add a new consumer group:
177178

178-
1. In the **Entities** section of the Event Hubs Instance, select *Consumer Groups*.
179+
1. In the Azure portal, go to your Event Hubs instance.
179180

180-
2. Select **+ Consumer group**.
181+
1. In the left menu, under **Entities**, select **Consumer groups**.
181182

182-
3. Provide a specified name for your new consumer group.
183-
|**Setting** |**Suggested value** |
184-
|---------|---------|
185-
|Name* | MyConsumerGroup |
186-
187-
4. Click **Create**.
188-
189-
![image](https://user-images.githubusercontent.com/70035300/151443244-6b342150-13c0-49d3-abe1-24a6e611aff7.png)
183+
1. Select **+ Consumer group**.
184+
185+
1. In **Name**, enter a name for your new consumer group. For example, *MyConsumerGroup*.
186+
187+
1. Select **Create**.
188+
189+
:::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.":::
190190

191-
192191
## Configure job output
193192

194193
The last step is to define an output sink where the job can write the transformed data. In this tutorial, you output and visualize data with Power BI.
@@ -247,7 +246,7 @@ If you want to archive every event, you can use a pass-through query to read all
247246

248247
3. Select **Test query**.
249248

250-
The Stream Analytics job runs the query against the sample data from the input and displays the output at the bottom of the window. The results indicate that the Event Hub and the Streaming Analytics job are configured correctly.
249+
The Stream Analytics job runs the query against the sample data from the input and displays the output at the bottom of the window. The results indicate that the Event Hubs and the Streaming Analytics job are configured correctly.
251250

252251
:::image type="content" source="media/stream-analytics-real-time-fraud-detection/sample-output-passthrough.png" alt-text="Sample output from test query":::
253252

@@ -340,7 +339,7 @@ When you use a join with streaming data, the join must provide some limits on ho
340339

341340
![View results in Power BI dashboard](media/stream-analytics-real-time-fraud-detection/power-bi-results-dashboard.png)
342341

343-
## Embedding your Power BI Dashboard in a Web Application
342+
## Embedding your Power BI Dashboard in a web application
344343

345344
For this part of the tutorial, you'll use a sample [ASP.NET](https://asp.net/) web application created by the Power BI team to embed your dashboard. For more information about embedding dashboards, see [embedding with Power BI](/power-bi/developer/embedding) article.
346345

0 commit comments

Comments
 (0)
Please sign in to comment.