Forum Discussion
Anonymous
4 years agoNot applicable
Connect to PowerBi with using Service Connections from ADO
Hi All, Could you please clarify how can I use ADO service connections in scope of powershell scrtip (function) for connectiong to Power BI, Previously I use Connect-PowerBIServiceAccount with C...
v-luwang-msft
Community Support
4 years agoHi Anonymous ,
The following article describes how to create a Power BI workspace in an Azure DevOps Pipeline using Powershell,and it also includes how to connect to the Power BI service.
$DeploymentPrincipalAppId = "Application ID of deployment principal"
$DeploymentPrincipalAppSecret = "Authentication key for the deployment principal"
$TenantId = "Azure Active Directory tenant ID"
$credentials = New-Object System.Management.Automation.PSCredential ($DeploymentPrincipalAppId, (convertto-securestring $DeploymentPrincipalAppSecret -asplaintext -force))
Connect-PowerBIServiceAccount -ServicePrincipal -Credential $credentials -Tenant $TenantId
To learn more details ,refer:
https://4bes.nl/2020/12/20/create-an-azure-devops-service-connection-to-azure-with-powershell/
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien