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
> * Create an Event Grid subscription from the Functions app
18
17
> * Stream sample data into Event Hub.
19
18
> * Verify captured data in SQL Data Warehouse
20
19
21
-
# Prerequisites
20
+
##Prerequisites
22
21
23
22
-[Visual studio 2017 Version 15.3.2 or greater](https://www.visualstudio.com/vs/). While installing, ensure that you install the following workloads: .NET desktop development, Azure development, ASP.NET and web development, Node.js development, Python development
24
23
- Download the [Git sample](https://github.com/Azure/azure-event-hubs/tree/master/samples/e2e/EventHubsCaptureEventGridDemo). The sample solution contains the following components:
25
24
-*WindTurbineDataGenerator* – A simple publisher that sends sample wind turbine data to a Capture-enabled event hub
26
25
-*FunctionDWDumper* – An Azure Function that receives an Event Grid notification when an Avro file is captured to the Azure Storage blob. It receives the blob’s URI path, reads its contents, and pushes this data to a SQL Data Warehouse.
27
26
28
-
## Deploy the infrastructure
27
+
###Deploy the infrastructure
29
28
Deploy the infrastructure needed for this tutorial by using this [Azure Resource Manager template](https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/event-grid/EventHubsDataMigration.json). This template creates the following resources:
30
29
31
30
- Event Hub with the Capture feature enabled
@@ -35,7 +34,20 @@ Deploy the infrastructure needed for this tutorial by using this [Azure Resource
35
34
- SQL Server for hosting the Data Warehouse
36
35
- SQL Data Warehouse for storing the migrated data
37
36
37
+
The following sections provide Azure CLI and Azure PowerShell commands for deploying the infrastructure required for the tutorial. Update names of the following objects before running the commands:
38
38
39
+
- Azure resource group
40
+
- Event Hubs namespace
41
+
- Event hub
42
+
- Azure SQL server
43
+
- SQL user (and password)
44
+
- Azure SQL database
45
+
- Azure Storage
46
+
- Azure Functions App
47
+
48
+
These scripts take a while to create all the Azure artifcts. Wait until the script completes before proceeding further.
49
+
50
+
#### Azure CLI
39
51
To deploy the template using Azure CLI, use the following commands:
Create a table in your SQL data warehouse by running the *CreateDataWarehouseTable.sql* script using Visual Studio or the Query Editor in the portal.
72
+
Create a table in your SQL data warehouse by running the [CreateDataWarehouseTable.sql](https://github.com/Azure/azure-event-hubs/blob/master/samples/e2e/EventHubsCaptureEventGridDemo/scripts/CreateDataWarehouseTable.sql) script using Visual Studio or the Query Editor in the portal.
0 commit comments