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
I maintainer di solito rispondono entro 2 giorni
@msalaman ci sta già lavorando.
Dal 15/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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)
- Lingua principale
- C#
- Stelle
- 3.9k
- Fork
- 689
- Merge medio
- 2g 11h
- PR unite (30g)
- 143
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/mcp
-
[BUG] speech tts synthesize rejects valid locales such as fil-PH, yue-CN and sr-Latn-RS in --languageForse già presa @Shizoqua l’ha presa oggi. ApertaAzure.Mcp.Server needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
[BUG] deploy architecture diagram generate never shows Docker settings for container appsForse già presa @Shizoqua l’ha presa oggi. ApertaAzure.Mcp.Server needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
[BUG] Single mode: an unknown tool name fails with "An error occurred invoking 'azure'" instead of listing the available toolsForse già presa @Ahmed-Manai l’ha presa 9 giorni fa. Apertaserver-Azure.Mcp
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
[BUG] pricing get drops tierMinimumUnits, so tiered meters return same-meter prices with no thresholdForse già presa @msalaman l’ha presa 29 giorni fa. Apertacustomer-reported needs-team-triage question server-Azure.Mcp tools-Price tools-Pricing
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/mcp#4087 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
[Doc Gap] README.md still shows removed "Basic" resilience usage plan tier after GA SDK updateForse di nuovo libera @anishsinghhh3-bit l’ha presa 32 giorni fa e non c’è nessuna pull request aperta. Apertacopilot documentation server-Azure.Mcp tools-ResilienceManagement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
microsoft/mcp#4008 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di microsoft/mcp
Issue simili
-
fix: [v5] FluentTextInput throws from ElementInternals during .NET 11 enhanced form navigationAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
microsoft/fluentui-blazor#5721 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Project dependencies are outdatedForse già presa @yasmoradi l’ha presa oggi. Apertadependencies
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
bitfoundation/bitplatform#15616 ·
I maintainer di solito rispondono entro 1 giorno
-
:watch: Not Triaged Pri3
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
area-controls-shell platform/android
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
dotnet/maui#41304 · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno