Get-PowerBIActivityEvent Error : Attempted to access an element as a type incompatible with the array.
Nikunj Patel
56
Reputation points
I am facing to powerBI activity using azure account automation runbook work. Successfully logging using Login-PowerBIServiceAccount is working correctly, but with these commands, Get-PowerBIActivityEvent, Get-PowerBIWorkspace I get the error:
Get-PowerBIActivityEvent : Attempted to access an element as a type incompatible with the array.
following version of powerbi module I used in azure automation account. Can someone help me how we can fix this?
$pbiAccount=Connect-PowerBIServiceAccount -TenantId $TenantId -ServicePrincipal -Credential $Credential
"Login with: $($pbiAccount.UserName)"
Get-PowerBIActivityEvent -StartDateTime '2023-07-26T05:00:00' -EndDateTime '2023-07-26T20:59:59' -ResultType JsonString
Sign in to answer