You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Monitor Network Connectivity using Azure Monitor Agent
3
-
description: This article describes how to monitor network connectivity in Connection Monitor using the Azure monitor agent.
2
+
title: Monitor network connectivity by using Azure Monitor Agent
3
+
description: This article describes how to monitor network connectivity in Connection Monitor by using Azure Monitor Agent.
4
4
services: network-watcher
5
5
author: v-ksreedevan
6
6
ms.service: network-watcher
7
7
ms.custom: ignite-2022
8
8
ms.topic: how-to
9
9
ms.date: 09/11/2022
10
10
ms.author: v-ksreedevan
11
-
#Customer intent: I need to monitor a connection using Azure Monitor agent.
11
+
#Customer intent: I need to monitor a connection by using Azure Monitor Agent.
12
12
---
13
13
14
-
# Monitor Network Connectivity using Azure Monitor Agent with Connection Monitor
14
+
# Monitor network connectivity by using Azure Monitor Agent with Connection Monitor
15
15
16
-
Connection Monitor supports the Azure Monitor Agent extension, thereby eliminating the dependency on the legacy Log Analytics agent.
16
+
Connection Monitor supports the Azure Monitor Agent extension, which eliminates any dependency on the legacy Log Analytics agent.
17
17
18
-
With Azure Monitor Agent, a single agent consolidates all the features necessary to address all connectivity logs and metrics data collection needs across Azure and On-premises machines compared to running various monitoring agents.
18
+
With Azure Monitor Agent, a single agent consolidates all the features necessary to address all connectivity logs and metrics data collection needs across Azure and on-premises machines compared to running various monitoring agents.
19
19
20
-
The Azure Monitor Agent provides enhanced security and performance capabilities, effective cost savings with efficient data collection and ease of troubleshooting with simpler data collection management for Log Analytics agent.
20
+
Azure Monitor Agent provides the following benefits:
21
+
* Enhanced security and performance capabilities
22
+
* Effective cost savings with efficient data collection
23
+
* Ease of troubleshooting, with simpler data collection management for the Log Analytics agent
21
24
22
-
[Learn more](../azure-monitor/agents/agents-overview.md) about Azure Monitor Agent.
25
+
[Learn more about Azure Monitor Agent](../azure-monitor/agents/agents-overview.md).
23
26
24
27
To start using Connection Monitor for monitoring, do the following:
25
28
* Install monitoring agents
26
29
* Create a connection monitor
27
30
* Analyze monitoring data and set alerts
28
31
* Diagnose issues in your network
29
32
30
-
The following sections provide details on the installation of Monitor Agents. For more information, see [Connection Monitor](connection-monitor-overview.md).
33
+
The following sections provide details on the installation of monitoring agents. For more information, see [Monitor network connectivity by using Connection Monitor](connection-monitor-overview.md).
31
34
32
-
## Installing monitoring agents for Azure and Non-Azure resources
35
+
## Install monitoring agents for Azure and non-Azure resources
33
36
34
-
The Connection Monitor relies on lightweight executable files to run connectivity checks. It supports connectivity checks from both Azure environments and on-premises environments. The executable file that you use depends on whether your VM is hosted on Azure or on-premises.
37
+
Connection Monitor relies on lightweight executable files to run connectivity checks. It supports connectivity checks from both Azure and on-premises environments. The executable file that you use depends on whether your virtual machine (VM) is hosted on Azure or on-premises.
35
38
36
39
### Agents for Azure virtual machines and scale sets
37
40
38
-
Refer [here](connection-monitor-overview.md#agents-for-azure-virtual-machines-and-virtual-machine-scale-sets) to install agents for Azure virtual machines and scale sets.
41
+
To install agents for Azure virtual machines and virtual machine scale sets, see the "Agents for Azure virtual machines and virtual machine scale sets" section of [Monitor network connectivity by using Connection Monitor](connection-monitor-overview.md#agents-for-azure-virtual-machines-and-virtual-machine-scale-sets).
39
42
40
43
### Agents for on-premises machines
41
44
42
45
To make Connection Monitor recognize your on-premises machines as sources for monitoring, do the following:
43
-
* Enable your hybrid endpoints to [ARC Enabled Servers](../azure-arc/overview.md).
46
+
47
+
* Enable your hybrid endpoints to [Azure Arc-enabled servers](../azure-arc/overview.md).
48
+
44
49
* Connect hybrid machines by installing the [Azure Connected Machine agent](../azure-arc/servers/overview.md) on each machine.
45
-
This agent doesn't deliver any other functionality, and it doesn't replace the Azure Monitor Agent. The Azure Connected Machine agent simply enables you to manage your Windows and Linux machines hosted outside of Azure on your corporate network or other cloud providers.
46
-
* Install the [Azure Monitor Agent](../azure-monitor/agents/agents-overview.md) to enable the Network Watcher extension.
47
-
* The agent collects monitoring logs and data from the hybrid sources and delivers it to Azure Monitor.
50
+
51
+
This agent doesn't deliver any other functionality, and it doesn't replace Azure Monitor Agent. The Azure Connected Machine agent simply enables you to manage the Windows and Linux machines that are hosted outside of Azure on your corporate network or other cloud providers.
52
+
53
+
*[Install Azure Monitor Agent](../azure-monitor/agents/agents-overview.md) to enable the Network Watcher extension.
54
+
55
+
The agent collects monitoring logs and data from the hybrid sources and delivers it to Azure Monitor.
48
56
49
57
## Coexistence with other agents
50
58
51
-
The Azure Monitor agent can coexist (run side by side on the same machine) with the legacy Log Analytics agents so that you can continue to use their existing functionality during evaluation or migration. While this allows you to begin the transition, given the limitations, you must review the following:
52
-
* Ensure that you do not collect duplicate data because it could alter query results and affect downstream features like alerts, dashboards, or workbooks. For example, VM insights uses the Log Analytics agent to send performance data to a Log Analytics workspace. You might also have configured the workspace to collect Windows events and Syslog events from agents. If you install the Azure Monitor agent and create a data collection rule for these same events and performance data, it will result in duplicate data. So, ensure you're not collecting the same data from both agents. If you are, ensure they're collecting from different machines or going to separate destinations.
53
-
* Besides data duplication, this would also generate more charges for data ingestion and retention.
54
-
* Running two telemetry agents on the same machine would result in double the resource consumption, including but not limited to CPU, memory, storage space and network bandwidth.
59
+
Azure Monitor Agent can coexist with, or run side by side on the same machine as, the legacy Log Analytics agents. You can continue to use their existing functionality during evaluation or migration.
60
+
61
+
Although this coexistence allows you to begin the transition, there are certain limitations. Keep in mind the following considerations:
62
+
63
+
* Do not collect duplicate data, because it could alter query results and affect downstream features such as alerts, dashboards, or workbooks.
64
+
65
+
For example, the VM insights feature uses the Log Analytics agent to send performance data to a Log Analytics workspace. You might also have configured the workspace to collect Windows events and Syslog events from agents. If you install Azure Monitor Agent and create a data collection rule for the same events and performance data, it will result in duplicate data. Ensure that you're not collecting the same data from both agents. If you are collecting duplicate data, make sure that it's coming from different machines or going to separate destinations.
66
+
67
+
* Data duplication would also generate more charges for data ingestion and retention.
68
+
69
+
* Running two telemetry agents on the same machine would result in double the resource consumption, including but not limited to CPU, memory, storage space, and network bandwidth.
description: This article describes how to install Azure Connected machine agent
2
+
title: Install the Azure Connected Machine agent for Connection Monitor
3
+
description: This article describes how to install Azure Connected Machine agent
4
4
services: network-watcher
5
5
author: v-ksreedevan
6
6
ms.service: network-watcher
7
7
ms.custom: ignite-2022
8
8
ms.topic: how-to
9
9
ms.date: 09/11/2022
10
10
ms.author: v-ksreedevan
11
-
#Customer intent: I need to monitor a connection using Azure Monitor agent.
11
+
#Customer intent: I need to monitor a connection by using Azure Monitor Agent.
12
12
---
13
13
14
-
# Install Azure Connected Machine agent to enable Arc
14
+
# Install the Azure Connected Machine agent to enable Azure Arc
15
15
16
-
This article describes the procedure to install the Azure Connected Machine agent.
16
+
This article describes how to install the Azure Connected Machine agent.
17
17
18
18
## Prerequisites
19
19
20
-
* An Azure account with an active subscription, else[create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
21
-
* Administrator permissions to install and configure the Connected Machine agent. On Linux, the installation and configuration is done using the root account, and on Windows, with an account that is a member of the Local Administrators group.
22
-
* Register the Microsoft.HybridCompute, Microsoft.GuestConfiguration, and Microsoft.HybridConnectivity resource providers on your subscription. You can [register these resource providers](../azure-arc/servers/prerequisites.md#azure-resource-providers) ahead of time, or while completing the steps in this article.
23
-
* Review the [agent prerequisites](../azure-arc/servers/prerequisites.md) and ensure the following:
20
+
* An Azure account with an active subscription. If you don't already have an account,[create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
21
+
* Administrator permissions to install and configure the Connected Machine agent. On Linux, you install and configure it by using the root account, and on Windows, you use an account that's a member of the Local Administrators group.
22
+
* Register the Microsoft.HybridCompute, Microsoft.GuestConfiguration, and Microsoft.HybridConnectivity resource providers on your subscription. You can [register these resource providers](../azure-arc/servers/prerequisites.md#azure-resource-providers)either ahead of time or as you're completing the steps in this article.
23
+
* Review the [agent prerequisites](../azure-arc/servers/prerequisites.md), and ensure that:
24
24
* Your target machine is running a supported [operating system](../azure-arc/servers/prerequisites.md#supported-operating-systems).
25
25
* Your account has the [required Azure built-in roles](../azure-arc/servers/prerequisites.md#required-permissions).
26
26
* The machine is in a [supported region](../azure-arc/overview.md).
27
-
* If the machine connects through a firewall or proxy server to communicate over the Internet, make sure the listed [URLs](../azure-arc/servers/network-requirements.md#urls) aren't blocked.
27
+
* If the machine connects through a firewall or proxy server to communicate over the internet, the listed URLs in [Connected Machine agent network requirements](../azure-arc/servers/network-requirements.md#urls) aren't blocked.
28
28
29
-
## Generate installation script
29
+
## Generate an installation script
30
30
31
-
Use the Azure portal to create a script that automates the download and installation of the agent and establishes the connection with Azure Arc.
31
+
Use the Azure portal to create a script that automates the downloading and installation of the agent and establishes the connection with Azure Arc.
32
32
33
-
1. In the Azure portal, search for **Servers - Azure Arc** and select it.
33
+
1. In the [Azure portal](https://portal.azure.com), search for **Servers - Azure Arc**, and then select it in the results list.
34
34
35
-
1. On the **Servers - Azure Arc** page, select **Add**.
35
+
1. On the **Servers - Azure Arc** page, select **Add**.
36
36
37
-
1. On the next screen, from the **Add a single server** tile, select **Generate script**.
37
+
1. On the **Add a single server** tile, select **Generate script**.
38
38
39
-
1. Review the information on the **Prerequisites** page, then select **Next**.
39
+
1. Review the information on the **Prerequisites** page, and then select **Next**.
40
40
41
41
1. On the **Resource details** page, provide the following:
42
42
43
-
1. Select the subscription and resource group where you want the machine to be managed within Azure.
44
-
1. For **Region**, choose the Azure region in which the server's metadata will be stored.
45
-
1. For **Operating system**, select the operating system of the server you want to connect.
46
-
1. For **Connectivity method**, choose how the Azure Connected Machine agent should connect to the internet. If you select **Proxy server**, enter the proxy server IP address, or the name and port number that the machine will use in the format `http://<proxyURL>:<proxyport>`.
47
-
1. Select **Next**.
43
+
a. Select the subscription and resource group where you want the machine to be managed within Azure.
44
+
b. For **Region**, select the Azure region in which the server's metadata will be stored.
45
+
c. For **Operating system**, select the operating system of the server you want to connect.
46
+
d. For **Connectivity method**, select how the Azure Connected Machine agent should connect to the internet. If you select **Proxy server**, enter the proxy server IP address, or enter the name and port number that the machine will use, in the format `http://<proxyURL>:<proxyport>`.
47
+
e. Select **Next**.
48
48
49
-
1. On the **Tags** page, review the default **Physical location tags** suggested and enter a value, or specify one or more **Custom tags** to support your standards. Then select **Next**.
49
+
1. On the **Tags** page, review the default **Physical location tags** suggested and either enter a value or specify one or more **Custom tags** to support your standards.
50
+
51
+
1. Select **Next**.
50
52
51
53
1. On the **Download and run script** page, select the **Register** button to register the required resource providers in your subscription, if you haven't already done so.
52
54
53
55
1. In the **Download or copy the following script** section, review the script. If you want to make any changes, use the **Previous** button to go back and update your selections. Otherwise, select **Download** to save the script file.
54
56
55
-
## Install the agent using the script
57
+
## Install the agent by using the script
56
58
57
59
After you've generated the script, the next step is to run it on the server that you want to onboard to Azure Arc. The script will download the Connected Machine agent from the Microsoft Download Center, install the agent on the server, create the Azure Arc-enabled server resource, and associate it with the agent.
58
60
@@ -62,19 +64,21 @@ Follow the steps corresponding to the operating system of your server.
62
64
63
65
1. Sign in to the server.
64
66
65
-
1. Open an elevated 64-bit PowerShell command prompt.
67
+
1. Open an elevated 64-bit PowerShell Command Prompt window.
68
+
69
+
1. Change to the folder or share that you copied the script to, and then execute it on the server by running the `./OnboardingScript.ps1` script.
66
70
67
-
1. Change to the folder or share that you copied the script to, then execute it on the server by running the `./OnboardingScript.ps1` script.
71
+
# [Linux agent](#tab/LinuxScript)
68
72
69
-
### [Linux agent](#tab/LinuxScript)
73
+
To install the Linux agent, run one of the following commands:
70
74
71
-
1. To install the Linux agent on the target machine that can directly communicate to Azure, run the following command:
75
+
* On the target machine that can directly communicate to Azure, run:
72
76
73
77
```bash
74
78
bash ~/Install_linux_azcmagent.sh
75
79
```
76
80
77
-
1. Alternately, ifthe target machine communicates through a proxy server, run the following command:
81
+
* If the target machine communicates through a proxy server, run:
@@ -83,17 +87,20 @@ Follow the steps corresponding to the operating system of your server.
83
87
84
88
## Verify the connection with Azure Arc
85
89
86
-
After you install the agent and configure it to connect to Azure Arc-enabled servers, go to the Azure portal to verify that the server has successfully connected. View your machine in the [Azure portal](https://aka.ms/hybridmachineportal).
90
+
After you install the agent and configure it to connect to Azure Arc-enabled servers, go to the Azure portal to verify that the server is successfully connected. View your machine in the [Azure portal](https://aka.ms/hybridmachineportal).
87
91
88
92
## Connect hybrid machines to Azure by using PowerShell
89
93
90
-
For servers enabled with Azure Arc, you can take manual steps mentioned above to enable them forone or more Windows or Linux machinesin your environment. Alternatively, you can use the PowerShell cmdlet Connect-AzConnectedMachine to download the Connected Machine agent, install the agent, and register the machine with Azure Arc. The cmdlet downloads the Windows agent package (Windows Installer) from the Microsoft Download Center, and the Linux agent package from the Microsoft package repository.
91
-
Refer to the linked document to discover the required steps to install the [Arc agent via PowerShell](../azure-arc/servers/onboard-powershell.md)
94
+
For servers that are enabled with Azure Arc, you can take the previously mentioned manual steps to enable them forone or more Windows or Linux machinesin your environment.
95
+
96
+
Alternatively, you can use the PowerShell cmdlet `Connect-AzConnectedMachine` to download the Azure Connected Machine agent, install the agent, and register the machine with Azure Arc. The cmdlet downloads the Windows agent package (Windows Installer) from the Microsoft Download Center, and it downloads the Linux agent package from the Microsoft package repository.
97
+
98
+
Refer to the linked document to discover the required steps to install the [Azure Arc agent via PowerShell](../azure-arc/servers/onboard-powershell.md).
92
99
93
100
## Connect hybrid machines to Azure from Windows Admin Center
94
101
95
-
You can enable Azure Arc-enabled servers forone or more Windows machinesin your environment manually or use the Windows Admin Center to deploy the Connected Machine agent and register your on-premises servers without having to perform any steps outside of this tool. [Learn more](../azure-arc/servers/onboard-windows-admin-center.md) about installing Arc agent via the Windows Admin Center.
102
+
You can enable Azure Arc-enabled servers forone or more Windows machinesin your environment manually, or you can use the Windows Admin Center to deploy the Azure Connected Machine agent and register your on-premises servers without having to perform any steps outside of this tool. For more information about installing the Azure Arc agent via Windows Admin Center, see [Connect hybrid machines to Azure from Windows Admin Center](../azure-arc/servers/onboard-windows-admin-center.md).
0 commit comments