Going through this tutorial \"Create a pipeline with Copy Activity using Visual Studio\" and recieving this error when i hit publish.
You can use also az command-line tool
az provider register --namespace Microsoft.DataFactory
Execute both commands before to log in and switch to the desired subscription
az login az account set --subscription