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: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/2-analyze-limitations-of-polling-in-a-web-app.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
prefetch-feature-rollout: true
6
6
title: Analyze the limitations of a polling-based web app
7
7
description: Discuss the drawbacks of a web application that relies on polling to keep the UI updated.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/3-exercise-analyze-limitations-of-polling-in-a-web-app.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
prefetch-feature-rollout: true
6
6
title: Exercise - Analyze the limitations of a polling-based web app
7
7
description: Review the implementation of polling website and run the app on your machine.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/4-enable-automatic-updates-in-a-web-app-using-signalr.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
prefetch-feature-rollout: true
6
6
title: Enable automatic updates in a web application using SignalR Service
7
7
description: Learn how a push-based architecture can make a better performing application.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
prefetch-feature-rollout: true
6
6
title: Exercise – Enable automatic updates in a web application using SignalR Service
7
7
description: Implement integration with Azure Functions and SignalR Service for fast and targeted automatic updates.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/6-host-a-static-website-using-a-storage-account.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
prefetch-feature-rollout: true
6
6
title: Use a storage account to host a static website
7
7
description: Learn how an Azure Storage account is able to host static files over a secure server.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/7-exercise-host-a-static-website-using-a-storage-account.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ metadata:
5
5
prefetch-feature-rollout: true
6
6
title: Exercise - Use a storage account to host a static website
7
7
description: Customize your storage account, publish your function app and view your application hosted in the cloud.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/includes/3-exercise-analyze-limitations-of-polling-in-a-web-app.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,16 @@ Before you change the prototype, you need to run it to validate the assumptions.
4
4
5
5
1. In a separate browser tab or window, fork the sample repository on GitHub with the following link: [mslearn-advocates.azure-functions-and-signalr](https://github.com/MicrosoftDocs/mslearn-advocates.azure-functions-and-signalr/fork). This allows you to push your changes to your own version of the source code. This is a required step in order to deploy the source code to Azure later in the module.
6
6
7
-
1. In the terminal, clone the repository. In the following command, replace `MicrosoftDocs` with your account:
7
+
1. In the terminal, clone your forked repository. In the following command, replace `MicrosoftDocs` with your account:
:::image type="content" source="../media/visual-studio-code-terminal-output-stock-change.png" alt-text="Screenshot of Visual Studio Code terminal showing console output of the stock price change.":::
154
163
155
-
1. In both the start-client and start server terminals, stop the applications with <kbd>Ctrl</kbd> + <kbd>C</kbd> or kill the terminal by selecting the trashcan icon.
164
+
1. In both the terminals forclient and server, stop the applications with <kbd>Ctrl</kbd> + <kbd>C</kbd> or kill the terminal by selecting the trashcan icon.
156
165
157
166
In this unit, you ran the prototype. While the client does run successfully, it isn't efficient. While each individual client may not notice this with such a small number of stocks, that will change as the number of stocks grows and the number of clients pull from the server. The prototype can be improved. Let's learn how in the next unit.
Copy file name to clipboardExpand all lines: learn-pr/advocates/automatic-update-of-a-webapp-using-azure-functions-and-signalr/includes/5-exercise-enable-automatic-updates-in-a-web-app-using-signalr.md
+9-21Lines changed: 9 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ You need to create an Azure SignalR resource.
12
12
1. Navigate to the `setup-resources` subdirectory to create the resource.
| Subscription | Select the same subscription as seen at the top of the page. |
128
128
| Identity | Select **Create new**.|
129
129
130
130
1. Select **Save** at the top of the section to save the settings. This creates a new workflow file in your forked repository.
131
131
1. This deployment configuration creates a GitHub Actions workflow file in the repository. You need to update the workflow file to use the correct package path for the functionapp.
132
132
133
-
<!--- Remove this content section after the OIDC subject bug gets fixed by the Functions folks -->
134
-
At this point, your GitHub deployment might generate an error because of a wrong configuration in the user-assigned managed identity created in your resource group in Azure.
135
-
136
-
## Update the managed identity
137
-
138
-
1. In your new functionapp page in the Azure portal, selectyour resource group in**Overview**>**Essentials**, thenselectthe managed identity under **Resources**. This managed identity was created by Functions when you enabled the GitHub deployment.
139
-
1. In the **Managed Identity** page, select**Settings**>**Federated credentials** and thenselectthe existing credential.
140
-
1. In **Connect your Github account**, change the setting for**Entity** to **Environment** and enter `Production`for**Environment**.
141
-
1. Select **Update** to update the credential.
142
-
<!--- end removal section -->
143
-
144
133
## Edit GitHub deployment workflow
145
134
146
135
1. In Visual Studio Code terminal, pull down the new workflow file from your fork (origin).
@@ -175,14 +164,14 @@ At this point, your GitHub deployment might generate an error because of a wrong
175
164
```bash
176
165
git add .
177
166
git commit -m "Update deployment workflow to use package path"
178
-
git push
167
+
git push origin main
179
168
```
180
169
181
170
This change will trigger the workflow to run. You can watch the workflow from the **Actions** section of the fork on GitHub.
182
171
183
172
## Configure the environment variables for the API functions
184
173
185
-
1. In the Azure portal, locate your functionapp and select**Settings**>**Configuration**thenselect**New application setting**.
174
+
1. In the Azure portal, locate your functionapp and select**Settings**>**Environment variables**thenselect**+ Add**.
186
175
1. Enter the settings forthe Cosmos DB and SignalR connection strings. You can find the valuesin the `local.settings.json`in the `start/server` folder.
187
176
188
177
| Name | Value |
@@ -194,9 +183,8 @@ At this point, your GitHub deployment might generate an error because of a wrong
194
183
195
184
## Test the deployment of the API Functions
196
185
197
-
1. In the Azure portal, select**Overview** and select**URL** to open the app in a browser.
198
-
1. Copy the URL, you'll need that when you update the client `.env` file for the `BACKEND_URL` value when you work in Unit 7.
199
-
1. Open the URL in a browser to test the API functions.
186
+
1. In the Azure portal, select**Overview** and select**Default domain** to open the app in a browser to test the API functions.
200
187
1. Append `/api/getStocks` to the URL in the browser and press **Enter**. You should see a JSON array with stock data.
188
+
1. Copy the URL, you'll need that when you update the client `.env` file for the `BACKEND_URL` value when you work in Unit 7.
201
189
202
190
You've updated the server code to return stocks with SignalR and you've deployed to a function app. Next, you'll update the client to use SignalR to receive updates.
0 commit comments