anchor.diff:  )
   
   IF NOT DEFINED DEPLOYMENT_TARGET (
  -  SET DEPLOYMENT_TARGET=%ARTIFACTS%\wwwroot\iothubpingfunction
  +  SET DEPLOYMENT_TARGET=%ARTIFACTS%\wwwroot
   )
   
   IF NOT DEFINED NEXT_MANIFEST_PATH (
  
positive.code: @if "%SCM_TRACE_LEVEL%" NEQ "4" @echo off
  
  :: ----------------------
  :: KUDU Deployment Script
  :: Version: 1.0.4
  :: ----------------------
  
  :: Prerequisites
  
negative.code:   :: Locally just running "kuduSync" would also work
    SET KUDU_SYNC_CMD=%appdata%\npm\kuduSync.cmd
  )
  
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  :: Deployment
  :: ----------
  
  echo Handling Basic Web Site deployment.
  
  :: KuduSync
  IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
    call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd;Project.json"
    IF !ERRORLEVEL! NEQ 0 goto error
  )
  
  
  echo Handling Function deployment.
  echo Installing npm packages
  
  FOR /F %%d in ('DIR /a:d /B') DO ( 
      cd %%d
  
      IF EXIST "package.json" (
          Echo Installing packages for %%d
          call npm install 
      )
  
      cd ..
  )
  
  :: NuGet package restore
  echo "Restoring function packages"
  
  FOR /F %%d in ('DIR "Project.json" /S /B') DO ( 
    call nuget restore %%d -PackagesDirectory %home%\data\Functions\packages\nuget
  )
  
  
  ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  goto end
  
  :: Execute command routine that will echo out when error
  