[ARM] az policy definition version create fails with undocumented feature gate for custom definitions
Los mantenedores suelen responder en 1 día
@isra-fel ya está trabajando en esto.
Desde el 13/8/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Describe the bug
az policy definition version create cannot create a version for a custom policy definition in my AzureCloud subscription. The service says the feature is disabled in this environment.
This does not appear to be a CLI syntax, RBAC, scope, or API-version issue:
- Creating the root custom definition with
--version 1.0.0succeeds. - The caller is Owner.
- The failure is identical at subscription and management-group scope.
- Direct REST calls return the same error.
- The stable REST API documents
policyType: Custom, but I cannot find a feature-registration or enrollment step.
Related command
az policy definition create \
--name <definition-name> \
--display-name "Policy versioning repro" \
--rules policy-rules.json \
--version 1.0.0
az policy definition version create \
--name <definition-name> \
--version 1.1.0 \
--display-name "Policy versioning repro" \
--rules policy-rules.json
Errors
(InvalidPolicyDefinitionVersionRequest) Creating policy definition versions is currently disabled in this environment. Please contact support for any questions.
Updating the root definition from version 1.0.0 to 1.1.0 also fails:
(InvalidVersionIdentifier) Changing the value of the 'version' property is not yet supported in this environment.
Issue script & Debug output
The request reaches Microsoft.Authorization/policyDefinitions/versions/write and passes authorization. I also tested the REST endpoint with API versions from 2023-04-01 through 2026-01-01-preview; all return the same service-side error. az feature list shows no relevant registration feature.
Subscription, tenant, and request identifiers are omitted from this public issue.
Expected behavior
Please clarify how a customer subscription can use this command:
- If custom policy-definition versioning is generally available, what enables it in a subscription where it is currently disabled?
- If it is allowlisted or preview-only, what is the enrollment path?
The CLI help and REST documentation should state any rollout or enrollment requirement.
Environment Summary
azure-cli 2.89.1
core 2.89.1
azure-mgmt-resource 24.0.0
Python (Darwin) 3.14.6
Cloud AzureCloud
Additional context
- REST API: https://learn.microsoft.com/en-us/rest/api/policy/policy-definition-versions/create-or-update?view=rest-policy-2025-11-01
- CLI PR adding the GA commands: https://github.com/Azure/azure-cli/pull/33416
- The CLI live-test recording successfully creates custom versions in a Microsoft test environment: https://github.com/Azure/azure-cli/blob/2dc0e0415ce83ca21e6d04ab26e038487881e0f8/src/azure-cli/azure/cli/command_modules/resource/tests/latest/recordings/test_resource_policy_version_default.yaml
- Lenguaje dominante
- Python
- Estrellas
- 4.7k
- Forks
- 3.5k
- Merge medio
- 4 d 14 h
- PR fusionados (30 d)
- 92
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni 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 Azure/azure-cli
-
customer-reported MySQL needs-triage Service Attention
Dificultad 1/5 Menos de una hora Aptitud para principiantes 70/100
Azure/azure-cli#34393 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
customer-reported Service Attention
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
Azure/azure-cli#34267 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Add support for cli completion in git bash for windowsPosiblemente ocupada @a0x1ab la tomó hace 23 días. Abiertocustomer-reported Service Attention
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Azure/azure-cli#34150 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
act-observability-squad Auto-Assign ContainerApp Output Service Attention
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/azure-cli#33149 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
-
act-codegen-extensibility-squad Auto-Assign Documentation MySQL Possible-Solution Service Attention Similar-Issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Azure/azure-cli#33009 · 5 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de Azure/azure-cli
Issues similares
-
Unknown stop ID in slow zone data crashes post formatting and skips the rest of that day's postsAbiertobackend bug tm-new-volunteer
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
transitmatters/mbta-slow-zone-bot#81 · 1 comentario ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
spacetelescope/rdmt-spire#49 ·
Los mantenedores suelen responder en 1 día
-
AI bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
AUTO-MAS-Project/AUTO-MAS#1960 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
btclib-org/btclib-wallet#872 ·
Los mantenedores suelen responder en 1 día