Perform the following steps:
- Navigate to the Platform features section of Azure Functions.
- In the Authentication/Authorization blade, perform the following steps to enable the AD authentication:
- Click on the On button to enable the authentication.
- Choose the Login using Azure Active Directory menu option.
- Click on the Not Configured button to start configuring the options.
- The next step is to choose an existing or create a new registration for the client application that we want to provide access to. This can be done by pressing the Express button in the Management Mode field. Also, I opted to create a new one and provided AzureFunctionCookbookV2 as the name for my app registration. Click OK