Skip to content

Commit b05847e

Browse files
authored
Merge pull request #58040 from cweining/master
Update Profiler install insstructions for VMs
2 parents f860159 + 56908f2 commit b05847e

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

articles/application-insights/app-insights-profiler-vm.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,34 @@ You can also deploy Application Insights profiler on these services:
2525
* [Service Fabric](app-insights-profiler-vm.md?toc=/azure/azure-monitor/toc.json)
2626

2727
## Deploy Profiler on a Virtual Machine or Scale set
28-
This page will guide you through the steps needed to get Application Insights profiler running on your Azure VM or Azure virtual machine scale set. Application Insights Profiler is installed with the Windows Azure Diagnostics extension for VMs. You need to configure the extension to run the profiler and have the App Insights SDK built into your application to get profiles for your web apps running on a VM.
28+
This page will guide you through the steps needed to get Application Insights profiler running on your Azure VM or Azure virtual machine scale set. Application Insights Profiler is installed with the Windows Azure Diagnostics extension for VMs. The extension needs to be configured to run the profiler and the App Insights SDK must be built into your application.
2929

3030
1. Add application Insights SDK to your [ASP.Net application](https://docs.microsoft.com/azure/application-insights/app-insights-asp-net) or regular [.NET Application.](https://docs.microsoft.com/azure/application-insights/app-insights-windows-services?toc=/azure/azure-monitor/toc.json) You must be sending request telemetry to Application Insights see profiles for your requests.
3131
1. Install Windows Azure Diagnostics extension on your VM. For full Resource Manager template examples, see:
3232
* [Virtual machine](https://github.com/Azure/azure-docs-json-samples/blob/master/application-insights/WindowsVirtualMachine.json)
3333
* [Virtual machine scale set](https://github.com/Azure/azure-docs-json-samples/blob/master/application-insights/WindowsVirtualMachineScaleSet.json)
34+
35+
The key part is the ApplicationInsightsProfilerSink in the WadCfg. Add another sink to this section to tell WAD to enable the profiler to send data to your iKey.
36+
```json
37+
"SinksConfig": {
38+
"Sink": [
39+
{
40+
"name": "ApplicationInsightsSink",
41+
"ApplicationInsights": "85f73556-b1ba-46de-9534-606e08c6120f"
42+
},
43+
{
44+
"name": "MyApplicationInsightsProfilerSink",
45+
"ApplicationInsightsProfiler": "85f73556-b1ba-46de-9534-606e08c6120f"
46+
}
47+
]
48+
},
49+
```
50+
3451
1. Deploy the modified environment deployment definition.
3552

36-
To apply the modifications, usually involves a full template deployment or a cloud service based publish through PowerShell cmdlets or Visual Studio.
53+
To apply the modifications, it usually involves a full template deployment or a cloud service based publish through PowerShell cmdlets or Visual Studio.
3754

38-
The following powershell commands are an alternate approach for existing virtual machines that touches only the Azure Diagnostics extension:
55+
The following powershell commands are an alternate approach for existing virtual machines that touches only the Azure Diagnostics extension. You just need to add the ProfilerSink as noted above to the config that is returned by the Get-AzureRmVMDiagnosticsExtension command. Then pass the updated config to the Set-AzureRmVMDiagnosticsExcension command.
3956

4057
```powershell
4158
$ConfigFilePath = [IO.Path]::GetTempFileName()
@@ -46,7 +63,7 @@ This page will guide you through the steps needed to get Application Insights pr
4663
Set-AzureRmVMDiagnosticsExtension -ResourceGroupName "MyRG" -VMName "MyVM" -DiagnosticsConfigurationPath $ConfigFilePath
4764
```
4865

49-
1. If the intended application is running through [IIS](https://www.microsoft.com/web/downloads/platform.aspx), enable the `IIS Http Tracing` Windows feature by doing the following:
66+
1. If the intended application is running through [IIS](https://www.microsoft.com/web/downloads/platform.aspx), enable the `IIS Http Tracing` Windows feature.
5067

5168
a. Establish remote access to the environment, and then use the [Add Windows features]( https://docs.microsoft.com/iis/configuration/system.webserver/tracing/) window, or run the following command in PowerShell (as administrator):
5269

@@ -62,7 +79,7 @@ This page will guide you through the steps needed to get Application Insights pr
6279
1. Deploy your application.
6380

6481
## Can profiler run on on-premises servers?
65-
We have no plans to support Applciation Insights Profiler for on-premises servers.
82+
We have no plans to support Application Insights Profiler for on-premises servers.
6683

6784
## Next steps
6885

0 commit comments

Comments
 (0)