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. Use best practices to achieve the best results.

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 Can you help me create a new deployment in my AKS cluster?"
  • "@azure What is the command to scale a deployment to 5 replicas?"
  • "@azure Can you provide the command to expose a deployment as a service?"
Azure App Service
  • "@azure How many web app plans using the free tier do I have deployed, grouped by region in my <placeholder> subscription?"
  • "@azure How many web apps do I have deployed in eastus?"
Azure Container Apps
  • "@azure How can I deploy my container app to Azure?"
Azure Developer CLI (azd)
  • "@azure Use azd to deploy my project."
  • "@azure I want to use azd to create a deployment pipeline for my application."
  • "@azure Initialize my project with the Azure Developer CLI."
  • "@azure Please start an azd pipeline."
Azure DevOps
  • "@azure Create a deployment pipeline for this project."
  • "@azure I don't want to deploy my app from my local machine. Can you set up a remote solution instead?"
  • "@azure I need a CI/CD pipeline so I can get my app deployed."
  • "@azure I need help with setting up a pipeline to deploy my app to Azure."
  • "@azure Please help me create an automated deployment pipeline for my app."
  • "@azure This project is ready for automated deployment. Set that up."
Azure OpenAI Service
  • "@azure Create an OpenAI deployment with the gpt-3.5-turbo model by using a Terraform template. Set the version of the model to 0613."
GitHub Actions
  • "@azure Let's use GitHub to deploy my app to Azure."
  • "@azure Set up a GitHub Actions pipeline to deploy my app to Azure."

Example prompts for Azure Kubernetes Service (AKS)

GitHub Copilot for Azure enables users to perform a robust set of tasks related to Azure Kubernetes Service (AKS) directly from the GitHub Copilot Chat view. These skills include creating an AKS cluster, deploying a manifest to an AKS cluster, and generating Kubectl commands.

Create an AKS Cluster

Users can quickly set up an AKS cluster using simple, natural language prompts. GitHub Copilot for Azure reduces the complexity and time required to manually configure and deploy a Kubernetes cluster.

You can create an AKS cluster using the following prompts:

  • [@azure] can you help me create a Kubernetes cluster
  • [@azure] can you set up an AKS cluster for me?
  • [@azure] I have a containerized application, can you help me create an AKS cluster to host it?
  • [@azure] create AKS cluster
  • [@azure] Help me create a Kubernetes cluster to host my application

Deploy a Manifest to an AKS Cluster

Users can deploy their application manifests to an AKS cluster directly from the GitHub Copilot Chat view. This simplifies the deployment process and ensures consistency. Use these predefined prompts to reduce the risk of errors during deployment, leading to more reliable and stable deployments.

To deploy a manifest file to an AKS cluster, you can use these prompts:

  • [@azure] help me deploy my manifest file
  • [@azure] can you deploy my manifest to my AKS cluster?
  • [@azure] can you deploy my manifest to my Kubernetes cluster?
  • [@azure] deploy my application manifest to an AKS cluster
  • [@azure] deploy manifest for AKS cluster

Generate Kubectl Command

Users can generate various Kubectl commands to manage their AKS clusters without needing to remember complex command syntax. Using GitHub Copilot for Azure makes cluster management more accessible and efficient, especially for users who aren't Kubernetes experts.

You can generate various Kubectl commands for your AKS cluster using these prompts:

  • [@azure] list all services for my AKS cluster
  • [@azure] kubectl command to get deployments with at least 2 replicas in AKS cluster
  • [@azure] get me all services in my AKS cluster with external IPs
  • [@azure] what is the kubectl command to get pod info for my AKS cluster?
  • [@azure] Can you get kubectl command for getting all API resources

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.