In this blog, you will learn the general steps for connecting PowerApps with Azure AD.
Register an application in Azure AD
- Log in to Azure Portal using your Azure AD credentials.
- Navigate to Azure Active Directory > App Registrations.
- Click on "New registration", and fill in the necessary information.
- Under "Supported account types," select the type of accounts that will be accessing the application.
- Click "Register" to create the application.
Create a client secret
- From the application's "Overview" page, click on "Certificates & secrets."
- Click "New client secret", and enter a description and expiration date.
- Click "Add" to create the client secret.
Grant permissions
- From the application's "Overview" page, click on "API permissions."
- Click "Add a permission", and select the API you want to access with PowerApps.
- Choose the appropriate permissions for the API, and click "Add permissions."
- Click "Grant admin consent" to grant the permissions.
Configure PowerApps
- Open the PowerApps portal, and go to the "Connections" tab.
- Click "New connection" and select "Azure Active Directory."
- Enter the Tenant ID, Client ID, and Client Secret you created in Azure AD.
- Click "Create" to create the connection.
Use the connection in PowerApps
- Create a new app or open an existing app in PowerApps.
- Add a data source that uses the Azure AD connection.
- Use the data source to retrieve or update data from the API that you granted permissions for in Azure AD.
That's it! You should now be able to connect PowerApps with Azure AD and use it to access APIs securely.