Example prompts for deploying your application with GitHub Copilot for Azure Preview
If you're unfamiliar with Azure or you just want the tooling and AI to do most of the work, you can ask GitHub Copilot for Azure Preview to help you deploy your application.
Best practices
Using copilots can increase developer productivity by answering questions, executing tasks, and generating code. However, remember these vital rules:
- Review all AI-generated responses. Validate their correctness, applicability, potential outcomes (such as costs and security) before taking action based on those responses.
- Never save application secrets or credentials in source code.
- Never submit application secrets or credentials in questions or in code when you ask questions.
When you're working with any tool that's based on large language models, use good prompt engineering techniques for the best results. The following tips come from the article Write effective prompts for Microsoft Copilot in Azure, which provides advice for prompt engineering in the context of Azure.
- Be clear and specific
- Set expectations
- Add context about your scenario
- Break down your requests
- Customize your code
- Use Azure terminology
- Use the feedback loop
Example prompts for deploying an app
If you want to use GitHub Copilot for Azure Preview for help with deploying your application, you can start with an open-ended question or request like one of these examples:
- "@azure Help me deploy my application to Azure."
- "@azure How can I deploy this app?"
- "@azure Can you deploy my code to Azure please?"
- "@azure Can you help me deploy my project to Azure?"
- "@azure Deploy this project to Azure."
- "@azure Go deploy this project."
- "@azure I'd like to deploy my app."
- "@azure Take this project and make it deployable to Azure."
- "@azure Get this code running on Azure."
- "@azure Run this app on Azure."
Then, add more detail for better results. Here are some example prompts:
Service or technology | Deploy prompt examples |
---|---|
Azure Kubernetes Service (AKS) |
|
Azure App Service |
|
Azure Container Apps |
|
Azure Developer CLI (azd ) |
|
Azure DevOps |
|
Azure OpenAI Service |
|
GitHub Actions |
|
Example prompts for undeploying an app
If you deployed your application with azd
, you can ask GitHub Copilot for Azure Preview for undeploying assistance. As a Visual Studio Code extension, it has context about where and how you deployed your application to Azure.
Example prompts:
- "@azure Undeploy my project with the Azure Developer CLI."
- "@azure Use azd to undeploy my project."
- "@azure Undeploy this project from Azure."
- "@azure I'd like to undeploy my app."
- "@azure Stop this app on Azure."
- "@azure Take this project down from Azure."
- "@azure Take down my application."
- "@azure Remove this code from running on Azure."
Note
Currently, GitHub Copilot for Azure Preview can only undeploy an app if it was originally deployed with AZD.
Related content
- Understand what GitHub Copilot for Azure Preview is and how it works.
- Get started with GitHub Copilot for Azure by installing the software and writing your first prompt.
- Follow the quickstart to understand how to include GitHub Copilot for Azure Preview in your software development workflow. The quickstart describes how to deploy services to Azure, monitor their status, and troubleshoot problems.
- See example prompts for learning more about Azure and understanding your Azure account, subscription, and resources.
- See example prompts for optimizing your applications in Azure.
- See example prompts for troubleshooting your Azure resources.