I am currently having issues finishing the release pipeline part of an automated process wherein new git changes to PowerBI workspaces are updated automatically as part of CICD.
Screenshot of PowerBI Git Changes
Currently, we have set up the CI part of the pipelines so that new git changes are pulled into the workspace, but we need to manually update the changes.
I have attempted to use the Fabric API to update the git changes, but this is only supported for user authentication, not service principals. This is a problem as we are implementing the solution via a PowerShell script in an Azure release pipeline.
I have seen elsewhere that there might be a way to use Microsoft Entra tokens to authenticate requests but I am not too sure.
Any help would be appreciated.
I am currently having issues finishing the release pipeline part of an automated process wherein new git changes to PowerBI workspaces are updated automatically as part of CICD.
Screenshot of PowerBI Git Changes
Currently, we have set up the CI part of the pipelines so that new git changes are pulled into the workspace, but we need to manually update the changes.
I have attempted to use the Fabric API to update the git changes, but this is only supported for user authentication, not service principals. This is a problem as we are implementing the solution via a PowerShell script in an Azure release pipeline.
I have seen elsewhere that there might be a way to use Microsoft Entra tokens to authenticate requests but I am not too sure.
Any help would be appreciated.
Share Improve this question edited Feb 6 at 12:22 SusCoder asked Feb 6 at 12:21 SusCoderSusCoder 11 bronze badge New contributor SusCoder is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 6 | Show 1 more comment1 Answer
Reset to default 0You could login with the user account by credential without an interactive prompt. Please make sure your account doesn't enable the MFA (Multi-Factor Authentication).
$User = "[email protected]"
$PassWord = ConvertTo-SecureString -String "<Password>" -AsPlainText -Force
$tenant = "<tenant id>"
$subscription = "<subscription id>"
$Credential = New-Object -TypeName "System.Management.Automation.PSCredential" -ArgumentList $User,$PassWord
Connect-AzAccount -Credential $Credential -Tenant $tenant -Subscription $subscription
For more details, you could refer to this SO thread.
Connect-AzAccount
, and sends requests to the APIs mentioned before. – SusCoder Commented Feb 7 at 9:32