Closed shengdoescoding closed 1 year ago
try{
Connect-PowerBIServiceAccount -Credential $cred
}
catch{
Write-Host "MESSAGE`n$($_.Exception.Message)"
}
Debugging with this showed the Microsoft Hosted Agents are not compliment with conditional access policy.
@shengdoescoding what is the fix for this issue? I am not using Microsoft hosted agent. I have a self hosted one.
The commandlet module I installed via this line
Save-Module -Name MicrosoftPowerBIMgmt -Path ${{ variables.modules_folder }}
I'm sure my script has access to the module as the
Get-Module
line returns this:No matter what I try, I always get this error:
Unfortunately, including
Resolve-PowerBIError -Last
at the end of the script doesn't return anything.I have checked this PowerShell instances version with
$PSVersionTable
, and its output is:I appreciate any help.