|
2 | 2 | "tests": [ |
3 | 3 | { |
4 | 4 | "name": "PolicyDefinition tests - valid minimal rule", |
5 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 5 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
6 | 6 | "json": { |
7 | 7 | "if": { |
8 | 8 | "field": "location", |
|
15 | 15 | }, |
16 | 16 | { |
17 | 17 | "name": "PolicyDefinition tests - valid complex rule", |
18 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 18 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
19 | 19 | "json": { |
20 | 20 | "if": { |
21 | 21 | "not": { |
|
58 | 58 | }, |
59 | 59 | { |
60 | 60 | "name": "PolicyDefinition tests - valid complex field count condition", |
61 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 61 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
62 | 62 | "json": { |
63 | 63 | "if": { |
64 | 64 | "allOf": [ |
|
95 | 95 | }, |
96 | 96 | { |
97 | 97 | "name": "PolicyDefinition tests - valid value count conditions", |
98 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 98 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
99 | 99 | "json": { |
100 | 100 | "if": { |
101 | 101 | "allOf": [ |
|
156 | 156 | }, |
157 | 157 | { |
158 | 158 | "name": "PolicyDefinition tests - valid append details", |
159 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 159 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
160 | 160 | "json": { |
161 | 161 | "if": { |
162 | 162 | "field": "tags", |
|
179 | 179 | }, |
180 | 180 | { |
181 | 181 | "name": "PolicyDefinition tests - minimal ifNotExists details", |
182 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 182 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
183 | 183 | "json": { |
184 | 184 | "if": { |
185 | 185 | "field": "tags", |
|
195 | 195 | }, |
196 | 196 | { |
197 | 197 | "name": "PolicyDefinition tests - complex ifNotExists details", |
198 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 198 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
199 | 199 | "json": { |
200 | 200 | "if": { |
201 | 201 | "field": "tags", |
|
207 | 207 | "type": "Microsoft.Compute/virtualMachines/extensions", |
208 | 208 | "resourceGroupName": "myRG", |
209 | 209 | "name": "myResource", |
| 210 | + "evaluationDelay": "AfterProvisioning", |
210 | 211 | "existenceCondition": { |
211 | 212 | "not": { |
212 | 213 | "field": "location", |
|
235 | 236 | }, |
236 | 237 | { |
237 | 238 | "name": "PolicyDefinition tests - invalid deployIfNotExists deployment template", |
238 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 239 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
239 | 240 | "expectedErrors": [ |
240 | 241 | { |
241 | 242 | "message": "Data does not match any schemas from \"oneOf\"", |
|
277 | 278 | }, |
278 | 279 | { |
279 | 280 | "name": "PolicyDefinition tests - complex deployIfNotExists deployment", |
280 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 281 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
281 | 282 | "json": { |
282 | 283 | "if": { |
283 | 284 | "allOf": [ |
|
519 | 520 | }, |
520 | 521 | { |
521 | 522 | "name": "PolicyDefinition tests - invalid ifNotExists existenceCondition", |
522 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 523 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
523 | 524 | "expectedErrors": [ |
524 | 525 | { |
525 | 526 | "message": "Data does not match any schemas from \"oneOf\"", |
|
543 | 544 | }, |
544 | 545 | { |
545 | 546 | "name": "PolicyDefinition tests - invalid ifNotExists existenceScope", |
546 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 547 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
547 | 548 | "expectedErrors": [ |
548 | 549 | { |
549 | 550 | "message": "Data does not match any schemas from \"oneOf\"", |
|
566 | 567 | }, |
567 | 568 | { |
568 | 569 | "name": "PolicyDefinition tests - invalid ifNotExists deploymentScope", |
569 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 570 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
570 | 571 | "expectedErrors": [ |
571 | 572 | { |
572 | 573 | "message": "Data does not match any schemas from \"oneOf\"", |
|
589 | 590 | }, |
590 | 591 | { |
591 | 592 | "name": "PolicyDefinition tests - missing append details", |
592 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 593 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
593 | 594 | "expectedErrors": [ |
594 | 595 | { |
595 | 596 | "message": "Data does not match any schemas from \"oneOf\"", |
|
609 | 610 | }, |
610 | 611 | { |
611 | 612 | "name": "PolicyDefinition tests - invalid effect", |
612 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 613 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
613 | 614 | "expectedErrors": [ |
614 | 615 | { |
615 | 616 | "message": "Data does not match any schemas from \"oneOf\"", |
|
643 | 644 | }, |
644 | 645 | { |
645 | 646 | "name": "PolicyDefinition tests - invalid field property", |
646 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 647 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
647 | 648 | "expectedErrors": [ |
648 | 649 | { |
649 | 650 | "message": "Data does not match any schemas from \"oneOf\"", |
|
662 | 663 | }, |
663 | 664 | { |
664 | 665 | "name": "PolicyDefinition tests - invalid operator", |
665 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 666 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
666 | 667 | "expectedErrors": [ |
667 | 668 | { |
668 | 669 | "message": "Data does not match any schemas from \"oneOf\"", |
|
681 | 682 | }, |
682 | 683 | { |
683 | 684 | "name": "PolicyDefinition tests - array for non-array operator", |
684 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 685 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
685 | 686 | "expectedErrors": [ |
686 | 687 | { |
687 | 688 | "message": "Data does not match any schemas from \"oneOf\"", |
|
700 | 701 | }, |
701 | 702 | { |
702 | 703 | "name": "PolicyDefinition tests - string for array operator", |
703 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 704 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
704 | 705 | "json": { |
705 | 706 | "if": { |
706 | 707 | "field": "location", |
|
713 | 714 | }, |
714 | 715 | { |
715 | 716 | "name": "PolicyDefinition tests - minimal modify details", |
716 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 717 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
717 | 718 | "json": { |
718 | 719 | "if": { |
719 | 720 | "field": "tags", |
|
734 | 735 | }, |
735 | 736 | { |
736 | 737 | "name": "PolicyDefinition tests - invalid modify details", |
737 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 738 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
738 | 739 | "json": { |
739 | 740 | "if": { |
740 | 741 | "field": "tags", |
|
791 | 792 | }, |
792 | 793 | { |
793 | 794 | "name": "PolicyDefinition tests - complex modify details", |
794 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 795 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
795 | 796 | "json": { |
796 | 797 | "if": { |
797 | 798 | "field": "tags", |
|
817 | 818 | }, |
818 | 819 | { |
819 | 820 | "name": "PolicyDefinition tests - valid manual details", |
820 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 821 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
821 | 822 | "json": { |
822 | 823 | "if": { |
823 | 824 | "field": "type", |
|
833 | 834 | }, |
834 | 835 | { |
835 | 836 | "name": "PolicyDefinition tests - no manual details", |
836 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 837 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
837 | 838 | "json": { |
838 | 839 | "if": { |
839 | 840 | "field": "type", |
|
846 | 847 | }, |
847 | 848 | { |
848 | 849 | "name": "PolicyDefinition tests - empty manual details", |
849 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 850 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
850 | 851 | "json": { |
851 | 852 | "if": { |
852 | 853 | "field": "type", |
|
860 | 861 | }, |
861 | 862 | { |
862 | 863 | "name": "PolicyDefinition tests - parameterized manual details", |
863 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 864 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
864 | 865 | "json": { |
865 | 866 | "if": { |
866 | 867 | "field": "type", |
|
876 | 877 | }, |
877 | 878 | { |
878 | 879 | "name": "PolicyDefinition tests - invalid manual details", |
879 | | - "definition": "https://schema.management.azure.com/schemas/2020-09-01/policyDefinition.json#", |
| 880 | + "definition": "https://schema.management.azure.com/schemas/2020-10-01/policyDefinition.json#", |
880 | 881 | "json": { |
881 | 882 | "if": { |
882 | 883 | "field": "type", |
|
0 commit comments