Breyta

Deila með


Example prompts for troubleshooting your application with GitHub Copilot for Azure

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 to help you troubleshoot problems with your application.

Example prompts for troubleshooting your app

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 and Azure MCP Server to help you deploy your application. Use best practices to achieve the best results. Most importantly:

  • Use "Agent" mode for the best experience. Avoid "Ask" mode.
  • Include the word "Azure" in the prompt to help Copilot understand that it needs to call tools from the Azure MCP Server.
  • If using Visual Studio Code, make sure you use "Configure Tools ..." and include both "Azure MCP" and "GitHub Copilot for Azure". See the Tool calling section's Visual Studio Code tab for more details.

Open-ended prompts

  • "Where can I find metrics and logs in Azure?"
  • "I want to see all the error messages in my Azure logs."
  • "I'm seeing errors with my app — check the Azure logs to find out why."
  • "Why are my clients being disconnected so often in Azure?"
  • "Why did my last Azure deployment fail?"
  • "Help me analyze my Azure app for high CPU usage."
  • "Why is my Azure application running slow?"
  • "Take a memory dump of my Azure app."

Prompts about specific timeframes

  • "Grab all the Azure errors in the logs between yesterday and today."
  • "Diagnose my Azure app to show what problems it encountered."
  • "Tell me what goes wrong with my Azure app 'myAppName'."
  • "Troubleshoot my Azure app for any possible issues in the last 3 hours."
  • "What errors did my Azure app 'myAppName' have in the last 24 hours?"

Prompts about specific errors

  • "Are there any 501 errors in my Azure app logs?"
  • "Why am I seeing a 500 error when opening my Azure website?"
  • "I'm getting an xxx error code in Azure — what could be the reasons?"
  • "Show me all the 4xx errors in my Azure logs from the last 6 hours."
  • "Find error messages in the Azure logs that might correlate to 500 errors."

Prompts about specific services and technologies

Service or technology Troubleshoot prompt examples
Azure Container Apps
  • "My Azure container app won't start."
  • "My users are reporting errors with my Azure container app."
  • "Can you look at my Azure container app 'energy-api-1' logs for any 404 errors?"
  • "Have my Azure container app's system console logs contained any warnings recently?"
Azure Kubernetes Service (AKS)
  • "Help me troubleshoot my AKS cluster."
  • "How do I troubleshoot Azure Kubernetes Service (AKS)?"
  • "How can I get the logs of a specific pod in Azure?"
  • "Do my Azure kube-apiserver logs show the last time a restart occurred?"
  • "My AKS cluster 'assistant-orchestrator' is having performance problems."
  • "Find out why my Azure Kubernetes cluster 'store-service-prod' is running slow."
  • "I'd like to investigate performance problems with my Azure Kubernetes cluster."
Azure App Service
  • "How can I improve my Azure web app's performance?"
  • "How do I improve my app's CPU usage in Azure?"
  • "How can I improve the performance of my Azure web app?"
  • "Diagnose high CPU usage in Azure App Service."
  • "Show me how to detect slow performance issues in my Azure App Service web app."
  • "Investigate high CPU usage for Azure App Service."
  • "What's causing latency in my Azure web app?"
  • "Can you help me diagnose high CPU usage in Azure App Service?"
  • "Why am I seeing high memory usage in my Azure App Service?"
  • "Help me analyze my Azure web app downtime."
  • "Help me diagnose slow performance in my Azure web app."
  • "Help me collect a memory dump from Azure App Service."
  • "My Azure App Service container won't start."
  • "Is there anything wrong with my Azure bakery-api web app?"
  • "Look into whether my Azure web app is having any downtime."
  • "Troubleshoot why my Azure web app is not responding."
Azure Developer CLI (azd)
  • "I'm getting this Azure Developer CLI error. What does it mean?"
Azure SDK
  • "The npm Azure Resource Manager SDK is failing to install. What should I do?"
Azure Event Hubs
  • "My application needs help processing real-time events in Azure Event Hubs."
Azure OpenAI Service
  • "What is using up my Azure OpenAI GPT4o model quota?"
Azure SignalR Service
  • "My Azure SignalR client is not receiving messages. Why?"
  • "Why are my Azure SignalR clients being disconnected so often?"
  • "Where can I find metrics and logs for my Azure SignalR app?"
Azure Storage
  • "Can you help me choose the right Azure Storage solution?"
  • "What are some ways to secure my Azure Storage account?"
  • "I got an Azure Storage error 403: unauthorized blob listing."
Azure Web PubSub
  • "My Azure Web PubSub client is not receiving messages. Why?"