To assign managed identity access to Exchange, you need to follow these steps:
- Create and Configure a Managed Identity: You can create either a system-assigned or user-assigned managed identity. For a system-assigned managed identity, you can follow the steps outlined in the documentation for creating and configuring it.
- Assign Microsoft Entra Roles: After creating the managed identity, you need to assign it the appropriate Microsoft Entra roles. For example, you can assign the Exchange Administrator role. To do this:
- Go to the Roles and administrators page in the Azure portal.
- Find and select the Exchange Administrator role.
- On the Assignments page, select Add assignments and choose the managed identity you created.
- Grant API Permissions: Ensure that the managed identity has the necessary API permissions to call Exchange Online. You can do this by assigning the Exchange.ManageAsApp API permission to the managed identity.
- Verify the Assignment: After assigning the role, verify that the role has been successfully assigned to the managed identity.
By following these steps, you can successfully assign managed identity access to Exchange.