I wanted to use OneDrive for Business as a backup destination in Home Assistant.
Official integration allows backups to be sent to OneDrive for Business, but asks to prepare an application in Microsoft Entra beforehand, with a Tenant ID, a Client ID, a Secret Client and a precise redirect URI.
Prerequisite
Before you start, you need to:
- A functional Home Assistant.
- A Microsoft 365 / OneDrive for Business account.
- Access to the Microsoft Entra portal with an account that can create an application. Microsoft indicates that at least one Application Developer role is required.
- Knowing the redirect URL used by Home Assistant will be: https://my.home-assistant.io/redirect/oauth.





