I was trying to invoke data factory pipeline from azure function programmatically. Its throwing following error.
link: http://eatcodelive.com/2016/02/24
Follow this post : https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal
In this post , Role is given as "Reader" which should be "Owner" instead otherwise it would give permission error on deployment.