Skip to content

Commit 212bfaf

Browse files
authored
Merge pull request #279169 from hhunter-ms/hh-270861
[Code Optimizations] Move TSG to azure-docs-pr
2 parents b6be5a4 + b8d062c commit 212bfaf

File tree

6 files changed

+63
-5
lines changed

6 files changed

+63
-5
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
title: Troubleshoot Code Optimizations (Preview)
3+
description: Learn how to use Application Insights Code Optimizations on Azure. View a checklist of troubleshooting steps.
4+
author: rkahng
5+
ms.author: ryankahng
6+
editor: v-jsitser
7+
ms.reviewer: hannahhunter, v-leedennis
8+
ms.service: azure-monitor
9+
ms.topic: troubleshooting
10+
ms.date: 06/25/2024
11+
ms.custom: sap:Availability Tests
12+
---
13+
14+
# Troubleshoot Code Optimizations (Preview)
15+
16+
This article provides troubleshooting steps and information to use Application Insights Code Optimizations for Microsoft Azure.
17+
18+
## Troubleshooting checklist
19+
20+
### Step 1: View a video about Code Optimizations setup
21+
22+
View the following demonstration video to learn how to set up Code Optimizations correctly.
23+
24+
> [!VIDEO https://www.youtube-nocookie.com/embed/vbi9YQgIgC8]
25+
26+
### Step 2: Make sure that your app is connected to an Application Insights resource
27+
28+
[Create an Application Insights resource](/azure/azure-monitor/app/create-workspace-resource) and verify that it's connected to the correct app.
29+
30+
### Step 3: Verify that Application Insights Profiler is enabled
31+
32+
[Enable Application Insights Profiler](/azure/azure-monitor/profiler/profiler-overview).
33+
34+
### Step 4: Verify that Application Insights Profiler is collecting profiles
35+
36+
To make sure that profiles are uploaded to your Application Insights resource, follow these steps:
37+
38+
1. In the [Azure portal](https://portal.azure.com), search for and select **Application Insights**.
39+
1. In the list of Application Insights resources, select the name of your resource.
40+
1. In the navigation pane of your Application Insights resource, locate the **Investigate** heading, and then select **Performance**.
41+
1. On the **Performance** page of your Application Insights resource, select **Profiler**:
42+
43+
:::image type="content" source="./media/code-optimizations-troubleshoot/performance-page.png" alt-text="Azure portal screenshot that shows how to navigate to the Application Insights Profiler.":::
44+
45+
1. On the **Application Insights Profiler** page, view the **Recent profiling sessions** section.
46+
47+
:::image type="content" source="./media/code-optimizations-troubleshoot/profiling-sessions.png" alt-text="Azure portal screenshot of the Application Insights Profiler page." lightbox="./media/code-optimizations-troubleshoot/profiling-sessions.png":::
48+
49+
> [!NOTE]
50+
> If you don't see any profiling sessions, see [Troubleshoot Application Insights Profiler](../profiler/profiler-troubleshooting.md).
51+
52+
### Step 5: Regularly check the Profiler
53+
54+
After you successfully complete the previous steps, keep checking the Profiler for insights. Meanwhile, the service continues to analyze your profiles and provide insights as soon as it detects any issues in your code. After you enable the Application Insights Profiler, several hours might be required for you to generate profiles and for the service to analyze them. If the service detects no issues in your code, a message appears that confirms that no insights were found.
55+
56+
## Contact us for help
57+
58+
If you have questions or need help, [create a support request](https://ms.portal.azure.com/#blade/Microsoft_Azure_Support/HelpAndSupportBlade/overview?DMC=troubleshoot), or ask [Azure community support](https://azure.microsoft.com/support/community). You can also submit product feedback to [Azure feedback community](https://feedback.azure.com/d365community).

articles/azure-monitor/insights/code-optimizations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: azure-monitor
66
ms.subservice: optimization-insights
77
author: hhunter-ms
88
ms.author: hannahhunter
9-
ms.date: 03/08/2024
9+
ms.date: 06/25/2024
1010
ms.reviewer: ryankahng
1111
---
1212

@@ -73,4 +73,4 @@ Get started with Code Optimizations by enabling the following features on your a
7373
- [Application Insights](../app/create-workspace-resource.md)
7474
- [Application Insights Profiler](../profiler/profiler-overview.md)
7575

76-
Running into issues? Check the [Troubleshooting guide](/troubleshoot/azure/azure-monitor/app-insights/code-optimizations-troubleshooting)
76+
Running into issues? Check the [Troubleshooting guide](./code-optimizations-troubleshoot.md)
170 KB
Loading
115 KB
Loading

articles/azure-monitor/insights/view-code-optimizations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: azure-monitor
66
ms.subservice: optimization-insights
77
author: hhunter-ms
88
ms.author: hannahhunter
9-
ms.date: 03/05/2024
9+
ms.date: 06/25/2024
1010
ms.reviewer: ryankahng
1111
---
1212

@@ -79,5 +79,5 @@ You can also view a graph depicting a specific performance issue's impact and th
7979
## Next steps
8080

8181
> [!div class="nextstepaction"]
82-
> [Troubleshoot Code Optimizations](/troubleshoot/azure/azure-monitor/app-insights/code-optimizations-troubleshooting)
82+
> [Troubleshoot Code Optimizations](./code-optimizations-troubleshoot.md)
8383

articles/azure-monitor/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ items:
313313
- name: View insights
314314
href: insights/view-code-optimizations.md
315315
- name: Troubleshooting
316-
href: /troubleshoot/azure/azure-monitor/app-insights/code-optimizations-troubleshooting
316+
href: insights/code-optimizations-troubleshoot.md
317317
- name: Snapshot Debugger
318318
items:
319319
- name: Overview

0 commit comments

Comments
 (0)