In VSTS, open your team project collection and go to the Build tab and select the Setup JFrog Artifactory sub-tab.
Provide your Artifactory URL, and default login credentials through which VSTS will connect to Artifactory.Once you save your settings they will be stored in VSTS and used for all your projects.