Modern authentication is a crucial aspect of Office 365 security, and Veeam offers seamless integration with it. If you're looking to enhance your backup and recovery process with Veeam in Office 365, you've come to the right place. In this guide, we'll walk you through setting up Veeam for Office 365 modern authentication step by step.

Before we delve into the setup process, let's briefly understand why modern authentication is important. Modern authentication, also known as OAuth 2.0, provides an additional layer of security by verifying the sign-in credetials and confirming the identity of the client application.

Prerequisites for Setting Up Veeam for Office 365 Modern Authentication
Before you proceed with the setup, ensure that you have the following prerequisites in place:

1. **Veeam Backup for Microsoft Office 365**: Your Veeam environment should have the Office 365 backup component installed.
2. **Office 365 Admin Privileges**: You should have administrative privileges in your Office 365 account to manage app registrations and permissions.

Enabling Modern Authentication in Office 365
Your first step is to enable modern authentication in your Office 365 environment.
1. Log in to the Azure portal with your admin account.

2. Navigate to 'Azure Active Directory' and select 'App registrations'.
3. Select 'Settings' and ensure that 'Allow public client flows' is set to 'Yes'.
Registering Veeam with Office 365

Next, you need to register Veeam with Office 365 to generate an app (client) ID.
1. In the Azure portal, click on '+ New registration'.


















2. Enter a name, select the supported account types, and provide a redirect URI (can be a dummy value like https://veeam.com).
Configuring Veeam for Office 365 Modern Authentication
After enabling modern authentication and registering Veeam in Office 365, it's time to configure Veeam Backup for Office 365.
Adding a Service Account in Veeam
Create a new service account in Veeam and assign it the necessary permissions for services like Exchange, OneDrive, and SharePoint.
1. In Veeam Backup for Microsoft Office 365, navigate to 'Backup Infrastructure' and then 'Service Accounts'.
2. Click on 'Add Service Account' and fill in the details. Ensure you select 'Modern authentication' under 'Credential type'.
Configuring Office 365 Settings in Veeam
Finally, configure your Office 365 settings in Veeam with the app (client) ID and tenant ID generated earlier.
1. Go to 'Office 365 settings' under 'Backup Repositories'.
2. Select 'Modern authentication' as the sign-in method and fill in the app (client) ID and tenant ID.
That's it! You've successfully configured Veeam for Office 365 modern authentication. Always remember to test your backups after making such changes to ensure everything is functioning as expected. Happy backups!