Forum Discussion
cdreeetz
Nov 06, 2023Copper Contributor
How to setup a Log Analytics Workspace in a Fabric Notebook
I am using azure-monitor-query to automate some logs we need but can't get the workspace to work in the notebook with service principal credentials. The service principal has read access to the ...
Kidd_Ip
Jan 01, 2026MVP
A PathNotFoundError typically indicates that an incorrect identifier has been provided for the Log Analytics workspace. When using the azure-monitor-query library, you must supply the Workspace ID (GUID) available in the Azure portal, rather than the resource name or full resource path. Additionally, confirm that the service principal has been granted the Monitoring Reader or Log Analytics Reader role at the workspace scope to ensure proper access.