Blog Post

Educator Developer Blog
2 MIN READ

Top 10 prompts, How Students use the GitHub Copilot for Azure in Visual Studio Code

Sharda_Kaur's avatar
Sharda_Kaur
Brass Contributor
Dec 17, 2024

Before we dive into the top 10 prompts, let's first cover how to install the GitHub Copilot for Azure extension Installation Steps for GitHub Copilot for Azure

Prerequisites:

  • Ensure you have an Azure account and access to an Azure subscription.

 

 

 

Installing the Extensions:

  • Open Visual Studio Code.
  • Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.

 

  • Search for "GitHub Copilot" and click on the install button for the GitHub Copilot extension.

 

  • Similarly, search for "GitHub Copilot Chat" and install that extension as well.

Authentication:

  • After installation, you will need to authenticate your GitHub account. Follow the prompts to log in and authorize the extension.

Setting Up Azure Resource Graph:

  • In Visual Studio Code, select the gear icon next to the GitHub Copilot for Azure extension and choose Settings.

 

  • Set the Azure Resource Graph tenant to your Microsoft Entra tenant ID, which you can find in the Azure portal.

 

Verifying Installation:

  • Once everything is set up, you can verify the installation by selecting the Chat icon in the Activity Bar and entering a prompt to interact with GitHub Copilot for Azure.

 

 

Top 10 prompts

  1. Create a Simple Azure Function 
Prompt: "Generate a simple Azure Function in C# that returns 'Hello, World!' when triggered." 

 

  1. Set Up an Azure SQL Database 
Prompt: "Show me how to create an Azure SQL Database using Azure CLI." 

 

  1. Deploy a Web App on Azure 
Prompt: "Write a script to deploy a Node.js web application to Azure App Service." 

 

  1. Connect Azure Storage to an Application 
Prompt: "How can I connect my Python application to Azure Blob Storage?" 

 

  1. Set Up Azure Active Directory Authentication 
Prompt: "Generate code to implement Azure Active Directory authentication in a .NET application." 

 

  1. Create a Virtual Machine in Azure 
Prompt: "Provide a step-by-step guide to create a Linux Virtual Machine in Azure using the Azure Portal."

 

  1. Monitor Azure Resources 
Prompt: "Show me how to set up monitoring for Azure resources using Azure Monitor." 

 

  1. Build a REST API with Azure Functions 
Prompt: "Generate code to create a REST API using Azure Functions and HTTP triggers in JavaScript." 

 

  1. Implement CI/CD with Azure DevOps 
Prompt: "How can I set up a CI/CD pipeline for my application using Azure DevOps?" 

 

  1. Use Azure Cognitive Services 
Prompt: "Generate a sample code to use Azure Cognitive Services for image analysis in Python." 

References

  1. Getting Started with GitHub Copilot for Azure

https://techcommunity.microsoft.com/blog/educatordeveloperblog/getting-started-with-github-copilot-for-azure/4290334?wt.mc_id=studentamb_263805

  1. GitHub Copilot - Microsoft Azure

https://azure.microsoft.com/en-us/products/github/copilot?wt.mc_id=studentamb_263805

  1. Azure Subscription for Students

https://azure.microsoft.com/en-us/free/students/?wt.mc_id=studentamb_263805

  1. GitHub Student Developer Pack

https://education.github.com/pack?wt.mc_id=studentamb_263805

  1. Visual Studio Code

https://code.visualstudio.com/?wt.mc_id=studentamb_263805

  1. Github  https://github.com/?wt.mc_id=studentamb_263805

 

 

 

 

 

 

 

 

 

 

Published Dec 17, 2024
Version 1.0
No CommentsBe the first to comment