In template you can choose any credentials, which are defined in your credential library.
If you want to add new credential to the library ... follow this video guide how to do it http://www.solarwinds.com/resources/videos/server-and-application-monitor-training-setting-credentials-in-sam--pt-6.html