Skip to content

Commit a60942f

Browse files
Replicate changes from #824 for other-scoped templates
1 parent 4d08149 commit a60942f

File tree

3 files changed

+165
-6
lines changed

3 files changed

+165
-6
lines changed

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,18 +649,32 @@
649649
"output": {
650650
"type": "object",
651651
"properties": {
652+
"condition": {
653+
"oneOf": [
654+
{
655+
"type": "boolean"
656+
},
657+
{
658+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
659+
}
660+
],
661+
"description": "Condition of the output"
662+
},
652663
"type": {
653664
"$ref": "#/definitions/parameterTypes",
654665
"description": "Type of output value"
655666
},
656667
"value": {
657668
"$ref": "#/definitions/parameterValueTypes",
658669
"description": "Value assigned for output"
670+
},
671+
"copy": {
672+
"$ref": "#/definitions/outputCopy",
673+
"description": "Output copy"
659674
}
660675
},
661676
"required": [
662-
"type",
663-
"value"
677+
"type"
664678
],
665679
"description": "Set of output parameters"
666680
},
@@ -716,6 +730,45 @@
716730
"secretName"
717731
],
718732
"additionalProperties": false
733+
},
734+
"outputCopy": {
735+
"type": "object",
736+
"properties": {
737+
"count": {
738+
"oneOf": [
739+
{
740+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
741+
},
742+
{
743+
"type": "integer"
744+
}
745+
],
746+
"description": "Count of the copy"
747+
},
748+
"input": {
749+
"anyOf": [
750+
{
751+
"type": [
752+
"string",
753+
"boolean",
754+
"integer",
755+
"array",
756+
"object",
757+
"null"
758+
]
759+
},
760+
{
761+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
762+
}
763+
],
764+
"description": "Input of the copy"
765+
}
766+
},
767+
"required": [
768+
"count",
769+
"input"
770+
],
771+
"description": "Output copy"
719772
}
720773
}
721774
}

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,18 +472,32 @@
472472
"output": {
473473
"type": "object",
474474
"properties": {
475+
"condition": {
476+
"oneOf": [
477+
{
478+
"type": "boolean"
479+
},
480+
{
481+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
482+
}
483+
],
484+
"description": "Condition of the output"
485+
},
475486
"type": {
476487
"$ref": "#/definitions/parameterTypes",
477488
"description": "Type of output value"
478489
},
479490
"value": {
480491
"$ref": "#/definitions/parameterValueTypes",
481492
"description": "Value assigned for output"
493+
},
494+
"copy": {
495+
"$ref": "#/definitions/outputCopy",
496+
"description": "Output copy"
482497
}
483498
},
484499
"required": [
485-
"type",
486-
"value"
500+
"type"
487501
],
488502
"description": "Set of output parameters"
489503
},
@@ -539,6 +553,45 @@
539553
"secretName"
540554
],
541555
"additionalProperties": false
556+
},
557+
"outputCopy": {
558+
"type": "object",
559+
"properties": {
560+
"count": {
561+
"oneOf": [
562+
{
563+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
564+
},
565+
{
566+
"type": "integer"
567+
}
568+
],
569+
"description": "Count of the copy"
570+
},
571+
"input": {
572+
"anyOf": [
573+
{
574+
"type": [
575+
"string",
576+
"boolean",
577+
"integer",
578+
"array",
579+
"object",
580+
"null"
581+
]
582+
},
583+
{
584+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
585+
}
586+
],
587+
"description": "Input of the copy"
588+
}
589+
},
590+
"required": [
591+
"count",
592+
"input"
593+
],
594+
"description": "Output copy"
542595
}
543596
}
544597
}

schemas/2019-08-01/tenantDeploymentTemplate.json

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,18 +592,32 @@
592592
"output": {
593593
"type": "object",
594594
"properties": {
595+
"condition": {
596+
"oneOf": [
597+
{
598+
"type": "boolean"
599+
},
600+
{
601+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
602+
}
603+
],
604+
"description": "Condition of the output"
605+
},
595606
"type": {
596607
"$ref": "#/definitions/parameterTypes",
597608
"description": "Type of output value"
598609
},
599610
"value": {
600611
"$ref": "#/definitions/parameterValueTypes",
601612
"description": "Value assigned for output"
613+
},
614+
"copy": {
615+
"$ref": "#/definitions/outputCopy",
616+
"description": "Output copy"
602617
}
603618
},
604619
"required": [
605-
"type",
606-
"value"
620+
"type"
607621
],
608622
"description": "Set of output parameters"
609623
},
@@ -659,6 +673,45 @@
659673
"secretName"
660674
],
661675
"additionalProperties": false
676+
},
677+
"outputCopy": {
678+
"type": "object",
679+
"properties": {
680+
"count": {
681+
"oneOf": [
682+
{
683+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
684+
},
685+
{
686+
"type": "integer"
687+
}
688+
],
689+
"description": "Count of the copy"
690+
},
691+
"input": {
692+
"anyOf": [
693+
{
694+
"type": [
695+
"string",
696+
"boolean",
697+
"integer",
698+
"array",
699+
"object",
700+
"null"
701+
]
702+
},
703+
{
704+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
705+
}
706+
],
707+
"description": "Input of the copy"
708+
}
709+
},
710+
"required": [
711+
"count",
712+
"input"
713+
],
714+
"description": "Output copy"
662715
}
663716
}
664717
}

0 commit comments

Comments
 (0)