Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As part of the configuration needed to host and run MyTasks in Azure, you need to create the following two App Services for the microservice in Azure:

  • An App Service for the MyTasks Front-End application

  • An App Service for the MyTasks API (back-end)

Create the App Service for the MyTasks Front-End application

deployment process for the SharePoint Online microservice, an app service needs to be created to host the microservice and configured for authentication to access the key vault as needed.

Create the app service

  1. Log in to your Azure portal as a user with the necessary permissions to create an App Service.

  2. In Azure, navigate to All Services > App Services and create a new App service.

  3. Under Project Details, select a Subscription and then create a Resource Group for the App Service.

  4. Under Instance Details, enter the following information:

    • NameEnter a name for the Web App, such as MyIdentity-UI-App.app service

    • Publish Select Code.

    • Runtime Stack — Select Node 12 – Select .NET Core 3.1 (LTS).

    • Operating System Select Windows. Linux

    • Region Select the appropriate region.

  5. Click Review + Create.

    Image Added

  6. Click Create.

  7. After the deployment of the App Service completes, click Go to resource.Change the platform for the App Service to 64 Bit by doing the following:

  8. On the

    App Service navbar, under Settings, click Configuration.
  9. On the Configuration blade, select the General settings tab.

  10. Under Platform settings, change the Platform to 64 Bit and click Save.

  11. Click Continue to confirm you want to save the changes.

  12. Select Overview on the App Service navbar.

  13. On the Overview page, copy and save the URL for the App Serviceapp service. You will need this when you create the service principal application for the App Service in Azure AD.

Create the App Service for MyTasks API application

  1. In Azure, create a new App Service.

  2. Under Project Details, select a Subscription and create a Resource Group for the App Service.

  3. Under Instance Detailslater.

Configure authentication

  1. Navigate to the Authentication blade for the app service and click Add identity provider.

  2. Select Microsoft.

  3. On the Add an identity provider page, do the following:

    • Name — Enter a name for the Web App, such as MyIdentity-API-App.

    • Publish — Select Code.

    • Runtime Stack — Select .Net Core 3.1 (LTS).

    • Operating System — Select Windows.

    • Region — Select the appropriate region.

  4. Click Review + Create.

  5. Click Create.

  6. After the deployment of the App Service completes, click Go to resource.

  7. Change the platform for the App Service to 64 Bit by doing the following:

    1. On the App Service navbar, under Settings, click Configuration.

    2. On the Configuration blade, select the General settings tab.

    3. Under Platform settings, change the Platform to 64 Bit and click Save.

    4. Click Continue confirm you want to save the changes.

  8. Select Overview on the App Service navbar.

  9. On the Overview page, copy and save the URL. You will need this when you create the service principal application for the App Service in Azure AD.

Insert excerptIL:External StylesheetIL:External Stylesheetnopaneltrue
    1. App registration type – Select Pick an existing app registration in this directory.

    2. Name or app ID – Select the service principal you created to provide Azure AD authentication for the microservice.

    3. Issuer URL – Replace the default value with https://login.microsoftonline.com/<Your Tenant ID>

    4. Authentication – Select Require authentication.

    5. Unauthenticated requests – Select HTTP 401 Unauthorized: recommended for APIs.

    6. Token Store – Leave selected.

    7. Click Add.

      Image Added

Create a managed identity for the app service

  1. Navigate to the Identity blade for the app service.

  2. Turn on System assigned to create the managed identity.

  3. Save your changes.


Next steps

Create a key vault

Provision a Cosmos DB Account for SharePoint Online

Add application settings to the app service

Publish the SharePoint Online Microservice

Div
stylefloat: left; position: fixed;padding: 5px;

IN THIS ARTICLE

Table of Contents
maxLevel4
minLevel2
stylenone

Insert excerpt
IL:External Stylesheet
IL:External Stylesheet
nopaneltrue
Insert excerpt
IL:External Stylesheet
IL:External Stylesheet
nopaneltrue