Azure-Samples / powerbi-powershell

Samples for calling the Power BI REST API via PowerShell
MIT License
258 stars 191 forks source link

Getting Authentication_Failed error #6

Open cmitra opened 6 years ago

cmitra commented 6 years ago

I was trying to refresh dataset using manageRefresh, but getting 'Invoke-RestMethod : Access Denied Access Denied (authentication_failed) Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified. This is typically caused by an incorrect username and/or password, but could also be caused by network problems.' It prompt me first time to accept the terms and moved on successfully but then gave the error. Any idea.

cmitra commented 6 years ago

Managed to pass the Access issue using proxy set up. Script ran w/o error but found

VERBOSE: POST https://api.powerbi.com/v1.0/myorg/datasets/3fbb1317-8551-4bd9-9be e-5076344f28ef/refreshes with 0-byte payload VERBOSE: received -1-byte response of content type application/octet-stream

Dataset showing refreshing going on and updated timestamp but found the data 1 day older.

Any idea....