<?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 Power BI Embedded | Automate configuring Azure Log Analytics for Power BI in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4387271#M59253</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following up on a &lt;A href="https://community.fabric.microsoft.com/t5/Service/Power-BI-premium-connect-workspaces-to-an-Azure-log-analytics/m-p/2979961/highlight/true" target="_self"&gt;related post&lt;/A&gt; for Power BI Premium workspaces, I am attempting to script a process using service principal authentication to add hundreds of workspaces on Power BI embedded SKUs to Log Analytics workspaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to the user's post in the related thread, the goal is to connect the workspaces to Log Analytics and automate the process described here: &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/log-analytics/desktop-log-analytics-configure?tabs=refresh" target="_self"&gt;Configure Azure Log Analytics for Power BI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsmucker_1-1738211141466.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1232501iF12A51C8DFCBA572/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsmucker_1-1738211141466.png" alt="bsmucker_1-1738211141466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I cannot figure out how to script this process using a service principal and API commands. The closest lead I've found has been the &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/groups-update-group-as-admin" target="_self"&gt;Admin - Groups UpdateGroupAsAdmin&lt;/A&gt; API,&amp;nbsp; but I receive a 401 Unauthorized response when using a service principal that is both a Fabric Administrator and has Tenant.ReadWrite.All permissions as well as Contribtor permissions on the subscription.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request body for this API call appears to have all of the information we would need to configure the Power BI workspace to use Log Analytics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "logAnalyticsWorkspace": {
    "subscriptionId": "d778934f-bda2-41d9-b5c7-6cf41372c1a0",
    "resourceGroup": "myResourceGroup",
    "resourceName": "myLogAnalyticsWorkspace"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the following command that is similar to the one cited in the linked post, I receive a list of Log Analytics workspaces on my subscription, but not a list of resource IDs for the Power BI workspaces for which I want to configure Log Analytics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;az resource list --resource-type "Microsoft.OperationalInsights/workspaces"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Additionally, not only do we want to connect all workspaces that currently existin our embedded capacity / resource group / subscription, but also we wish to automatically add new ones that are created and added to capacities automatically during onboarding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else had success automating configuring Azure Log Analytics for Power BI at scale?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 04:38:52 GMT</pubDate>
    <dc:creator>bsmucker</dc:creator>
    <dc:date>2025-01-30T04:38:52Z</dc:date>
    <item>
      <title>Power BI Embedded | Automate configuring Azure Log Analytics for Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4387271#M59253</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following up on a &lt;A href="https://community.fabric.microsoft.com/t5/Service/Power-BI-premium-connect-workspaces-to-an-Azure-log-analytics/m-p/2979961/highlight/true" target="_self"&gt;related post&lt;/A&gt; for Power BI Premium workspaces, I am attempting to script a process using service principal authentication to add hundreds of workspaces on Power BI embedded SKUs to Log Analytics workspaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Similar to the user's post in the related thread, the goal is to connect the workspaces to Log Analytics and automate the process described here: &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/log-analytics/desktop-log-analytics-configure?tabs=refresh" target="_self"&gt;Configure Azure Log Analytics for Power BI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bsmucker_1-1738211141466.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1232501iF12A51C8DFCBA572/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bsmucker_1-1738211141466.png" alt="bsmucker_1-1738211141466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I cannot figure out how to script this process using a service principal and API commands. The closest lead I've found has been the &lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/admin/groups-update-group-as-admin" target="_self"&gt;Admin - Groups UpdateGroupAsAdmin&lt;/A&gt; API,&amp;nbsp; but I receive a 401 Unauthorized response when using a service principal that is both a Fabric Administrator and has Tenant.ReadWrite.All permissions as well as Contribtor permissions on the subscription.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request body for this API call appears to have all of the information we would need to configure the Power BI workspace to use Log Analytics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "logAnalyticsWorkspace": {
    "subscriptionId": "d778934f-bda2-41d9-b5c7-6cf41372c1a0",
    "resourceGroup": "myResourceGroup",
    "resourceName": "myLogAnalyticsWorkspace"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the following command that is similar to the one cited in the linked post, I receive a list of Log Analytics workspaces on my subscription, but not a list of resource IDs for the Power BI workspaces for which I want to configure Log Analytics:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;az resource list --resource-type "Microsoft.OperationalInsights/workspaces"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Additionally, not only do we want to connect all workspaces that currently existin our embedded capacity / resource group / subscription, but also we wish to automatically add new ones that are created and added to capacities automatically during onboarding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone else had success automating configuring Azure Log Analytics for Power BI at scale?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 04:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4387271#M59253</guid>
      <dc:creator>bsmucker</dc:creator>
      <dc:date>2025-01-30T04:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded | Automate configuring Azure Log Analytics for Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4388776#M59267</link>
      <description>&lt;LI-CODE lang="markup"&gt; I am attempting to script a process using service principal authentication to add hundreds of workspaces on Power BI embedded SKUs to Log Analytics workspaces.&lt;/LI-CODE&gt;
&lt;P&gt;I hope you are aware of the cost implications?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 19:55:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4388776#M59267</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-30T19:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded | Automate configuring Azure Log Analytics for Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4388793#M59268</link>
      <description>&lt;P&gt;Yes, but it is a project requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 20:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4388793#M59268</guid>
      <dc:creator>bsmucker</dc:creator>
      <dc:date>2025-01-30T20:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI Embedded | Automate configuring Azure Log Analytics for Power BI</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4388833#M59270</link>
      <description>&lt;P&gt;Examine the token at jwt.io - you will likely find that the scope is missing. Start over with a fresh app registration, thistime don't use delegated permissions.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 20:39:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-Embedded-Automate-configuring-Azure-Log-Analytics-for/m-p/4388833#M59270</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-01-30T20:39:48Z</dc:date>
    </item>
  </channel>
</rss>

