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/applied-ai-services/form-recognizer/tutorial-azure-function.md
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,15 +34,15 @@ In this tutorial, you learn how to:
34
34
35
35
***A Form Recognizer resource**. Once you have your Azure subscription, create a [Form Recognizer resource](https://portal.azure.com/#create/Microsoft.CognitiveServicesFormRecognizer) in the Azure portal to get your key and endpoint. You can use the free pricing tier (`F0`) to try the service, and upgrade later to a paid tier for production.
36
36
37
-
* After your resource deploys, select **Go to resource**. You need the key and endpoint from the resource you create to connect your application to the Form Recognizer API. You'll paste your key and endpoint into the code below later in the quickstart:
37
+
* After your resource deploys, select **Go to resource**. You need the key and endpoint from the resource you create to connect your application to the Form Recognizer API. You'll paste your key and endpoint into the code below later in the tutorial:
38
38
39
39
:::image type="content" source="media/containers/keys-and-endpoint.png" alt-text="Screenshot: keys and endpoint location in the Azure portal.":::
40
40
41
41
*[**Python 3.6.x, 3.7.x, 3.8.x or 3.9.x**](https://www.python.org/downloads/) (Python 3.10.x isn't supported for this project).
42
42
43
-
* The latest version of [**Visual Studio Code**](https://code.visualstudio.com/) with the following extensions installed:
43
+
* The latest version of [**Visual Studio Code**](https://code.visualstudio.com/)(VS Code) with the following extensions installed:
44
44
45
-
*[**Azure Functions extension**](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.VS Code-azurefunctions). Once it's installed, you should see the Azure logo in the left-navigation pane.
45
+
*[**Azure Functions extension**](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions). Once it's installed, you should see the Azure logo in the left-navigation pane.
46
46
47
47
*[**Azure Functions Core Tools**](/azure/azure-functions/functions-run-local?tabs=v3%2Cwindows%2Ccsharp%2Cportal%2Cbash) version 3.x (Version 4.x isn't supported for this project).
48
48
@@ -67,7 +67,7 @@ In this tutorial, you learn how to:
67
67
68
68
1. Create a new folder named **functions-app** to contain the project and choose **Select**.
69
69
70
-
1. Open Visual Studio Code and open the Command Palette (Ctrl+Shift+P). Search for and choose **Python:Select Interpreter** → choose **Use Python from \`python.defaultInterpreterPath` setting**. This selection will set the default Python interpreter path.
70
+
1. Open Visual Studio Code and open the Command Palette (Ctrl+Shift+P). Search for and choose **Python:Select Interpreter** → choose an installed Python interpreter that is version 3.6.x, 3.7.x, 3.8.x or 3.9.x. This selection will add the Python interpreter path you selected to your project.
71
71
72
72
1. Select the Azure logo from the left-navigation pane.
73
73
@@ -113,17 +113,15 @@ In this tutorial, you learn how to:
113
113
114
114
## Test the function
115
115
116
-
* Press F5 to run the basic function. VS Code will prompt you to select a storage account to interface with.
116
+
1. Press F5 to run the basic function. VS Code will prompt you to select a storage account to interface with.
117
117
118
-
* Select the storage account you created and continue.
118
+
1. Select the storage account you created and continue.
119
119
120
-
* Open Azure Storage Explorer and upload the sample PDF document to the **input** container. Then check the VS Code terminal.
121
-
122
-
* The script should log that it was triggered by the PDF upload.
120
+
1. Open Azure Storage Explorer and upload the sample PDF document to the **input** container. Then check the VS Code terminal.The script should log that it was triggered by the PDF upload.
123
121
124
122
:::image type="content" source="media/tutorial-azure-function/vs-code-terminal-test.png" alt-text="Screenshot of the VS Code terminal after uploading a new document.":::
125
123
126
-
* Stop the script before continuing.
124
+
1. Stop the script before continuing.
127
125
128
126
## Add document processing code
129
127
@@ -285,9 +283,9 @@ Next, you'll add your own code to the Python script to call the Form Recognizer
285
283
286
284
## Run the function
287
285
288
-
* Press F5 to run the function again.
286
+
1. Press F5 to run the function again.
289
287
290
-
* Use Azure Storage Explorer to upload a sample PDF form to the **input** storage container. This action should trigger the script to run, and you should then see the resulting .csv file (displayed as a table) in the **output** container.
288
+
1. Use Azure Storage Explorer to upload a sample PDF form to the **input** storage container. This action should trigger the script to run, and you should then see the resulting .csv file (displayed as a table) in the **output** container.
291
289
292
290
You can connect this container to Power BI to create rich visualizations of the data it contains.
0 commit comments