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/data-explorer/end-to-end-csharp.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
-
title: 'Create an End to End example for Azure Data Explorer by using Python'
3
-
description: In this article, you learn how to use Azure Data Explorer with an End to End example using Python.
2
+
title: 'End-to-end Blob ingestion into Azure Data Explorer using C#'
3
+
description: In this article, you learn how to ingest blobs into Azure Data Explorer with an End to End example using C#.
4
4
author: lucygoldbergmicrosoft
5
5
ms.author: lugoldbe
6
6
ms.reviewer: orspodek
7
7
ms.service: data-explorer
8
8
ms.topic: conceptual
9
-
ms.date: 09/24/2019
9
+
ms.date: 10/23/2019
10
10
---
11
11
12
-
# An End-to-End example for ingesting blobs into Azure Data Explorer using Python
12
+
# End-to-end Blob ingestion into Azure Data Explorer using C#
13
13
14
14
> [!div class="op_single_selector"]
15
15
> *[C#](end-to-end-csharp.md)
16
16
> *[Python](end-to-end-python.md)
17
17
>
18
18
19
-
Azure Data Explorer is a fast and scalable data exploration service for log and telemetry data. In this article, it gives you an End-to-End example about how to ingest data from a blob storage into Azure Data Explorer. You will learn how to programmatically create a resource group, azure resources (a storage account, an event hub, an Azure Data Explorer cluster), and how to configure Azure Data Explorer to ingest data from a storage account.
19
+
Azure Data Explorer is a fast and scalable data exploration service for log and telemetry data. This articlegives you an end-to-end example about how to ingest data from Blob Storage into Azure Data Explorer. You will learn how to programmatically create a resource group, a storage account and container, an Event Hub, and an Azure Data Explorer cluster and database. You will also learn how to programmatically configure Azure Data Explorer to ingest data from the new storage account.
20
20
21
21
## Prerequisites
22
22
@@ -34,8 +34,9 @@ If you don't have an Azure subscription, create a [free Azure account](https://a
The following code example shows how to create azure resources, and configurations for ingesting blobs into Azure Data Explorer step by step.
37
+
## Code example
38
+
39
+
The following code example gives you a step-by-step process resulting in data ingestion into Azure Data Explorer. You first create a resource group, and Azure resources such as a storage account and container, an Event Hub, and an Azure Data Explorer cluster and database. You then create an Event Grid subscription and table and column mapping in the Azure Data Explorer database. Finally, you create the data connection to configure Azure Data Explorer to ingest data from the new storage account.
39
40
40
41
```csharp
41
42
vartenantId="xxxxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxx";//Directory (tenant) ID
"Step 2: create a blob storage, a container in the storage account, an event hub, an azure data explorer cluster, and database by using an Azure Resource Manager template.");
71
+
"Step 2: Create a Blob Storage, a container in the Storage account, an Event Hub, an Azure Data Explorer cluster, and database by using an Azure Resource Manager template.");
Console.WriteLine("Step 4: create a table (with three columns, EventTime, EventId, and EventSummary) and column mapping in Azure Data Explorer database.");
97
+
Console.WriteLine("Step 4: Create a table (with three columns: EventTime, EventId, and EventSummary) and column mapping in your Azure Data Explorer database.");
Copy file name to clipboardExpand all lines: articles/data-explorer/end-to-end-python.md
+24-20Lines changed: 24 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
-
title: 'Create an End to End example for Azure Data Explorer by using Python'
3
-
description: In this article, you learn how to use Azure Data Explorer with an End to End example using Python.
2
+
title: 'End-to-end Blob ingestion into Azure Data Explorer using Python'
3
+
description: In this article, you learn how to use ingest blobs into Azure Data Explorer with an End to End example using Python.
4
4
author: lucygoldbergmicrosoft
5
5
ms.author: lugoldbe
6
6
ms.reviewer: orspodek
7
7
ms.service: data-explorer
8
8
ms.topic: conceptual
9
-
ms.date: 09/24/2019
9
+
ms.date: 10/23/2019
10
10
---
11
11
12
-
# An End-to-End example for ingesting blobs into Azure Data Explorer using Python
12
+
# End-to-end Blob ingestion into Azure Data Explorer using Python
13
13
14
14
> [!div class="op_single_selector"]
15
15
> *[C#](end-to-end-csharp.md)
16
16
> *[Python](end-to-end-python.md)
17
17
>
18
18
19
-
Azure Data Explorer is a fast and scalable data exploration service for log and telemetry data. In this article, it gives you an End-to-End example about how to ingest data from a blob storage into Azure Data Explorer. You will learn how to programmatically create a resource group, azure resources (a storage account, an event hub, an Azure Data Explorer cluster), and how to configure Azure Data Explorer to ingest data from a storage account.
19
+
Azure Data Explorer is a fast and scalable data exploration service for log and telemetry data. This articlegives you an end-to-end example about how to ingest data from Blob Storage into Azure Data Explorer. You will learn how to programmatically create a resource group, a storage account and container, an Event Hub, and an Azure Data Explorer cluster and database. You will also learn how to programmatically configure Azure Data Explorer to ingest data from the new storage account.
The following code example shows how to create azure resources, and configurations for ingesting blobs into Azure Data Explorer step by step.
40
+
## Code example
41
+
42
+
The following code example gives you a step-by-step process resulting in data ingestion into Azure Data Explorer. You first create a resource group, and Azure resources such as a storage account and container, an Event Hub, and an Azure Data Explorer cluster and database. You then create an Event Grid subscription and table and column mapping in the Azure Data Explorer database. Finally, you create the data connection to configure Azure Data Explorer to ingest data from the new storage account.
42
43
43
44
```python
44
45
from azure.common.credentials import ServicePrincipalCredentials
print('Step 1: create a new resource group in your Azure subscription to manage all the resources for using Azure Data Explorer.')
88
+
print('Step 1: Create a new resource group in your Azure subscription to manage all the resources for using Azure Data Explorer.')
88
89
resource_client.resource_groups.create_or_update(
89
90
resource_group_name,
90
91
{
91
92
'location': location_small_case
92
93
}
93
94
)
94
95
95
-
print('Step 2: create a blob storage, a container in the storage account, an event hub, an azure data explorer cluster, and database by using an Azure Resource Manager template.')
96
+
print('Step 2: Create a Blob Storage, a container in the Storage account, an Event Hub, an Azure Data Explorer cluster, and database by using an Azure Resource Manager template.')
96
97
#Read the Azure Resource Manager template
97
98
withopen(azure_resource_template_path, 'r') as template_file_fd:
Copy file name to clipboardExpand all lines: includes/data-explorer-e2e-event-grid-resource-template.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,14 @@
2
2
author: lugoldbemicrosoft
3
3
ms.service: data-explorer
4
4
ms.topic: include
5
-
ms.date: 10/10/2019
5
+
ms.date: 10/23/2019
6
6
ms.author: lugoldbe
7
7
---
8
8
9
9
## Azure Resource Manager template
10
+
10
11
In this article, an Azure Resource Manager template is used to create all the azure resources, a storage account, a container, an event hub, an azure data explorer cluster, and a database. Save the following content into a file with name `template.json`, which will be used to run the code example.
0 commit comments