Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 01: Run the application

Description

You’ll open the Trey Research project in Visual Studio Code, sign in to the Microsoft 365 Agents Toolkit, and start the debugger to run the Azure Functions API locally.

Success criteria

  • You signed in to your Microsoft 365 account through the Agents Toolkit.
  • The debugger started successfully and Microsoft Edge opened a sign-in window.
  • You minimized Edge without signing in, leaving the debugger running.

Key steps


  1. Open Visual Studio Code.

    This will open a project folder with a declarative agent located in C:\Lab Files\lab-build-api.

  2. In the leftmost pane, select the Microsoft 365 Agents Toolkit icon.

    w889l2kw.jpg

  3. In the MICROSOFT 365 AGENTS TOOLKIT pane, under the ACCOUNTS section, select Sign in to Microsoft 365.

  4. In the dialog, select Sign in.

  5. In the Windows Security dialog, select Allow.

  6. Sign in with your lab credentials:

    Item Value
    Username @lab.CloudPortalCredential(User1).Username
    Password @lab.CloudPortalCredential(User1).AccessToken
  7. Close the browser to return to Visual Studio Code.

  8. In the top menu bar, select Run, then Start Debugging.

    i5y9cfzw.jpg

    This may take a couple minutes to start.

  9. In the Windows Security dialog, select Allow.

    Once started, Microsoft Edge will open a sign in window.

  10. Minimize Microsoft Edge without signing in.

    Do not close the window as that will stop the debugger.