<?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: How to remove the Power BI gateway using PowerShell or REST API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3046191#M40914</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah I know, the limitations are not mentioned in the doc, but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried that from your end?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 22:09:33 GMT</pubDate>
    <dc:creator>tousinn</dc:creator>
    <dc:date>2023-01-26T22:09:33Z</dc:date>
    <item>
      <title>How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3012949#M40661</link>
      <description>&lt;P&gt;Hi team&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to delete Power BI gateway by using PowerShell module or REST API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to use&amp;nbsp;&lt;SPAN&gt;DataGateway PowerShell module to get the gateway first and remove it using the comdlets below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;============================&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;$PowerBIDataGatewayCluster = Get-DataGatewayCluster&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;if ($null -ne $PowerBIDataGatewayCluster -and "" -ne $PowerBIDataGatewayCluster) {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Write-Host "Revoke admin access for SPN from Power BI gateway $($PowerBIDataGatewayCluster.Name)"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Remove-DataGatewayCluster&lt;/SPAN&gt;&lt;SPAN&gt; -GatewayClusterId&amp;nbsp;&lt;SPAN&gt;$PowerBIDataGatewayCluster.Id&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;============================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works well with my Azure accounts without any issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if we use the service principal, even if the service principal has the admin access to the PowerBI gateway,&lt;/P&gt;&lt;P&gt;the cmdlet is still not able to get the gateway or remove it. And I am getting unauthoried error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that because the Power BI powershell moduel does not support Service Principal authencation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyway we could automate this process?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 06:14:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3012949#M40661</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-11T06:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3015249#M40679</link>
      <description>&lt;P&gt;Why would you want to automate that operation?&amp;nbsp; You don't want to mess with a gateway configuration unless absolutely necessary. Removing a gateway cluster member should be done judiciously (and can be done via the admin center UI too).&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 01:17:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3015249#M40679</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-12T01:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3015393#M40680</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a buiness requirement. We have one gateway for each customer and we would like to remove it once the customer is offboarded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, we noticed that the PowerShell cmdlet is able to remove the members&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But we would like to remove the gateway itself as well, otherwise we will have heaps of gatway without being used anymore.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 02:14:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3015393#M40680</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-12T02:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3016863#M40691</link>
      <description>&lt;P&gt;If you must - there is a choreography to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. List all gateways and all cluster members&lt;/P&gt;
&lt;P&gt;2. Identify the anchor member&lt;/P&gt;
&lt;P&gt;3. for each gateway, remove the members that are NOT the anchor&lt;/P&gt;
&lt;P&gt;4. remove the anchor member.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint:&amp;nbsp; The gatewayObjectId of the anchor member is the clusterObjectID&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:&amp;nbsp; This only removes the meta data on the Power BI Service. It does not do anything to your VMs.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 13:52:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3016863#M40691</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-12T13:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3018304#M40699</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does this mean we still could only remove the members from the gateway?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to remove the gateway itself by using PowerShell or REST API using Service Principal.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 04:15:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3018304#M40699</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-13T04:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3019042#M40707</link>
      <description>&lt;P&gt;When you remove the anchor member the entire gateway registration will be gone and all connections on that gateway too.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 11:06:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3019042#M40707</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-13T11:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3022102#M40728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May I know what the&amp;nbsp;&lt;SPAN&gt;anchor member is here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We only have the Azure Service Principal Assigned to the Gateway, which is the admin for the gateway as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the Azure Service Principal the anchor member in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 04:00:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3022102#M40728</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-16T04:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3022128#M40729</link>
      <description>&lt;P&gt;The anchor member is the primary VM registered as a gateway in a gateway cluster.&amp;nbsp; It is a machine identifier, not a login identifier.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 04:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3022128#M40729</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-16T04:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3041418#M40886</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we are trying to do is to remove the whole gateway cluster by using service principal via PowerShell module or REST API, rather than removing individual gateway from the cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it supported at the moment? If so, could we know what permissions are required for the service principal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 23:09:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3041418#M40886</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-24T23:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3041473#M40887</link>
      <description>&lt;P&gt;There is no such thing. You need to remove the gateway cluster members individually.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 00:03:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3041473#M40887</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-25T00:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3041547#M40888</link>
      <description>&lt;P&gt;This cmdlet could remove the application gateway cluster though.&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/powershell/module/datagateway/remove-datagatewaycluster?view=datagateway-ps" target="_blank"&gt;Remove-DataGatewayCluster (DataGateway) | Microsoft Learn&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it seems to be working with the actual Azure account, not the service principal?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 00:55:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3041547#M40888</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-25T00:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3043569#M40902</link>
      <description>&lt;P&gt;Oh wow, they added a lot of new cmdlets.&amp;nbsp; The cmdlet probable enumerates the cluster members and deletes them one by one for you. Fair enough.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for the service principal question - i'll have to try that on our side.&amp;nbsp; Don't see any mention of limitations at the moment.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:29:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3043569#M40902</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-25T18:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3046191#M40914</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yeah I know, the limitations are not mentioned in the doc, but...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you tried that from your end?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 22:09:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3046191#M40914</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-26T22:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3046192#M40915</link>
      <description>&lt;P&gt;or is there any way we could connect to MS support directly on this?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 22:10:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3046192#M40915</guid>
      <dc:creator>tousinn</dc:creator>
      <dc:date>2023-01-26T22:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the Power BI gateway using PowerShell or REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3047324#M40933</link>
      <description>&lt;P&gt;You can raise an issue at &lt;A href="https://issues.powerbi.com" target="_blank"&gt;https://issues.powerbi.com&lt;/A&gt; . If you have a Pro license you can consider raising a Pro ticket at &lt;A href="https://powerbi.microsoft.com/en-us/support/pro/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/support/pro/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:51:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-remove-the-Power-BI-gateway-using-PowerShell-or-REST-API/m-p/3047324#M40933</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2023-01-27T13:51:46Z</dc:date>
    </item>
  </channel>
</rss>

