Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
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 |
|
| Azure Kubernetes Service (AKS) |
|
| Azure App Service |
|
Azure Developer CLI (azd) |
|
| Azure SDK |
|
| Azure Event Hubs |
|
| Azure OpenAI Service |
|
| Azure SignalR Service |
|
| Azure Storage |
|
| Azure Web PubSub |
|
Related content
- Understand what GitHub Copilot for Azure 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 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 designing and developing applications for Azure.
- See example prompts for deploying your application to Azure.