Create an Azure App
Below are the steps for creating an Azure App.
Last updated
Below are the steps for creating an Azure App.
Last updated
Create a Microsoft Azure account, if you don't already have one. https://azure.microsoft.com/en-us/free/
Login to the Microsoft Azure portal here https://portal.azure.com/
If you don't already have an active subscription or your account is new, start a new subscription by clicking the Start button under Start with an Azure free trial. Without an active subscription, you won't have access to the resources needed to create your Azure App.
From the left menu, click on Azure Active Directory.
**Note: Azure Active Directory is now called Microsoft Entra ID
From the Active Directory menu, click on App Registrations and then click on New Registration
Add a name for your application
Choose the account types you want to support. If you're not sure which type to choose, click on the Help me choose... link.
For Redirect URI, select Web and add the following URI: https://api.pyas.io/oauth/microsoft/callback
. We'll add more redirect URIs later.
Click on Register
You've now registered your new Azure App. But, we need to configure some things.
From the App Registrations page, select your app.
Click on API Permissions on the left menu and then click on Add a permission.
Click on Microsoft Graph then click on Delegated Permissions.
Search for and select to following API permissions
openid
profile
offline_access
User.Read
Calendars.Read
Calendars.ReadBasic
Calendars.Read.Shared
Calendars.ReadWrite
Calendars.ReadWrite.Shared
Subscription.Read.All
OnlineMeetings.Read - Optional. Select this scope if you plan on adding Microsoft Teams conferencing to events
OnlineMeetings.ReadWrite - Optional. Select this scope if you plan on adding Microsoft Teams conferencing to events
Click the Add Permissions button.
From your app page, click on Branding & Properties in the left menu.
Fill out the form fields for branding (App Name, Logo, Home Page Url, etc..)
Click save.
From your app page, click on Authentication in the left menu.
Click the Web dropdown
Click Add URI
Add https://www.app.pyas.io/org/apps/oauth/microsoft/callback
as a redirect URI.
Add your own redirect URIs as needed
Click Save
From your app page, select Certificates & Secrets on the left menu
Click on New Client Secret.
Add a description for your secret and select 24 months as the expiration date.
Click Add.
Copy the secret value
Login to your Pyas account
Select the Pyas App you will be updating
Go to the Pyas App's settings tab
Click on Authentication
Under Pyas Authentication, toggle the Enable Pyas Auth for Microsoft Accounts switch off. Then, click the Save Pyas Auth Settings button.
Scroll down to the Native Microsoft Authentication section
Paste the client secret value you copied earlier into the Microsoft Oauth Client Secret field
From your Azure portal, click on App Registrations
Copy the Application ID of your Azure App
Go back to the Native Microsoft Authentication section of your Pyas App's Authentication settings
Paste your Azure App's Client ID into the Microsoft Oauth Client ID field.
Add your Azure App's redirect URL into the Microsoft Callback URL field.
Click Save Microsoft Settings
That's it! You should now be able to use your Azure App with Pyas to add Outlook Calendar integrations into your app.
Note: Microsoft requires apps that access user data to go through a domain verification process, when you're ready to take your app to production.