Use AKS plugins in GitHub Copilot for Azure to enhance your day-to-day experience in Azure Kubernetes Service

The AKS plugins (or skills) for GitHub Copilot for Azure (@azure) extension enable users to perform various 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.

Prerequisites

Before you begin, make sure you have the following resources:

How to start using the AKS plugins for GitHub Copilot for Azure

You can access the AKS plugins for GitHub Copilot for Azure by opening up the GitHub Copilot side-bar panel in Visual Studio Code.

Create an AKS cluster

Screenshot showing a cluster being created via GitHub Copilot for Azure.

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

Screenshot showing a manifest being deployed via GitHub Copilot for Azure.

You can deploy your application manifests to an AKS cluster directly from the GitHub Copilot Chat view. This simplifies the deployment process and ensures consistency. By using predefined prompts, the risk of errors during deployment is minimized 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 commands

Screenshot showing kubectl commands via GitHub Copilot for Azure.

You can generate various Kubectl commands to manage your AKS clusters without needing to remember complex command syntax. This makes cluster management more accessible, especially for those who may not be Kubernetes experts. Quickly generating the necessary commands helps you perform cluster operations more efficiently, saving time and effort.

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

For more information, see AKS extension for Visual Studio Code features.

Product support and feedback

If you have a question or want to offer product feedback, please open an issue on the AKS extension GitHub repository.

Next steps

To learn more about other AKS add-ons and extensions, see Add-ons, extensions, and other integrations for AKS.