fix(policy): correct AKSIngressHttpsOnlyEffect casing in Enforce-EncryptTransit_20241211 (#4131, #4189) - #2191
Merged
Qi Zhang (Zhangqi910) merged 2 commits intoAug 27, 2026
Conversation
…yptTransit_20241211 (#4131, #4189) AKSIngressHttpsOnlyEffect used lowercase values (deny/audit/disabled) while the referenced built-in 1a5b4dca-0b6f-4cf5-907c-56316bc1bf3d now resolves to v9.0.0, which is case-sensitive and requires PascalCase (Audit/Deny/Disabled) - causing InvalidPolicyParameters on deployment. Aligns the parameter with every other effect parameter in the initiative, pins definitionVersion to 9.*.*, bumps metadata.version to 1.2.3, and regenerates initiatives.json.
Shaik Naseeruddin (NaseerDevops-1994)
marked this pull request as ready for review
August 24, 2026 11:05
Contributor
Author
|
@microsoft-github-policy-service agree company="Microsoft" |
Shaik Naseeruddin (NaseerDevops-1994)
requested a review
from Qi Zhang (Zhangqi910)
August 24, 2026 11:26
…ypttransit-aks-casing # Conflicts: # eslzArm/managementGroupTemplates/policyDefinitions/initiatives.json
Qi Zhang (Zhangqi910)
approved these changes
Aug 27, 2026
Akshay Rohilla (akshayrohilla)
approved these changes
Aug 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview/Summary
Fixes the parameter casing on
AKSIngressHttpsOnlyEffectin theEnforce-EncryptTransit_20241211policy set definition.The parameter used lowercase values (
deny/audit/disabled) while every other effect parameter in the same initiative uses PascalCase. Built-in policy1a5b4dca-0b6f-4cf5-907c-56316bc1bf3dv9.0.0 dropped the lowercase aliases and now accepts onlyAudit/Deny/Disabled(v8.1.0/v8.2.0 still tolerate both cases).When this reference resolves to v9.0.0, ARM rejects the lowercase default at initiative parameterization with
InvalidPolicyParameters … using version '9.0.0'. That happens for deployments where the reference is unpinned and floats to the latest built-in — which was the case before thedefinitionVersion: "8.*.*"pin was introduced (Policy Refresh Q2 FY25). The current8.*.*pin mitigates the error by resolving to v8.2.0 (still lowercase-tolerant), but it anchors the initiative to a superseded major and leaves the casing inconsistent with every other effect parameter. Portal, Bicep, and Terraform all consume this shared source.Resolves #4131 and #4189.
This PR fixes/adds/changes/removes
AKSIngressHttpsOnlyEffectdefaultValuetoDenyandallowedValuesto["Audit", "Deny", "Disabled"](PascalCase), aligning it with every other effect parameter and with built-in1a5b4dcav9.0.0.definitionVersionfrom8.*.*to9.*.*.metadata.version1.2.2→1.2.3and regenerateseslzArm/managementGroupTemplates/policyDefinitions/initiatives.json.Breaking Changes
Deny); only the casing/version is corrected so the initiative can be created and assigned successfully. The deprecatedEnforce-EncryptTransit_20240509is intentionally left unchanged.Testing Evidence
Validated on Azure Public by deploying the policy set definition via ARM (
az deployment sub create) into a test subscription, isolating the parameter casing under the referenced built-in policy version9.0.0:AKSIngressHttpsOnlyEffectdefaultdefinitionVersionmain(pin mitigates)deny(lowercase)8.*.*deny(lowercase)9.*.*InvalidPolicyParameters(v9.0.0)Deny(PascalCase)9.*.*The failing deployment returned the exact error reported by customers:
Screenshots of the failed (before) and succeeded (after) deployments:
Before —
pr4189-arm-buggy2(lowercasedeny,9.*.*) — deployment failed withInvalidPolicyParameters:After —
pr4189-arm-fixed(PascalCaseDeny,9.*.*) — deployment succeeded:Testing URLs
Azure Public
As part of this Pull Request I have
mainbranchbicep buildto regenerateinitiatives.json, bumpedmetadata.version).