<?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 Service principal raising 401 error - access PBI dataset- DAX query in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2083302#M31861</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use "REST api support for DAX" feature relased by MSFT in aug for public preview.&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/" target="_blank" rel="noopener"&gt;https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to query dataset and retreive the result using my creds but the issue is i am not able to succeed with SPN.I have set up SPN the way it has been described in the MSFT document below to allow rest api calls with DAX but i am unable to understand what is blocking the SPN.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive "401 unauthorized error " with SPN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My steps:&lt;/P&gt;&lt;P&gt;-created AAD app and SPN&lt;/P&gt;&lt;P&gt;-created AAD security group and added the SPN as member into it&lt;/P&gt;&lt;P&gt;-provided SPN and security group 'admin' access on the PBI workspace&lt;/P&gt;&lt;P&gt;-provided 'dataset.readwrite.all' permission for the app&lt;/P&gt;&lt;P&gt;-added the SPN to allow REST api calls on tenant settings&lt;/P&gt;&lt;P&gt;-Workspace upgraded to v2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i mising something ? Also,is it required for me the provide the app with tenant.read.all permission? I dont see this as requirement in msft docs but i did see this in some other online discussions.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 18:07:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-17T18:07:21Z</dc:date>
    <item>
      <title>Service principal raising 401 error - access PBI dataset- DAX query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2083302#M31861</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to use "REST api support for DAX" feature relased by MSFT in aug for public preview.&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/" target="_blank" rel="noopener"&gt;https://powerbi.microsoft.com/en-us/blog/announcing-the-public-preview-of-power-bi-rest-api-support-for-dax-queries/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been able to query dataset and retreive the result using my creds but the issue is i am not able to succeed with SPN.I have set up SPN the way it has been described in the MSFT document below to allow rest api calls with DAX but i am unable to understand what is blocking the SPN.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/azure/active-directory/develop/howto-create-service-principal-portal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I receive "401 unauthorized error " with SPN.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My steps:&lt;/P&gt;&lt;P&gt;-created AAD app and SPN&lt;/P&gt;&lt;P&gt;-created AAD security group and added the SPN as member into it&lt;/P&gt;&lt;P&gt;-provided SPN and security group 'admin' access on the PBI workspace&lt;/P&gt;&lt;P&gt;-provided 'dataset.readwrite.all' permission for the app&lt;/P&gt;&lt;P&gt;-added the SPN to allow REST api calls on tenant settings&lt;/P&gt;&lt;P&gt;-Workspace upgraded to v2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i mising something ? Also,is it required for me the provide the app with tenant.read.all permission? I dont see this as requirement in msft docs but i did see this in some other online discussions.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 18:07:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2083302#M31861</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-17T18:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Service principal raising 401 error - access PBI dataset- DAX query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2087350#M31905</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;As&amp;nbsp;the blog said, this feature is just public preview and it is not released to the stable version. So I think some of the processes may not be up to date. In addition, the blogger also mentions they are working on the document update. &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Maybe you can try to contact the power bi team to confirm if any additional settings are required for this new feature.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 01:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2087350#M31905</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-21T01:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Service principal raising 401 error - access PBI dataset- DAX query</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2087359#M31906</link>
      <description>&lt;P&gt;Thanks .I will contact MSFT with a ticket and see what is wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 01:57:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Service-principal-raising-401-error-access-PBI-dataset-DAX-query/m-p/2087359#M31906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-21T01:57:39Z</dc:date>
    </item>
  </channel>
</rss>

