Overview of A&A
Though there are many kinds of A&A, including many nuances such as the authentication of services, users, and so on, we’ll focus on A&A for a single user in an Azure Tenant. That will usually be an employee during debugging (you!). This will then allow you to extend these concepts so that other services you create can be authorized in the same way.
Tenant
A tenant in Azure is a Guid that specifies all the content of a single organization.
Enabling authentication on existing functions
Let’s begin by adding authentication to an existing Azure function. To do so, follow these steps:
- Open your Azure Function resource from Chapter 6 and navigate to the Authentication section, as shown in Figure 9.1.
Figure 9.1 – Selecting Authentication
- Click Add Identity Provider, and then select Microsoft. Use the following configuration options (they are almost all default):
- Choose a tenant
- Workforce...
- Choose a tenant