While creating notebooks using Microsoft Teams you might get the following error
"Sorry you don't have access to access the requested resource"
In the Fiddler trace you would see the following error
HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
"message": "OneDrive for Business is not provisioned for this user.",
This is caused due to IP address restrictions or setting location based policies.
Affected customers can refer (https://support.office.com/en-us/article/Office-365-URLs-and-IP-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2) for configuring these ranges but this requires active management, since the list is updated frequently.
But that would most probably not resolve the issue as according to (https://support.office.com/en-us/article/control-access-to-sharepoint-online-and-onedrive-data-based-on-network-location-b5a5f1f1-1174-4c6b-91d0-9273a6b6971f) - Control access to SharePoint Online and OneDrive data based on defined network locations - SharePoint, the only apps that currently support location-based policies are Yammer and Exchange. This means that all other apps are blocked, even when these apps are hosted within the trusted network boundary. This is because SharePoint cannot determine whether a user of these apps is within the trusted boundary. So, until SharePoint Online can support location-based policies for services such as OneNote.com you can’t accomplish this using IP restrictions.
The resolution currently is to remove location-based policies if users want the OneNote tab to work.