Currently trying to use a service principal in order to check power BI connection status
<code>Connect-DataGatewayServiceAccount -ApplicationId $xx -ClientSecret $xx -Tenant "xx"
$scopeLevel = "Organization"
Get-DataGatewayCluster -Scope $scopeLevel
</code>
<code>Connect-DataGatewayServiceAccount -ApplicationId $xx -ClientSecret $xx -Tenant "xx"
$scopeLevel = "Organization"
Get-DataGatewayCluster -Scope $scopeLevel
</code>
Connect-DataGatewayServiceAccount -ApplicationId $xx -ClientSecret $xx -Tenant "xx"
$scopeLevel = "Organization"
Get-DataGatewayCluster -Scope $scopeLevel
I am getting the error below
Response status code does not indicate success: 401 (Unauthorized) Request Id:
Does suggest a permission issue, however the service principal is a global admin in Azure, not sure what other permission may be required.
Is there any other way to use a service principal with
<code>Login-DataGatewayServiceAccount
</code>
<code>Login-DataGatewayServiceAccount
</code>
Login-DataGatewayServiceAccount