I was trying to invoke data factory pipeline from azure function programmatically. Its throwing following error.
link: http://eatcodelive.com/2016/02/24
We recently had this issue with the same message and found that it was caused by the user being logged in with a different subscription (we have 2). Using az login --subscription resolved the problem for us.