Azure MCP Server: policy_assignment_list fails at management-group scope ("Only resource in a subscription is supported") - still reproducible in 3.0.0-beta.49
Los mantenedores suelen responder en 2 días
@msalaman ya está trabajando en esto.
Desde el 15/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Title: Azure MCP Server: policy_assignment_list fails at management-group scope ("Only resource in a subscription is supported") — still reproducible in 3.0.0-beta.49
Summary
policy_assignment_list fails when the target scope is an Azure management group. Subscription-level enumeration works fine; management-group-level enumeration fails with:
Only resource in a subscription is supported
This is still reproducible in 3.0.0-beta.49, despite a related support case being closed/archived as if resolved.
Root cause
Azure.Mcp.Tools.Policy.Services.PolicyService.ListPolicyAssignmentsAsync resolves any non-empty scope via:
armClient.GetGenericResource(new ResourceIdentifier(scope)).GetAsync()
then calls .GetPolicyAssignments() on the result.
A management-group scope (/providers/Microsoft.Management/managementGroups/{id}) is not a generic ARM resource reachable through that GET surface — it's owned by Microsoft.Management, not subscription/resource-group scoped — so the generic-resource GET throws before policy assignments can even be listed.
Repro steps
- Call
policy_assignment_listwithscope= a subscription ID → succeeds. - Call
policy_assignment_listwithscope= a management group ID (/providers/Microsoft.Management/managementGroups/{mgId}) → fails with "Only resource in a subscription is supported." - Confirmed on both
2.0.5and3.0.0-beta.49. subscription_listandgroup_list(management group list) both work correctly — only policy-assignment enumeration at MG scope is affected.- Native Azure Policy REST API / Azure Resource Graph (
PolicyResourcestable) correctly enumerate policy assignments at management-group scope — confirming this is an Azure MCP Server defect, not an ARM/Policy service limitation.
Expected behavior
policy_assignment_list should enumerate policy assignments at management-group scope, matching native Azure Policy REST API behavior.
Suggested fix
Bypass the generic-resource GET for management-group scopes. Use the scope-based extension method armClient.GetPolicyAssignments(new ResourceIdentifier(scope)) (from Azure.ResourceManager.Resources), or route management-group scopes through the typed ManagementGroupResource.GetPolicyAssignments() path, rather than funneling every scope through GetGenericResource.
Impact
Blocking a customer's Foundry-based Azure Policy governance agent — specifically the management-group portion of policy discovery, inheritance analysis, policy rationalization, and compliance workflows. Customer requests:
- GitHub issue / tracking ID for the defect (this issue)
- Planned fix version
- Estimated timeline / release window
- Whether a preview build containing the fix can be provided for validation
- Any supported interim workaround within Azure MCP itself
Interim workaround (customer-facing, until fixed)
- Subscription-level
policy_assignment_listis unaffected and works today. - For management-group-level enumeration, use Azure Resource Graph (
PolicyResourcestable, scoped to the management group) or the raw Azure Policy REST API directly.
Environment
- Azure MCP Server versions tested:
2.0.5,3.0.0-beta.49 - Related support case: TrackingID#2608260040008728 (archived/closed prematurely — defect persists)
- Lenguaje dominante
- C#
- Estrellas
- 3.9k
- Forks
- 689
- Merge medio
- 2 d 11 h
- PR fusionados (30 d)
- 143
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/mcp
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languagePosiblemente ocupada @Shizoqua la tomó hoy. AbiertoAzure.Mcp.Server needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
[BUG] deploy architecture diagram generate never shows Docker settings for container appsPosiblemente ocupada @Shizoqua la tomó hoy. AbiertoAzure.Mcp.Server needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 2 días
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available toolsPosiblemente ocupada @Ahmed-Manai la tomó hace 9 días. Abiertoserver-Azure.Mcp
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no thresholdPosiblemente ocupada @msalaman la tomó hace 29 días. Abiertocustomer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
microsoft/mcp#4087 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK updateQuizá libre de nuevo @anishsinghhh3-bit la tomó hace 32 días y no hay ningún pull request abierto. Abiertocopilot documentation server-Azure.Mcp tools-ResilienceManagement
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
microsoft/mcp#4008 · 2 comentarios ·
Los mantenedores suelen responder en 2 días
Todos los issues de microsoft/mcp
Issues similares
-
fix: [v5] FluentTextInput throws from ElementInternals during .NET 11 enhanced form navigationAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
microsoft/fluentui-blazor#5721 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Project dependencies are outdatedPosiblemente ocupada @yasmoradi la tomó hoy. Abiertodependencies
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
bitfoundation/bitplatform#15616 ·
Los mantenedores suelen responder en 1 día
-
:watch: Not Triaged Pri3
Dificultad 1/5 Menos de una hora Aptitud para principiantes 91/100
Los mantenedores suelen responder en 1 día
-
area-controls-shell platform/android
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
dotnet/maui#41304 · 1 reacción ·
Los mantenedores suelen responder en 1 día