I have an MS account (not 365) which gives me access to the office suite online. My OneNote files are stored in OneDrive. I also have an Azure account with a registered app. Although both of these accounts have the same credentials, it looks like they're not connected. When I authenticate via my Azure app the token I get does not give me access to OneDrive or OneNote. I CAN access everything via graph explorer. When I copy and paste the token generated in explorer into my code, the code works perfectly. I cannot figure out how to connect my MS Office account with my Azure account.
I know it's possible to access my data via Graph because it works in explorer. When I try and access https://graph.microsoft.com/v1.0/me/onenote/notebooks I get 404: Not Found. I believe this is because there is no data in my Azure account. How do I connect them? Thank you.