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.
- Create a GitHub account and subscribe to GitHub Copilot.
- Install Visual Studio Code on your machine.
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
-
Create a Simple Azure Function
Prompt: "Generate a simple Azure Function in C# that returns 'Hello, World!' when triggered."
-
Set Up an Azure SQL Database
Prompt: "Show me how to create an Azure SQL Database using Azure CLI."
-
Deploy a Web App on Azure
Prompt: "Write a script to deploy a Node.js web application to Azure App Service."
-
Connect Azure Storage to an Application
Prompt: "How can I connect my Python application to Azure Blob Storage?"
-
Set Up Azure Active Directory Authentication
Prompt: "Generate code to implement Azure Active Directory authentication in a .NET application."
-
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."
-
Monitor Azure Resources
Prompt: "Show me how to set up monitoring for Azure resources using Azure Monitor."
-
Build a REST API with Azure Functions
Prompt: "Generate code to create a REST API using Azure Functions and HTTP triggers in JavaScript."
-
Implement CI/CD with Azure DevOps
Prompt: "How can I set up a CI/CD pipeline for my application using Azure DevOps?"
-
Use Azure Cognitive Services
Prompt: "Generate a sample code to use Azure Cognitive Services for image analysis in Python."
References
- Getting Started with GitHub Copilot for Azure
- GitHub Copilot - Microsoft Azure
https://azure.microsoft.com/en-us/products/github/copilot?wt.mc_id=studentamb_263805
- Azure Subscription for Students
https://azure.microsoft.com/en-us/free/students/?wt.mc_id=studentamb_263805
- GitHub Student Developer Pack
https://education.github.com/pack?wt.mc_id=studentamb_263805
- Visual Studio Code
https://code.visualstudio.com/?wt.mc_id=studentamb_263805
Published Dec 17, 2024
Version 1.0Sharda_Kaur
Brass Contributor
Joined December 16, 2023
Educator Developer Blog
Follow this blog board to get notified when there's new activity