title: Configuring Jenkins build for Azure Function App targeting .NET Core 2.0
body: <p>I am trying to setup a Jenkins build for an Azure Function App that targets .NET Core 2.0</p>
  
  <p>One of the prerequisites is obviously to install the .NET Core SDK and runtime. I tried following this <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/using-ci-with-cli" rel="nofollow noreferrer">documentation</a> and called the <a href="https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script" rel="nofollow noreferrer">dotnet-install.ps1</a> but it fails with an error - </p>
  
  <blockquote>
    <p>dotnet-install: Downloading legacy link: <a href="https://dotnetcli.azureedge.net/dotnet/Sdk/--verbose/dotnet-dev-win-x86.--verbose.zip" rel="nofollow noreferrer">https://dotnetcli.azureedge.net/dotnet/Sdk/--verbose/dotnet-dev-win-x86.--verbose.zip</a></p>
    
    <p>Exception calling "Invoke" with "0" argument(s): "Failed to download <a href="https://dotnetcli.azureedge.net/dotnet/Sdk/--verbose/dotnet-dev-win-x86.--verbose.zip" rel="nofollow noreferrer">https://dotnetcli.azureedge.net/dotnet/Sdk/--verbose/dotnet-dev-win-x86.--verbose.zip</a>.<br>
    StatusCode: 404, ReasonPhrase: 'Not Found', Version: 1.1, Content: </p>
    
    <p>System.Net.Http.StreamContent, Headers:
    {
      x-ms-request-id: 34b62ce6-601e-00bb-7624-c5493f000000
      x-ms-version: 2009-09-19
      Date: Mon, 26 Mar 2018 17:01:18 GMT
      Server: Windows-Azure-Blob/1.0
      Server: Microsoft-HTTPAPI/2.0
      Content-Length: 215
      Content-Type: application/xml
    }</p>
  </blockquote>
  
  <p>Question is </p>
  
  <ul>
  <li>Is the dotnet-install.ps1 the recommended approach to install dotnet on the build agents? Is it even working or would installing it directly on the machine make more sense?</li>
  <li>Is there a similar PS script for .NET Core 2.0? </li>
  <li>Any best practices while setting up a Jenkins build for Azure Function App targetting .NET Core.</li>
  </ul>