title | description | ms.date | ms.topic | ms.service | ms.custom | ms.author | author | |||
---|---|---|---|---|---|---|---|---|---|---|
Discover performance recommendations with Code Optimizations using Microsoft Copilot in Azure |
Learn about scenarios where Microsoft Copilot in Azure can use Application Insight Code Optimizations to help optimize your apps. |
11/20/2023 |
conceptual |
copilot-for-azure |
|
jenhayes |
JnHs |
Microsoft Copilot in Azure (preview) can provide Code Optimizations for Application Insights resources that have an active Application Insights Profiler. This lets you view recommendations tailored to your app to help optimize its performance.
When you ask Microsoft Copilot in Azure to provide these recommendations, it automatically pulls context from an open Application Insights blade or App Service blade to display available recommendations specific to that app. If the context isn't clear, you'll be prompted to choose an Application Insights resource from a resource selector page.
[!INCLUDE scenario-note]
[!INCLUDE preview-note]
Here are a few examples of the kinds of prompts you can use with Code Optimizations. Modify these prompts based on your real-life scenarios, or try additional prompts about specific areas for optimization.
- "Show my code performance recommendations"
- "Any available app code optimizations?"
- "Code optimizations in my app"
- "My app code is running slow"
- "Make my app faster with a code change"
In this example, Microsoft Copilot in Azure responds to the prompt, "Any code performance optimizations?" The response notes that there are 6 recommendations, providing the option to view either the top recommendation or all recommendations at once.
:::image type="content" source="media/optimize-code-application-insights/code-optimizations-show-recommendations.png" lightbox="media/optimize-code-application-insights/code-optimizations-show-recommendations.png" alt-text="Screenshot of Microsoft Copilot in Azure responding to a question about code optimizations.":::
When the Review all option is selected, Microsoft Copilot in Azure displays all recommendations. You can then select any recommendation to see more details.
- Explore capabilities of Microsoft Copilot in Azure.
- Learn more about Code Optimizations.