---
title: Azure configuration
slug: v111/azure-configuration
docTags: 
createdAt: 2025-06-10T06:44:31.747Z
---

## Setting up a Microsoft OAuth2 Provider For Email Authentication

More information can be found in Microsofts documentation listed below. This page will just show the high level flow of the configuration.

[https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth](https://docs.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth)

[https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow)

## Register an application

[https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app](https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app)

### Add new application

Goto **Azure Portal → Active Directory → App Registrations**



![](https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/MGi6KzqWyiM5oGxr4z3MF_2254864427.png)

![](https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/5wsDFt1bGPO2mfZGOn1GC_2254897218.png)

### Redirect URL

You will then need to place a Redirect URL onto the Azure application. To do that, please follow the steps below:

1. Go to Azure’s Application registration’s Overview page and you will find the “Redirect URIs” link on the right hand side. It looks like the following:
2. On the “Redirect URIs” page, click on the “Add a Redirect URI” link, and on the resulting page, click on “Add a platform” and click on the “Web” option.
3. Please populate the “Redirect URIs” field on Azure. Note that the Redirect URI format is: https\://*\[instancename]*.servicely.ai/sso/oauth\_callback
   You can also get the Redirect URI from the “System OAuth Provider” record on Servicely that you will use to authenticate to this Azure application. On that Servicely Provider record, you will see this field and you can copy its value:
4. Save your changes.
5. Back on the Application registration’s Overview page, you will then see the “Redirect URIs” link now showing “1 web”.

### Add a client secret

Goto **Certificates & secrets** and add a new Client Certificate.



![](https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/vn2HOOvlLzkpFMB58g72p_2254831678.png)

![](https://api.archbee.com/api/optimize/RDSPJwtKQ5B5sE-oMCN16/-tHeVbLEdkjocaVA90CD-_2254831672.png)

You will need to record and save the value of the generated Client Secret and then place it into Servicely’s corresponding “System OAuth Provider” record’s Client Secret field.
