title: Azure Functions Trigger Timer Trigger locally
body: <p>I have a <code>timerTrigger</code> that I want to locally debug on VS Code, so I do the <code>func host start --debug vscode</code> on the root where <code>host.json</code> is:</p>
  
  <pre><code>PS C:\Users\user\code\azure\functions&gt; func host start --debug vscode
  
                    %%%%%%
                   %%%%%%
              @   %%%%%%    @
            @@   %%%%%%      @@
         @@@    %%%%%%%%%%%    @@@
       @@      %%%%%%%%%%        @@
         @@         %%%%       @@
           @@      %%%       @@
             @@    %%      @@
                  %%
                  %
  
  [11/28/2017 10:21:30 PM] Reading host configuration file 'C:\Users\user\code\azure\functions\host.json'
  [11/28/2017 10:21:30 PM] Host configuration file read:
  [11/28/2017 10:21:30 PM] {}
  info: Worker.Node.1b2b2430-8e1c-4d66-a3e9-bb1672be5ac2[0]
        Start Process: node  --inspect=5858 "C:\Users\user\.azurefunctions\bin\workers\node\dist\src\nodejsWorker.js" --host 127.0.0.1 --port 59865 --workerId 1b2b2430-8e1c-4d66-a3e9-bb1672be5ac2 --requestId f52eeb9b-d46b-4791-8504-3f94f380c1e2
  [11/28/2017 10:21:31 PM] Generating 1 job function(s)
  [11/28/2017 10:21:31 PM] Starting Host (HostId=swlaptop2062-377256582, Version=2.0.11370.0, ProcessId=16752, Debug=True, ConsecutiveErrors=0, StartupCount=0, FunctionsExtensionVersion=)
  [11/28/2017 10:21:31 PM] Found the following functions:
  [11/28/2017 10:21:31 PM] Host.Functions.TriggerHR
  [11/28/2017 10:21:31 PM]
  info: Worker.Node.1b2b2430-8e1c-4d66-a3e9-bb1672be5ac2[0]
        Debugger listening on ws://127.0.0.1:5858/77692ee0-e279-4463-9974-f8412f5dd3fd
  info: Worker.Node.1b2b2430-8e1c-4d66-a3e9-bb1672be5ac2[0]
        For help see https://nodejs.org/en/docs/inspector
  Listening on http://localhost:7071/
  Hit CTRL-C to exit...
  launch.json for VSCode configured.
  info: Worker.Node.1b2b2430-8e1c-4d66-a3e9-bb1672be5ac2[0]
        Worker 1b2b2430-8e1c-4d66-a3e9-bb1672be5ac2 connecting on 127.0.0.1:59865
  [11/28/2017 10:21:32 PM] Job host started
  [11/28/2017 10:21:32 PM] Host lock lease acquired by instance ID '000000000000000000000000EF9214DA'.
  </code></pre>
  
  <p>Then I do <code>func run TriggerHR</code>. I get: </p>
  
  <pre><code>Error: unknown argument run
  Azure Functions Core Tools (2.0.1-beta.21)
  Function Runtime Version: 2.0.11370.0
  Usage: func [context] [context] &lt;action&gt; [-/--options]
  </code></pre>
  
  <p>Here is the <code>function.json</code> on <code>TriggerHR</code>:</p>
  
  <pre><code>{
    "disabled": false,
    "bindings": [
      {
        "name": "myTimer",
        "type": "timerTrigger",
        "direction": "in",
        "schedule": "0 */30 * * * *"
      }
    ]
  }
  </code></pre>
  
  <p>I am on v2 runtime. I even try <code>http://localhost:7071/api/myTimer</code> and I get <code>localhost cannot be found</code> even though <code>http://localhost:7071</code> gives me that smiley face window that my app is running.</p>
  
  <p>Here is how it's laid out:</p>
  
  <pre><code>- TriggerHR (Timer function)
  --index.js
  --function.json
  |
  |
  - host.json
  - local.settings.json
  </code></pre>