Extending Security Controls with Azure Arc
This lesson explains how Azure Arc brings servers outside Azure under Azure's management and security controls.
Learning outcomes
After completing this lesson, you will be able to:
- Explain what Azure Arc does.
- Describe the Connected Machine agent.
- Identify the security controls that Arc enables.
- Explain why extension rights are privileged.
One control plane
A security team that uses Azure Policy, RBAC and Defender for Cloud in Azure does not want different tools for servers elsewhere. Azure Arc-enabled servers projects physical servers and VMs hosted outside Azure into Azure Resource Manager, where each one appears as a resource with a resource ID. It can be placed in a resource group, tagged, assigned policy and protected like an Azure VM. Arc does not move the server. It only adds a management connection.
Arc is for machines outside Azure, whether they are on-premises or in AWS or GCP. Microsoft states that it is not designed or supported for managing VMs that run in Azure, which sometimes appears as a distractor.
The following diagram shows servers outside Azure managed through Arc.

The Connected Machine agent
A server joins by installing the Azure Connected Machine agent. It gives the machine an identity, and connects outbound to Azure over TCP 443, so no inbound port is needed. Each server receives a system-assigned managed identity, which means that an Arc server can get tokens for Azure resources without a stored secret.
The agent sends a heartbeat every 5 minutes. If none arrives, the status changes to Disconnected within 15 to 30 minutes. A machine that has been disconnected for 45 days may show as Expired. The managed identity credential lasts for up to 90 days, and renews every 45 days.
A service principal with the Azure Connected Machine Onboarding role can onboard many servers by script. For multicloud, a Defender for Cloud connector can install the agent automatically on AWS and GCP machines. Azure Private Link can keep agent traffic off the public internet, with an Arc Private Link Scope, which has a limit of 800 instances.
Arc agent timings
Security controls through Arc
Once a server is connected, Azure's controls can reach it. The following table shows what Arc enables.
| Capability | How it works through Arc |
|---|---|
| Defender for Servers | The plan protects the machine, and the Defender for Endpoint extension is deployed |
| Microsoft Sentinel | The Azure Monitor Agent extension collects logs through data collection rules |
| Azure Policy and Machine Configuration | Policies audit or configure the guest |
| Azure Update Manager | Patch assessment and installation |
| Azure RBAC | Roles control who can manage the server resource |
Extensions deliver these capabilities, and they are powerful, because an extension runs with system rights on the server. Anyone who can deploy an extension can run code as the local administrator or root. Roles on Arc resources should therefore be treated as privileged, and the agent has an extension allowlist and a local configuration to limit what can run.
Arc and its risks
Onboarding
The following outline shows a typical onboarding at scale.
-
Prepare
Create a resource group, register resource providers, and check outbound access.
-
Create an identity
Create a service principal with the Azure Connected Machine Onboarding role.
-
Deploy
Run the generated script through a tool such as Group Policy or Ansible.
-
Govern
Assign tags and policies, and confirm that the machines are connected.
-
Protect
Enable Defender for Servers, and confirm extensions.
Billing and plan coverage
Azure Arc for servers has no cost for the core control plane capabilities, while some features such as Defender for Servers are billed in their own way. An Arc server is covered by the Defender for Servers plan of the subscription that holds its Azure resource, so where it is placed matters. Tag and organize servers into subscriptions that have the desired plans.
On-premises servers and Sentinel
A company has 200 on-premises Windows servers. It wants vulnerability findings in Defender for Cloud, Windows Security events in Microsoft Sentinel, and Azure Policy guest configuration audits. What is the common first step?
All three depend on onboarding the servers with Azure Arc, by installing the Azure Connected Machine agent. Then enable Defender for Servers on the subscription, assign a data collection rule for the Azure Monitor Agent, and assign Machine Configuration policies.
Installing the retired Log Analytics agent is not a supported approach. A VPN alone connects networks, but it does not create Azure resources. A Defender for Cloud multicloud connector is for AWS and GCP, not for on-premises machines.
Should Azure Arc be used to bring an Azure VM under Azure Policy?
Show answer
No. Arc is for machines outside Azure, and Azure VMs are already Azure resources.
Exam Tips
Remember for the exam
- Arc is for machines outside Azure and is not supported on Azure VMs.
- The Connected Machine agent connects outbound, with no inbound port.
- Arc servers receive a system-assigned managed identity.
- Treat the right to deploy extensions as privileged.