Preparing your Azure AD environment for tests
In this section, we'll adjust our Azure AD environment to run code from the Microsoft Information Protection SDK against our Azure Information Protection infrastructure. As usual, it starts with the creation of an Azure AD app:
- Log in with global administrator credentials to the Azure portal at https://portal.azure.com.
- Navigate to the Azure AD blade.
- Click
App registrations
to create a new application. - Click
New Applications registration
.
- Use the following settings:
![](https://static.packt-cdn.com/products/9781789132304/graphics/8186c882-ec2d-467b-b407-1dad9ff0a9b7.png)
Example app properties
- Click the
Settings
button on the registered application:
![](https://static.packt-cdn.com/products/9781789132304/graphics/251ccee6-a3df-4807-9acc-4304bce91ae2.png)
App Settings option
- Click the
Required permissions
section for API access.
- Click
Add
:
![](https://static.packt-cdn.com/products/9781789132304/graphics/e05db7cf-3d91-4690-81c9-3f065b0dffd1.png)
Required permissions configuration
- Click
Select an API
. If needed, use the search field to findMicrosoft Rights Management Services
. - Select the
Microsoft Rights Management Services
API:
![](https://static.packt-cdn.com/products/9781789132304/graphics/c691f97a-8918-49e7-948e-2e474de01f33.png)
Choosing the Microsoft RMS API
- Under the
Select permissions
section, use theCreate and access protected content for users
permission under theDELEGATED...