Skip to content

Commit 31bd1d7

Browse files
author
Tiago Brenck
committed
improved readme
1 parent 3ce962d commit 31bd1d7

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

6-Deploy-to-Azure/README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## How to deploy this sample to Azure
22

3-
This project has one WebApp / Web API projects. To deploy them to Azure Web Sites, you'll need, for each one, to:
3+
This tutorial has one WebApp and some chapters have a Web API project. To deploy them to Azure Web Sites, you'll need to perform these steps for **each** project:
44

5-
- create an Azure Web Site
5+
- create an Azure Web Site with a unique name
66
- publish the Web App / Web APIs to the web site, and
77
- update its client(s) to call the web site instead of IIS Express.
88

@@ -14,7 +14,7 @@ This project has one WebApp / Web API projects. To deploy them to Azure Web Site
1414
1. Click `Create` and wait for the App Service to be created.
1515
1. Once you get the `Deployment succeeded` notification, then click on `Go to resource` to navigate to the newly created App service.
1616

17-
### If your sample uses **SQL Server**, please follow these steps
17+
### If your project uses **SQL Server**, please follow these steps
1818

1919
1. The following steps provide instructions to create a Sql database that the sample needs. If you already have a Sql Server and database present and a connection string available, skip the steps till we ask you to provide the connections string in the `Application Settings`.
2020
1. Click `Create a resource` in the top left-hand corner again, select **Databases** --> **SQL Database**, to create a new database. Follow the `Quickstart tutorial` if needed.
@@ -25,15 +25,20 @@ This project has one WebApp / Web API projects. To deploy them to Azure Web Site
2525
1. Click on **Application settings** in the left menu of the App service and add the copied Sql connection string in the **Connection strings** section as `DefaultConnection`.
2626
1. Choose `SQLAzure` in the **Type** dropdown. **Save** the setting.
2727

28-
### Update the client application URLs
28+
### Update the redirect URLs
2929

3030
1. Navigate back to to the [Azure portal](https://portal.azure.com).
3131
In the left-hand navigation pane, select the **Azure Active Directory** service, and then select **App registrations**.
3232
1. In the resultant screen, select the `WebApp-OpenIDConnect-DotNet-code-v2` application.
33-
1. In the **Authentication** tab, update the Logout URL fields with the address of your service, for example [https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net](https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net)
34-
1. From the *Branding* menu, update the **Home page URL**, to the address of your service, for example [https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net](https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net). Save the configuration.
35-
1. Add the same URL in the list of values of the *Authentication -> Redirect URIs* menu. If you have multiple redirect urls, make sure that there a new entry using the App service's Uri for each redirect url.
36-
1. If your application calls a web api, make sure to apply the necessary changes on `appsettings.json` so it calls the published API URL instead of `localhost`.
33+
1. In the **Authentication** tab:
34+
- In the **Redirect URIs** section, select **Web** in the combo-box and add the following redirect URIs.
35+
- `https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net`
36+
- `https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net/signin-oidc`
37+
- In the **Advanced settings** section set **Logout URL** to `https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net/signout-oidc`
38+
1. In the **Branding** tab:
39+
- Update the **Home page URL** to the address of your app service, for example `https://WebApp-OpenIDConnect-DotNet-code-v2-contoso.azurewebsites.net`.
40+
- Save the configuration.
41+
1. If your application calls a web api, make sure to apply the necessary changes on the project `appsettings.json`, so it calls the published API URL instead of `localhost`.
3742

3843
### Publishing the sample
3944

0 commit comments

Comments
 (0)