简体   繁体   中英

Error with retrieveing records from Power Bi API Datasets - Get Refresh History

I'm trying get Refresh Logs for each dataset from Power BI rest API with Power Shell script.

Documentation for API https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/getrefreshhistory

But I'm getting below error in power shell. could you please help me? 在此处输入图像描述

At first sight, you should use Invoke-PowerBIRestMethod instead of the generic Invoke-RestMethod . The first one will take care of adding the authorization token in the request for you, which you must add manually when using the generic cmdlet (and you didn't).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM