Skip to content

Commit cbea511

Browse files
authored
Merge pull request #234926 from paulth1/virtual-machines-batch-5
[AQ] edit pass: Virtual machines batch 5
2 parents 4b9d68c + c58fbaf commit cbea511

7 files changed

+233
-262
lines changed

articles/azure-monitor/best-practices-cost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ This article describes [Cost optimization](/azure/architecture/framework/cost/)
5454

5555
| Recommendation | Benefit |
5656
|:---|:---|
57-
| Configure VM agents to collect only important events. | Virtual machines can vary significantly in the amount of data they collect, depending on the amount of telemetry generated by the applications and services they have installed. See [Monitor virtual machines with Azure Monitor: Workloads](vm/monitor-virtual-machine-data-collection.md#controlling-costs) for guidance on data to collect and strategies for using [XPath queries](agents/data-collection-rule-azure-monitor-agent.md#filter-events-using-xpath-queries) to limit it.|
57+
| Configure VM agents to collect only important events. | Virtual machines can vary significantly in the amount of data they collect, depending on the amount of telemetry generated by the applications and services they have installed. See [Monitor virtual machines with Azure Monitor: Workloads](vm/monitor-virtual-machine-data-collection.md#control-costs) for guidance on data to collect and strategies for using [XPath queries](agents/data-collection-rule-azure-monitor-agent.md#filter-events-using-xpath-queries) to limit it.|
5858
| Ensure that VMs aren't sending duplicate data. | Any configuration that uses multiple agents on a single machine or where you multi-home agents to send data to multiple workspaces may incur charges for the same data multiple times. If you do multi-home agents, make sure you're sending unique data to each workspace. See [Analyze usage in Log Analytics workspace](logs/analyze-usage.md) for guidance on analyzing your collected data to make sure you aren't collecting duplicate data. If you're migrating between agents, continue to use the Log Analytics agent until you [migrate to the Azure Monitor agent](./agents/azure-monitor-agent-migration.md) rather than using both together unless you can ensure that each is collecting unique data. |
5959
| Use transformations to filter unnecessary data from collected events. | [Transformations](essentials/data-collection-transformations.md) can be used in data collection rules to remove unnecessary data or even entire columns from events collected from the virtual machine which can significantly reduce the cost for their ingestion and retention. |
6060

articles/azure-monitor/vm/monitor-virtual-machine-data-collection.md

Lines changed: 79 additions & 96 deletions
Large diffs are not rendered by default.

articles/azure-monitor/vm/tutorial-monitor-vm-guest.md

Lines changed: 43 additions & 51 deletions
Large diffs are not rendered by default.

articles/azure-monitor/vm/vminsights-enable-hybrid.md

Lines changed: 21 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,29 @@ ms.date: 06/08/2022
1111
# Enable VM insights for a hybrid virtual machine
1212
This article describes how to enable VM insights for a virtual machine outside of Azure, including on-premises and other cloud environments.
1313

14-
> [!IMPORTANT]
15-
> The recommended method of enabling hybrid VMs is first enabling [Azure Arc for servers](../../azure-arc/servers/overview.md) so that the VMs can be enabled for VM insights using processes similar to Azure VMs. This article describes how to onboard hybrid VMs if you choose not to use Azure Arc.
14+
To enable hybrid VMs, first enable [Azure Arc for servers](../../azure-arc/servers/overview.md) so that the VMs can be enabled for VM insights by using processes similar to Azure VMs. This article describes how to onboard hybrid VMs if you choose not to use Azure Arc.
1615

1716
[!INCLUDE [monitoring-limits](../../../includes/azure-monitor-vminsights-agent.md)]
1817

19-
2018
## Prerequisites
2119

2220
- [Create and configure a Log Analytics workspace](./vminsights-configure-workspace.md).
23-
- See [Supported operating systems](./vminsights-enable-overview.md#supported-operating-systems) to ensure that the operating system of the virtual machine or virtual machine scale set you're enabling is supported.
24-
21+
- See [Supported operating systems](./vminsights-enable-overview.md#supported-operating-systems) to ensure that the operating system of the virtual machine or virtual machine scale set you're enabling is supported.
2522

2623
## Overview
27-
Virtual machines outside of Azure require the same Log Analytics agent and Dependency agent that are used for Azure VMs. Since you can't use VM extensions to install the agents though, you must manually install them in the guest operating system or have them installed through some other method.
24+
Virtual machines outside of Azure require the same Log Analytics agent and Dependency agent that are used for Azure VMs. Because you can't use VM extensions to install the agents, you must manually install them in the guest operating system or have them installed through some other method.
2825

29-
See [Connect Windows computers to Azure Monitor](../agents/agent-windows.md) or [Connect Linux computers to Azure Monitor](../agents/agent-linux.md) for details on deploying the Log Analytics agent. Details for the Dependency agent are provided in this article.
26+
For information on how to deploy the Log Analytics agent, see [Connect Windows computers to Azure Monitor](../agents/agent-windows.md) or [Connect Linux computers to Azure Monitor](../agents/agent-linux.md). Details for the Dependency agent are provided in this article.
3027

3128
## Firewall requirements
32-
Firewall requirements for the Log Analytics agent are provided in [Log Analytics agent overview](../agents/log-analytics-agent.md#network-requirements). The VM insights Map Dependency agent doesn't transmit any data itself, and it doesn't require any changes to firewalls or ports. The Map data is always transmitted by the Log Analytics agent to the Azure Monitor service, either directly or through the [Operations Management Suite gateway](../../azure-monitor/agents/gateway.md) if your IT security policies don't allow computers on the network to connect to the internet.
29+
Firewall requirements for the Log Analytics agent are provided in [Log Analytics agent overview](../agents/log-analytics-agent.md#network-requirements). The VM insights Map Dependency agent doesn't transmit any data itself, and it doesn't require any changes to firewalls or ports.
3330

31+
The Map data is always transmitted by the Log Analytics agent to the Azure Monitor service. Data is transmitted either directly or through the [Operations Management Suite gateway](../../azure-monitor/agents/gateway.md) if your IT security policies don't allow computers on the network to connect to the internet.
3432

3533
## Dependency agent
3634

3735
>[!NOTE]
38-
>The following information described in this section is also applicable to the [Service Map solution](./service-map.md).
36+
>The following information described in this section also applies to the [Service Map solution](./service-map.md).
3937
4038
You can download the Dependency agent from these locations:
4139

@@ -44,10 +42,9 @@ You can download the Dependency agent from these locations:
4442
| [InstallDependencyAgent-Windows.exe](https://aka.ms/dependencyagentwindows) | Windows | 9.10.16.22650 | BE537D4396625ADD93B8C1D5AF098AE9D9472D8A20B2682B32920C5517F1C041 |
4543
| [InstallDependencyAgent-Linux64.bin](https://aka.ms/dependencyagentlinux) | Linux | 9.10.16.22650 | FF86D821BA845833C9FE5F6D5C8A5F7A60617D3AD7D84C75143F3E244ABAAB74 |
4644

47-
4845
## Install the Dependency agent on Windows
4946

50-
You can install the Dependency agent manually on Windows computers by running `InstallDependencyAgent-Windows.exe`. If you run this executable file without any options, it starts a setup wizard that you can follow to install the agent interactively. You require *Administrator* privileges on the guest OS to install or uninstall the agent.
47+
You can install the Dependency agent manually on Windows computers by running `InstallDependencyAgent-Windows.exe`. If you run this executable file without any options, it starts a setup wizard that you can follow to install the agent interactively. You require Administrator privileges on the guest OS to install or uninstall the agent.
5148

5249
The following table highlights the parameters that are supported by setup for the agent from the command line.
5350

@@ -69,7 +66,6 @@ Invoke-WebRequest "https://aka.ms/dependencyagentwindows" -OutFile InstallDepend
6966
.\InstallDependencyAgent-Windows.exe /S
7067
```
7168

72-
7369
## Install the Dependency agent on Linux
7470

7571
The Dependency agent is installed on Linux servers from *InstallDependencyAgent-Linux64.bin*, a shell script with a self-extracting binary. You can run the file by using `sh` or add execute permissions to the file itself.
@@ -98,7 +94,7 @@ Files for the Dependency agent are placed in the following directories:
9894
| Service executable files | /opt/microsoft/dependency-agent/bin/microsoft-dependency-agent<br>/opt/microsoft/dependency-agent/bin/microsoft-dependency-agent-manager |
9995
| Binary storage files | /var/opt/microsoft/dependency-agent/storage |
10096

101-
### Shell script
97+
### Shell script
10298
Use the following sample shell script to download and install the agent:
10399

104100
```
@@ -108,7 +104,7 @@ sudo sh InstallDependencyAgent-Linux64.bin -s
108104

109105
## Desired State Configuration
110106

111-
To deploy the Dependency agent using Desired State Configuration (DSC), you can use the xPSDesiredStateConfiguration module with the following example code:
107+
To deploy the Dependency agent by using Desired State Configuration (DSC), you can use the `xPSDesiredStateConfiguration` module with the following example code:
112108

113109
```powershell
114110
configuration VMInsights {
@@ -142,41 +138,38 @@ configuration VMInsights {
142138
}
143139
```
144140

145-
146-
147141
## Troubleshooting
148142

149-
### VM doesn't appear on the map
143+
This section offers troubleshooting tips for common issues.
150144

151-
If your Dependency agent installation succeeded, but you don't see your computer on the map, diagnose the problem by following these steps.
145+
### VM doesn't appear on the map
152146

153-
1. Is the Dependency agent installed successfully? You can validate this by checking to see if the service is installed and running.
147+
If your Dependency agent installation succeeded but you don't see your computer on the map, diagnose the problem by following these steps:
154148

155-
**Windows**: Look for the service named "Microsoft Dependency agent."
149+
1. Is the Dependency agent installed successfully? Check to see if the service is installed and running.
156150

157-
**Linux**: Look for the running process "microsoft-dependency-agent."
151+
- **Windows**: Look for the service named "Microsoft Dependency agent."
152+
- **Linux**: Look for the running process "microsoft-dependency-agent."
158153

159-
2. Are you on the [Free pricing tier of Log Analytics](/previous-versions/azure/azure-monitor/insights/solutions)? The Free plan allows for up to five unique computers. Any subsequent computers won't show up on the map, even if the prior five are no longer sending data.
154+
1. Are you on the [Free pricing tier of Log Analytics](/previous-versions/azure/azure-monitor/insights/solutions)? The Free plan allows for up to five unique computers. Any subsequent computers won't show up on the map, even if the prior five are no longer sending data.
160155

161-
3. Is the computer sending log and perf data to Azure Monitor Logs? Perform the following query for your computer:
156+
1. Is the computer sending log and perf data to Azure Monitor Logs? Perform the following query for your computer:
162157

163158
```Kusto
164159
Usage | where Computer == "computer-name" | summarize sum(Quantity), any(QuantityUnit) by DataType
165160
```
166161
167-
Did it return one or more results? Is the data recent? If so, your Log Analytics agent is operating correctly and communicating with the service. If not, check the agent on your server: [Log Analytics agent for Windows troubleshooting](../agents/agent-windows-troubleshoot.md) or [Log Analytics agent for Linux troubleshooting](../agents/agent-linux-troubleshoot.md).
162+
Did it return one or more results? Is the data recent? If so, your Log Analytics agent is operating correctly and communicating with the service. If not, check the agent on your server. See [Log Analytics agent for Windows troubleshooting](../agents/agent-windows-troubleshoot.md) or [Log Analytics agent for Linux troubleshooting](../agents/agent-linux-troubleshoot.md).
168163
169164
#### Computer appears on the map but has no processes
170165
171-
If you see your server on the map, but it has no process or connection data, that indicates that the Dependency agent is installed and running, but the kernel driver didn't load.
172-
173-
Check the C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log file (Windows) or /var/opt/microsoft/dependency-agent/log/service.log file (Linux). The last lines of the file should indicate why the kernel didn't load. For example, the kernel might not be supported on Linux if you updated your kernel.
166+
You see your server on the map, but it has no process or connection data. In this case, the Dependency agent is installed and running, but the kernel driver didn't load.
174167
168+
Check the *C:\Program Files\Microsoft Dependency Agent\logs\wrapper.log* file (Windows) or */var/opt/microsoft/dependency-agent/log/service.log* file (Linux). The last lines of the file should indicate why the kernel didn't load. For example, the kernel might not be supported on Linux if you updated your kernel.
175169
176170
## Next steps
177171
178172
Now that monitoring is enabled for your virtual machines, this information is available for analysis with VM insights.
179173
180174
- To view discovered application dependencies, see [View VM insights Map](vminsights-maps.md).
181-
182175
- To identify bottlenecks and overall utilization with your VM's performance, see [View Azure VM performance](vminsights-performance.md).

0 commit comments

Comments
 (0)