GitHub Copilot Customization Explained for Beginners: Instructions, Prompt Files, Skills, Agents, and Hooks  Introduction If you've recently started using GitHub Copilot, you've probably come across terms like Instructions , Prompt Files , Skills , Agents , and Hooks . At first glance, they all seem to do the same thing—they tell Copilot what to do. So why does GitHub have five different customization features? The answer is simple: each feature solves a different problem. Think of GitHub Copilot as a new developer joining your team. On their first day, you don't just hand them code. You explain your coding standards, give them reusable templates, teach them specialized knowledge, assign them a role, and automate repetitive tasks. That's exactly how GitHub Copilot customization works. In this article, you'll learn what each feature does, when to use it, and how they all work together. By the end, you'll know which feature to start with and which ones can wait un...

How to create Azure Function from OpenAPI/Swagger definition?

In my previous blog post, I have illustrated how to setup OpenAPI/Swagger UI for Azure Function. In this blog, post let's see how to create Azure Function from OpenAPI specification. As part of recent updates from the Azure Functions team, there was an announcement for creating Azure Function by importing OpenAPI/Swagger definition. 

Prerequisites

  • Azure Function VS Code extension or command line
  • autorest (Microsoft's OpenAPI specification generator) npm installed
    npm install -g autorest
    
  • Supported languages C#, Java, Python, TypeScript.

Steps to create function apps from Swagger definition

  • Install or update VS code with Azure Function extension
        
  • Navigate to Visual Studio Code à Azure Extension under which you should be able to see the option for creating Function App as shown in the below screenshot.
        
  • Once the folder is selected under which Function App to be placed, choose the language (c#), template, and namespace for the function app as shown below.
            
  • Using AutoRest tool based on the input file (OpenAPI) provided Function App will be created 
    • Input OpenAPI Definition as shown below
    •  Function App generated from the above OpenAPI definition shown below

References

More language support and details can be found here

Comments

Popular posts from this blog

Tidy up - Unused Project and Nuget package reference using Visual Studio 2019

Azure Front Door vs Azure Traffic Manager?

Authenticate Azure Functions - API Keys