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: docs/workshop.md
+51-12
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The **FastTrack** required steps will be prefixed with a `🚀` label : These ar
53
53
54
54
</div>
55
55
56
-
## 🚀 Prerequisites
56
+
## 🚀 Dev Environment Setup
57
57
58
58
Before starting this lab, be sure to set your Azure environment :
59
59
@@ -132,7 +132,9 @@ The following tools and access will be necessary to run the lab in good conditio
132
132
133
133
Once you have set up your local environment, you can clone the Hands-on-lab-serverless repo you just forked on your machine, and open the local folder in Visual Studio Code and head to the next step.
134
134
135
-
### 👉 All : Load the Workspace
135
+
## 🚀 Visual Studio Code Setup
136
+
137
+
### 👉 Load the Workspace
136
138
137
139
Once your environment is ready, you will have to enter the Visual Studio Workspace to get all the tools ready.
138
140
To do so, click the **burger menu** in the top left corner (visible only with codespace), **File** and then **Open Workspace from File...**
@@ -149,7 +151,7 @@ To do so, click the **burger menu** in the top left corner (visible only with co
149
151
150
152
Let's begin!
151
153
152
-
### 🔑 All : Sign in to Azure
154
+
### 🔑 Sign in to Azure
153
155
154
156
<divclass="task"data-title="Task">
155
157
@@ -197,6 +199,44 @@ az provider register --namespace 'Microsoft.Web'
197
199
198
200
</details>
199
201
202
+
### Deploy the infrastructure
203
+
204
+
If you choose to do the FastTrack version, you must deploy the infrastructure before starting the lab.
205
+
206
+
First, you need to initialize the terraform infrastructure by running the following command:
207
+
208
+
```bash
209
+
cd terraform && terraform init
210
+
```
211
+
212
+
Then run the following command to deploy the infrastructure:
213
+
214
+
```bash
215
+
# Apply the deployment directly
216
+
terraform apply -auto-approve
217
+
```
218
+
219
+
Now you can deploy the web app code into the Static Web App:
The deployment should take around 5 minutes to complete.
239
+
200
240
## Scenario
201
241
202
242
The goal of the full lab is to upload an audio file to Azure and retrieve the transcripts back using a Web Application.
@@ -369,7 +409,7 @@ This command will create the Static Web App in Azure and will then prompt you fo
369
409
370
410
You can also opt for building and deploying the web app from your machine without having to fork the project and give permissions to [AzureAppServiceCLI][app-service-cli] to access the code.
371
411
372
-
First let's [download][webapp-zip] or clone the [project][github-hol] locally and go inside the `src/webapp` folder.
412
+
First let's go inside the `src/webapp` folder.
373
413
374
414
Now, you can follow these steps to create the static web app:
375
415
@@ -1391,7 +1431,7 @@ It's now time to connect the Azure Function App which stand for a small API to u
1391
1431
<details>
1392
1432
<summary>📚 Toggle solution</summary>
1393
1433
1394
-
First, go to the Azure Static Web App resource and inside `Configuration` in the `Application Settings` set the environment variable `FILE_UPLOADING_URL` to the same Azure Function `AudioUpload` endpoint you retrieved earlier in the lab above.
1434
+
First, go to the Azure Static Web App resource and inside `Configuration` in the `Application Settings` set the environment variable `FILE_UPLOADING_URL` to the same Azure Function `AudioUpload` endpoint you retrieved earlier in the lab above like `https://<functionapp>.azurewebsites.net/api/audioupload?code=<...>`.
1395
1435
1396
1436
If your function expects a binary as an input then you will also need to set `FILE_UPLOADING_FORMAT` to `binary`
1397
1437
@@ -1744,15 +1784,15 @@ The next step is to use the newly created Web PubSub instance (`wps<environment>
1744
1784
1745
1785
Add a new Cosmos DB-triggered function `CosmosToWebPubSub` to your Function App and use the following settings:
0 commit comments