Skip to content

Microsoft Build 2023

Inject the power of the cloud and AI into your development workflow 2023-05-23

Section titled “Inject the power of the cloud and AI into your development workflow 2023-05-23”

Source: Inject the power of the cloud and AI into your development workflow Training Description: How you can use Dev Box and Deployment Environments, along with Visual Studio, Visual Studio Code, and GitHub Copilot to increase developer productivity.

Speakers: Amanda Silver, Shayne Boyer, Isidor Nikolic, Leslie Richardson

  • Combine cloud and artificial intelligence for better developer experience
  • Address disruptions: hybrid work, vulnerabilities, systems complexity, business interruptions
  • Visual Studio products for multi language development
  • Goals and results: faster setup, boilerplate generation, issues troubleshooting, happier developers

Conversional AI with context of code. Sample use cases:

Development:

  • Explain what old code does, how to use old code
  • Check possible errors and handle errors and insert handlers
  • Generate new code during updates
  • Create units test

Troubleshooting:

  • Explain what the exception means and how to fix it
  • Explain errors or incorrect values and how to test/fix them
  • Addresses issue of setting up a new development environment
    • Ready to code
    • Project based
    • Managed, secure
  • Dev Box is a cloud hosted development environment that has all the tools and dependencies to develop and run your application
    • Single sign on
  • Deploying Microsoft Dev Box
    • Shared definitions
    • Network, Azure Region, vNet, domain joined
    • Separate for projects
    • Pay for use
  • Example: Visual Studio + dependencies
  • Deployed from git configuration
  • Deployed environments manually or CICD
  • Managed pools, network

DevSecOps - Shift Security to Development (Left)

Section titled “DevSecOps - Shift Security to Development (Left)”

Demo:

  • Check in changes, but secrets, like API key, were detected in the code and tool prevents the check in
  • Tool also detects history has secrets
  • Set up pull request, set up production like environment for test, load test fails
  • Ask Copilot about the specific code line that is causing the performance issue
  • Check load test in CICD is successful
  • CICD infrastructure is discarded

Products:

  • GitHub Advanced Security for Azure DevOps
    • Code scanning, secret scanning, dependency scanning
  • Azure Load Testing
    • Can use Apache JMeter scripts

Demo:

  • Using OpenAPI - see API endpoint
    • Integrate ChatGPT plugin to your app which is just a web API you deploy that ChatGPT can use
  • Using Codespace:
    • In Visual Studio Code, can highlight and ask Copilot about code, generate code
    • Install ChatGPT plugin in ChatGPT to allow us to ask questions using our API - copy manifest from your app and install in ChatGPT
    • Can debug in Visual Studio Code in Codespaces while querying in ChatGPT
  • ChatGPT can combine multiple APIs to answer questions
  • ChatGPT plugin sample application to allow connecting your APIs to ChatGPT to enable AI-based chat experiences: https://aka.ms/chatgpt-plugin-samplehttps://github.com/binderjoe/openai-plugin