Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Select, configure, and scale Azure compute resources—VMs, App Service, AKS, and Container Apps
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
workflows/essential-machine-management/essential-machine-management.md
1# Essential Machine Management (EMM) Workflow23Routes EMM-related requests to the appropriate reference based on user intent.45## Overview67Essential Machine Management simplifies onboarding and configuration of management for Azure VMs and Arc-enabled servers at the subscription level. When enabled, all VMs in a subscription are automatically enrolled with a curated set of monitoring, security, and operations features.89> ⚠️ **Warning:** EMM is currently in **public preview**.1011## Routing1213```text14User intent?15├─ Enable / onboard / enroll subscription for EMM16│ └─ Copilot-guided (default) → Load [EMM Enable Flow](references/emm-enable-flow.md)17│18├─ User explicitly asks for portal guidance19│ └─ Load [EMM Enable Flow (Portal)](references/emm-enable-flow-portal-guidance.md)20│21├─ What is EMM / features / pricing / tiers22│ └─ Load [EMM Overview](references/emm-overview.md)23│24├─ Prerequisites / permissions / roles / managed identity25│ └─ Load [EMM Prerequisites](references/emm-prerequisites.md)26│27├─ View enrolled subscriptions / browse / status28│ └─ See "Browse Enrolled Subscriptions" below29│30├─ Offboard / disable EMM for a subscription31│ └─ See "Offboard a Subscription" below32│33└─ Troubleshoot EMM issues34└─ See "Troubleshooting" below35```3637| Signal | Reference |38| ------ | --------- |39| "enable EMM", "onboard subscription", "enroll VMs", "set up machine management" | [EMM Enable Flow](references/emm-enable-flow.md) |40| User explicitly mentions "portal", "Azure portal", "portal UI" | [EMM Enable Flow (Portal)](references/emm-enable-flow-portal-guidance.md) |41| "what is EMM", "features", "pricing", "tiers", "what does EMM include" | [EMM Overview](references/emm-overview.md) |42| "permissions", "roles", "prerequisites", "managed identity for EMM" | [EMM Prerequisites](references/emm-prerequisites.md) |4344> ⚠️ **Important:** Only route to the portal guide when the user explicitly mentions "portal". All other enable requests use the Copilot-guided flow.4546## Browse Enrolled Subscriptions4748Query the EMM resource on each subscription to check enrollment status:4950```text51GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.ManagedOps/managedOps/default?api-version=2025-07-28-preview52```5354| Response | Meaning |55| -------- | ------- |56| `200` with `provisioningState: Succeeded` | Subscription is enrolled |57| `200` with `provisioningState: Failed` | Enrollment attempted but failed — check error details |58| `404` | Subscription is not enrolled |5960When enrolled, the response includes:61- **SKU/tier** — e.g. Essential62- **Enabled services** — Azure Monitor Insights, Update Manager, Change Tracking, Policy & Machine Configuration, Defender CSPM, Defender for Servers63- **UAMI** — the user-assigned managed identity resource ID64- **Workspaces** — Log Analytics and Azure Monitor workspace resource IDs65- **Created by / date** — who enrolled and when (in `systemData`)6667To scan multiple subscriptions, use `mcp_azure_mcp_subscription_list` to list available subscriptions, then query each one. Report results as a table:6869```text70| Subscription | Status | SKU | Services Enabled |71```7273## Offboard a Subscription7475To disable EMM for a subscription, follow the "Disable EMM (Offboard)" section in [EMM Enable Flow](references/emm-enable-flow.md).7677> ⚠️ **Warning:** When you disable a subscription, machines no longer use consolidated pricing. Pricing reverts to standard per-service pricing which may increase costs. Existing VM configurations are not removed — disable unneeded services manually.7879## Troubleshooting8081For common EMM issues, refer to the official documentation:82- [Troubleshoot Essential Machine Management (Preview)](https://learn.microsoft.com/en-us/azure/operations/configuration-enrollment-troubleshoot)8384Common issues include:85- Missing role assignments (EMM Administrator, Managed Identity Operator, Resource Policy Contributor)86- Resource provider `Microsoft.ManagedOps` not registered in the subscription87- UAMI lacking Contributor permission on the subscription88- Cross-subscription workspace access requires additional RP registration8990## Error Handling9192| Error | Cause | Remediation |93| ----- | ----- | ----------- |94| Permission denied during enable | User lacks required roles | Assign EMM Administrator, Managed Identity Operator, and Resource Policy Contributor roles |95| UAMI role check fails | Managed identity lacks Contributor | Assign Contributor role to the UAMI at subscription scope |96| RP not registered | `Microsoft.ManagedOps` not registered | Register via `Register-AzResourceProvider -ProviderNamespace "Microsoft.ManagedOps"` |97| Cross-subscription workspace error | Workspace in different sub without RP registration | Register `Microsoft.ManagedOps` in the workspace subscription and assign EMM Administrator on the workspace resource group |98| Deployment fails | ARM template validation error | Check deployment link in browse view for detailed error; verify all prerequisites |99