title: Can't provide NuGet package source credentials to Azure Function
body: <p>I have an Azure function which has a dependency on a private package feed.</p>
  <p>I am copying a <code>nuget.config</code> file to the app service which looks like this:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;configuration&gt;
    &lt;packageSources&gt;
      &lt;add key=&quot;MyPackageFeed&quot; value=&quot;&lt;package feed path&gt;&quot; /&gt;
    &lt;/packageSources&gt;
    &lt;packageSourceCredentials&gt;
    &lt;MyPackageFeed&gt;
      &lt;add key=&quot;Username&quot; value=&quot;&lt;first part of Hotmail address, before @ symbol&gt;&quot; /&gt;
      &lt;add key=&quot;Password&quot; value=&quot;&lt;newly generated access token for username&gt;&quot; /&gt;
    &lt;/MyPackageFeed&gt;
  &lt;/packageSourceCredentials&gt;
    &lt;activePackageSource&gt;
      &lt;add key=&quot;All&quot; value=&quot;(Aggregate source)&quot; /&gt;
    &lt;/activePackageSource&gt;
  &lt;/configuration&gt;
  </code></pre>
  <p><strong>Note:</strong> I use the first part of my Hotmail account email address as this is the username I use to authenticate to the private feed elsewhere - Visual Studio etc.</p>
  <p>This is what I am seeing in the Logs in the Azure function portal:</p>
  <pre><code>2016-10-05T11:57:16.974 Restoring packages.
  2016-10-05T11:57:16.974 Starting NuGet restore
  2016-10-05T11:57:18.381 Restoring packages for D:\home\site\wwwroot\HttpTriggerSqlDb\project.json...
  2016-10-05T11:57:19.322 Unable to load the service index for source &lt;path to feed&gt;
  2016-10-05T11:57:19.322 The parameter is incorrect.
  </code></pre>
  <p>If I change the <code>Password</code> key to <code>ClearTextPassword</code> as suggested by @brettsam, I now get the following:</p>
  <pre><code>2016-10-05T14:03:04.479 Please provide credentials for: &lt;path to feed&gt;
  2016-10-05T14:03:05.097 Unable to load the service index for source &lt;path to feed&gt;
  2016-10-05T14:03:05.097 Response status code does not indicate success: 401 (Unauthorized).
  2016-10-05T14:03:05.142 UserName: Password:
  </code></pre>