<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188902#M16396</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#2 needs to be done even if it is in the same workspace that the WI was created in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THe WI needs access to the APIs to be able to run the notebook.&lt;/P&gt;</description>
    <pubDate>Tue, 26 May 2026 13:51:26 GMT</pubDate>
    <dc:creator>tayloramy</dc:creator>
    <dc:date>2026-05-26T13:51:26Z</dc:date>
    <item>
      <title>Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188817#M16387</link>
      <description>&lt;P&gt;I want to execute the notebook using the Workspace Identity, as it is required to authenticate with Azure Key Vault &lt;STRONG&gt;(No other soloution)&lt;/STRONG&gt;.&lt;BR /&gt;I have already enabled the Workspace Identity and granted the required Member permissions.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kasun_rumesh_0-1779794962861.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1350180i1E3652C4AD46C08E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kasun_rumesh_0-1779794962861.png" alt="kasun_rumesh_0-1779794962861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, through &lt;STRONG&gt;Manage Connections and Gateways&lt;/STRONG&gt;, I created a new cloud connection with the connection type set to &lt;STRONG&gt;Notebook&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;{I have checked bothway (Allow Code-First Artifacts..................................... &lt;span class="lia-unicode-emoji" title=":ballot_box_with_check:"&gt;☑️&lt;/span&gt;&amp;nbsp;and&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":black_square_button:"&gt;🔲&lt;/span&gt;)}&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kasun_rumesh_1-1779795066371.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1350181i244B1EFD7459E7C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kasun_rumesh_1-1779795066371.png" alt="kasun_rumesh_1-1779795066371.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, within the pipeline, the notebook activity connection was configured as shown below. I added the notebook that needs to be executed using Workspace Identity into the pipeline.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kasun_rumesh_2-1779795307858.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1350182i8E054C70D33F1268/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kasun_rumesh_2-1779795307858.png" alt="kasun_rumesh_2-1779795307858.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But When I run the pipeline I got following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kasun_rumesh_3-1779795368904.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1350183iE132ABEB2337B43E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kasun_rumesh_3-1779795368904.png" alt="kasun_rumesh_3-1779795368904.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;Failed to get workspace details with http error code - 'Unauthorized',&lt;BR /&gt;error message - '{"requestId":"requestId","errorCode":"Unauthorized",&lt;BR /&gt;"message":"The caller is not authenticated to access this resource","isRetriable":false}'&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to correct this error?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 11:51:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188817#M16387</guid>
      <dc:creator>kasun_rumesh</dc:creator>
      <dc:date>2026-05-26T11:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188875#M16392</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317253"&gt;@kasun_rumesh&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DId you grant your workjspace identity contributor or higher on the workspace itself?&amp;nbsp;&lt;BR /&gt;It needs to be added as a member to the workspace with at least contributor permissions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ALso make sure you enable the "service principals can use Fabric APIs" in the tenant settings, and allow your workspace identity.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-factory/notebook-activity#using-fabric-workspace-identity-wi-in-the-notebook-activity" target="_blank" rel="noopener"&gt;Notebook activity - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;DIV class="" data-heading-level="h4"&gt;
&lt;H4 class=""&gt;Using Fabric Workspace Identity (WI) in the Notebook activity&lt;/H4&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create the Workspace Identity&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;You must enable WI in your workspace (this may take a moment to load). Create a Workspace Identity in your Fabric workspace. Note that the WI should be created in the same workspace as your Pipeline.&lt;/P&gt;
&lt;P&gt;Check out the docs on&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/security/workspace-identity" target="_blank" rel="noopener" data-linktype="relative-path"&gt;Workspace Identity.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Enable tenant-level settings&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Enable the following tenant setting (it's disabled by default):&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;Service principals can call Fabric public APIs.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can enable this setting in the&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/admin/admin-center#how-to-get-to-the-admin-portal" target="_blank" rel="noopener" data-linktype="absolute-path"&gt;Fabric admin portal. For more information about this setting, see&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/admin/enable-service-principal-admin-apis" target="_blank" rel="noopener" data-linktype="relative-path"&gt;the enable service principal authentication for admin APIs article.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Grant workspace permissions to the Workspace Identity&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Open the workspace, select Manage access, and assign permissions to the Workspace Identity. Contributor access is sufficient for most scenarios. If your Notebook is not in the same workspace as your Pipeline, you'll need to assign the WI you created in your Pipeline's workspace at least Contributor access to your Notebook's workspace.&lt;/P&gt;
&lt;P&gt;Check out the docs on&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/fabric/fundamentals/give-access-workspaces" target="_blank" rel="noopener" data-linktype="relative-path"&gt;Give users access to workspaces.&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 13:19:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188875#M16392</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-05-26T13:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188901#M16395</link>
      <description>&lt;P&gt;Yes, I have done it. Please check the first screenshot.&lt;/P&gt;&lt;P&gt;1. It has been created. Please refer to the first screenshot.&lt;BR /&gt;2. It is within the same workspace.&lt;BR /&gt;3. I have granted member access. Please refer to the first screenshot.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 13:50:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188901#M16395</guid>
      <dc:creator>kasun_rumesh</dc:creator>
      <dc:date>2026-05-26T13:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188902#M16396</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;#2 needs to be done even if it is in the same workspace that the WI was created in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;THe WI needs access to the APIs to be able to run the notebook.&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2026 13:51:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5188902#M16396</guid>
      <dc:creator>tayloramy</dc:creator>
      <dc:date>2026-05-26T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5189971#M16441</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317253"&gt;@kasun_rumesh&lt;/a&gt;&amp;nbsp;, Thank you for reaching out to the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your workspace setup looks correct from the screenshots, so this does not look like a Workspace Identity creation or workspace permission issue anymore. The error is happening before the notebook execution itself, while Fabric is trying to access workspace details. That usually points to tenant-level API authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check whether the tenant setting “Service principals can call Fabric public APIs” is enabled in the Fabric Admin Portal. If the setting is restricted to specific security groups, make sure the Workspace Identity/service principal is included there as well. Also keep “Allow Code-First Artifacts like Notebooks to access this connection” enabled on the notebook connection, since Notebook activities require it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This looks more like a missing Fabric API permission for the Workspace Identity than a notebook or Key Vault problem.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2026 11:47:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5189971#M16441</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2026-05-28T11:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5193168#M16545</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317253"&gt;@kasun_rumesh&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Hope you're doing fine. Can you confirm if the problem is solved or still persists? Sharing your details will help others in the community.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2026 12:05:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5193168#M16545</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2026-06-04T12:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Notebook Execution Fails When Using Workspace Identity in Microsoft Fabric Pipeline</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5194236#M16582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317253"&gt;@kasun_rumesh&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN data-teams="true"&gt;Hope you are doing well. Kindly let us know if the issue has been resolved or if further assistance is needed. Your input could be helpful to others in the community.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2026 07:15:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Notebook-Execution-Fails-When-Using-Workspace-Identity-in/m-p/5194236#M16582</guid>
      <dc:creator>v-hashadapu</dc:creator>
      <dc:date>2026-06-08T07:15:35Z</dc:date>
    </item>
  </channel>
</rss>

