Skip to content

Commit b26106c

Browse files
committed
Update Profiler install insstructions for VMs
1 parent 1921662 commit b26106c

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

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

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,30 @@ This page will guide you through the steps needed to get Application Insights pr
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. You must add another sink to this section to tell WAD to enable the profiler to send data to your iKey.
36+
37+
38+
```json
39+
"SinksConfig": {
40+
"Sink": [
41+
{
42+
"name": "ApplicationInsightsSink",
43+
"ApplicationInsights": "85f73556-b1ba-46de-9534-606e08c6120f"
44+
},
45+
{
46+
"name": "MyApplicationInsightsProfilerSink",
47+
"ApplicationInsightsProfiler": "85f73556-b1ba-46de-9534-606e08c6120f"
48+
}
49+
]
50+
},
51+
```
52+
3453
1. Deploy the modified environment deployment definition.
3554

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

38-
The following powershell commands are an alternate approach for existing virtual machines that touches only the Azure Diagnostics extension:
57+
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.
3958

4059
```powershell
4160
$ConfigFilePath = [IO.Path]::GetTempFileName()

0 commit comments

Comments
 (0)