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
4. Save this file to your local computer and give it the name **data.csv**.
65
+
5. Save this file to your local computer and give it the name **data.csv**.
66
66
67
-
5. In storage browser, upload this file to the **input** folder.
67
+
6. In storage browser, upload this file to the **input** folder.
68
68
69
69
## Create a job in Azure Databricks
70
70
@@ -160,7 +160,7 @@ In this section, you create an Azure Databricks workspace using the Azure portal
160
160
161
161
This code inserts data into a temporary table view by using data from a csv file. The path to that csv file comes from the input widget that you created in an earlier step.
162
162
163
-
2.Add the following code to merge the contents of the temporary table view with the Databricks Delta table.
163
+
2.Copy and paste the following code block into a different cell. This code merges the contents of the temporary table view with the Databricks Delta table.
164
164
165
165
```
166
166
%sql
@@ -207,20 +207,19 @@ Create an Azure Function that runs the Job.
207
207
208
208
3. Copy the token that appears, and then click **Done**.
209
209
210
-
1. In the upper corner of the Databricks workspace, choose the people icon, and then choose **User settings**.
210
+
4. In the upper corner of the Databricks workspace, choose the people icon, and then choose **User settings**.
|**DBX_INSTANCE**| The region of your databricks workspace. For example: `westus2.azuredatabricks.net`|
248
-
|**DBX_PAT**| The personal access token that you generated earlier. |
249
-
|**DBX_JOB_ID**|The identifier of the running job. |
244
+
|Setting name | Value |
245
+
|----|----|
246
+
|**DBX_INSTANCE**| The region of your databricks workspace. For example: `westus2.azuredatabricks.net`|
247
+
|**DBX_PAT**| The personal access token that you generated earlier. |
248
+
|**DBX_JOB_ID**|The identifier of the running job. |
250
249
251
250
9. Select **Save** to commit these settings.
252
251
@@ -258,9 +257,9 @@ Create an Azure Function that runs the Job.
258
257
259
258
The **New Function** pane appears.
260
259
261
-
9. In the **New Function** pane, name the function **UpsertOrder**, and then select the **Create** button.
260
+
12. In the **New Function** pane, name the function **UpsertOrder**, and then select the **Create** button.
262
261
263
-
10. Replace the contents of the code file with this code, and then select the **Save** button:
262
+
13. Replace the contents of the code file with this code, and then select the **Save** button:
264
263
265
264
```csharp
266
265
#r"Azure.Messaging.EventGrid"
@@ -330,7 +329,7 @@ In this section, you'll create an Event Grid subscription that calls the Azure F
330
329
|Systemtopicname|<createanyname>|
331
330
|FiltertoEventTypes|BlobCreated, andBlobDeleted|
332
331
333
-
5. Selectthe**Create**button.
332
+
4. Selectthe**Create**button.
334
333
335
334
## Test the Event Grid subscription
336
335
@@ -345,17 +344,9 @@ In this section, you'll create an Event Grid subscription that calls the Azure F
345
344
346
345
Uploading a file raises the **Microsoft.Storage.BlobCreated** event. Event Grid notifies all subscribers to that event. In our case, the Azure Function is the only subscriber. The Azure Function parses the event parameters to determine which event occurred. It then passes the URL of the file to the Databricks Job. The Databricks Job reads the file, and adds a row to the Databricks Delta table that is located your storage account.
347
346
348
-
3. To check if the job succeeded, open your databricks workspace, select the **Jobs** button, and then open your job.
347
+
3. To check if the job succeeded, view the runs for your job. You'll see a completion status. For more information about how to view runs for a job, see [View runs for a job](/azure/databricks/workflows/jobs/jobs#--view-runs-for-a-job)
5. In a new workbook cell, run this query in a cell to see the updated delta table.
349
+
4. In a new workbook cell, run this query in a cell to see the updated delta table.
359
350
360
351
```
361
352
%sql select * from customer_data
@@ -365,7 +356,7 @@ In this section, you'll create an Event Grid subscription that calls the Azure F
365
356
366
357

367
358
368
-
6. To update this record, create a file named `customer-order-update.csv`, paste the following information into that file, and save it to your local computer.
359
+
5. To update this record, create a file named `customer-order-update.csv`, paste the following information into that file, and save it to your local computer.
0 commit comments