Create Azure API App with AAD authentication and web jobs – Prepare environment

This post describes how to create objects in Azure environment for tutorial Create Azure API App with AAD authentication and web jobs.

Create dashboard and Azure resource group

  1. Open Azure portal, log in with your Microsoft account.
  2. Click “+ New dashboard”, rename it to “Azure API APP with AAD Auth”, click “Done customization”. It allows pin tiles for new objects to this new dashboard.
  3. Click “Resource groups” in the left pane, click “+ Add” button. Blade that creates an empty resource group is shown.
  4. Use the following values for properties of resource group:
    Property Value
    Resource group name Azure_API_app_with_AAD_Auth
    Subscription Your subscription
    Resource group location Use the closest data center to your customers

    Check “Pin to dashboard”, and click “Create”.

  5. If resource group was created successfully, portal shows our dashboard with empty tile of created resource group.
  6. Pull at the right bottom corner of Resources widget, and increase it to 4×6 size.

Create Azure storage

Two storage accounts should be created. One of them is used for storing images, thumbnails and keeping queue. The second is used for logging.
Let’s note, that storage name is used as part of direct url, so it should be unique among all Azure storage accounts, be lowercased and has from 3 up to 24 symbols. That is why used below names should be extended by unique prefix like your second name, project title, so on.

  1. Click “Storage accounts” in the left pane, click “+ Add” button. Blade that creates storage account is shown.
  2. Use the following values for properties of storage:
    Property Value
    Name azureapiappdata
    Deployment model Resource manager
    Account kind General purpose
    Replication Geo-redundant storage (GRS) or Read-only geo-redundant storage (RA-GRS)
    Subscription Your subscription
    Resource group Use existent, and choose “Azure_API_app_with_AAD_Auth”
    Location Use the closest data center to your customers

    Click “Create” to create azure storage.

  3. Repeat previous step to create “azureapiapplog” storage account.
  4. Click on “Microsoft Azure” title in the left top corner and take a look at dashboard. It contains one tile with the list of created resources.

Create App Service plan

  1. Click “+ New” in the left pane, and search from “App Service Plan” object. Search blade shows the list of found objects, where the first should be “App Service Plan” by Microsoft. Click on it, and click “Create” on the next blade.
  2. Use the following values for properties of app service plan:
    Property Value
    App Service plan AzureApiAppPlan
    Subscription Your subscription
    Resource group Use existent, and choose “Azure_API_app_with_AAD_Auth”
    Operating System Windows
    Location Use the closest data center to your customers
    Pricing tier You may keep default value “S1 Standard”. Otherwise, click at pricing tier button and choose another tier. For preview and test purposes “D1 Shared” is enough. Let’s note, that app services are charged per instance, not per plan.

    Click “Create” to create azure storage.

Check AAD

Click “Azure Active Directory” in the left pane. Blade that shows current active directory objects is shown.

Active directory
Active directory

1. All used IP-addresses, names of servers, workstations, domains, are fictional and are used exclusively as a demonstration only.
2. Information is provided «AS IS».

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.