User Profile
tousinn
Regular Visitor
Joined 3 years ago
User Widgets
Contributions
Re: How to remove the Power BI gateway using PowerShell or REST API
This cmdlet could remove the application gateway cluster though. Remove-DataGatewayCluster (DataGateway) | Microsoft Learn But it seems to be working with the actual Azure account, not the service principal?3.6KViews0likes4CommentsRe: How to remove the Power BI gateway using PowerShell or REST API
Hi lbendlin Thanks for the reply. 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. Is it supported at the moment? If so, could we know what permissions are required for the service principal?3.6KViews0likes6CommentsRe: How to remove the Power BI gateway using PowerShell or REST API
Hi lbendlin Thanks for the replies. May I know what the anchor member is here? We only have the Azure Service Principal Assigned to the Gateway, which is the admin for the gateway as well. Is the Azure Service Principal the anchor member in this case?3.7KViews0likes8CommentsRe: How to remove the Power BI gateway using PowerShell or REST API
Hi lbendlin This is a buiness requirement. We have one gateway for each customer and we would like to remove it once the customer is offboarded. Yes, we noticed that the PowerShell cmdlet is able to remove the members But we would like to remove the gateway itself as well, otherwise we will have heaps of gatway without being used anymore.3.8KViews0likes12CommentsHow to remove the Power BI gateway using PowerShell or REST API
Hi team We are trying to delete Power BI gateway by using PowerShell module or REST API. We tried to use DataGateway PowerShell module to get the gateway first and remove it using the comdlets below. ============================ $PowerBIDataGatewayCluster = Get-DataGatewayCluster if ($null -ne $PowerBIDataGatewayCluster -and "" -ne $PowerBIDataGatewayCluster) { Write-Host "Revoke admin access for SPN from Power BI gateway $($PowerBIDataGatewayCluster.Name)" Remove-DataGatewayCluster -GatewayClusterId $PowerBIDataGatewayCluster.Id } ============================ It works well with my Azure accounts without any issue. However, if we use the service principal, even if the service principal has the admin access to the PowerBI gateway, the cmdlet is still not able to get the gateway or remove it. And I am getting unauthoried error. Is that because the Power BI powershell moduel does not support Service Principal authencation? Is there anyway we could automate this process? Thanks!3.9KViews0likes14Comments
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.