Commit e2e7ba3
Fix #31965: Force recreation when policy definition parameter names change
The CustomizeDiff logic previously only handled parameter count decreases,
but did not detect parameter renames (where count stays the same but names
change). Azure API does not allow parameter name changes during update.
This change iterates through old parameter names and forces recreation if
any are missing from the new parameters, handling both removal and rename.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 9c25dcb commit e2e7ba3
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments