Skip to content

Commit a4968cd

Browse files
Merge pull request #1446 from Azure/antmarti/copy_fix
Replicate changes from #824 for other-scoped templates
2 parents 9cd73d3 + a60942f commit a4968cd

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
@@ -718,18 +718,32 @@
718718
"output": {
719719
"type": "object",
720720
"properties": {
721+
"condition": {
722+
"oneOf": [
723+
{
724+
"type": "boolean"
725+
},
726+
{
727+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
728+
}
729+
],
730+
"description": "Condition of the output"
731+
},
721732
"type": {
722733
"$ref": "#/definitions/parameterTypes",
723734
"description": "Type of output value"
724735
},
725736
"value": {
726737
"$ref": "#/definitions/parameterValueTypes",
727738
"description": "Value assigned for output"
739+
},
740+
"copy": {
741+
"$ref": "#/definitions/outputCopy",
742+
"description": "Output copy"
728743
}
729744
},
730745
"required": [
731-
"type",
732-
"value"
746+
"type"
733747
],
734748
"description": "Set of output parameters"
735749
},
@@ -785,6 +799,45 @@
785799
"secretName"
786800
],
787801
"additionalProperties": false
802+
},
803+
"outputCopy": {
804+
"type": "object",
805+
"properties": {
806+
"count": {
807+
"oneOf": [
808+
{
809+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
810+
},
811+
{
812+
"type": "integer"
813+
}
814+
],
815+
"description": "Count of the copy"
816+
},
817+
"input": {
818+
"anyOf": [
819+
{
820+
"type": [
821+
"string",
822+
"boolean",
823+
"integer",
824+
"array",
825+
"object",
826+
"null"
827+
]
828+
},
829+
{
830+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
831+
}
832+
],
833+
"description": "Input of the copy"
834+
}
835+
},
836+
"required": [
837+
"count",
838+
"input"
839+
],
840+
"description": "Output copy"
788841
}
789842
}
790843
}

schemas/2019-08-01/managementGroupDeploymentTemplate.json

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,18 +475,32 @@
475475
"output": {
476476
"type": "object",
477477
"properties": {
478+
"condition": {
479+
"oneOf": [
480+
{
481+
"type": "boolean"
482+
},
483+
{
484+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
485+
}
486+
],
487+
"description": "Condition of the output"
488+
},
478489
"type": {
479490
"$ref": "#/definitions/parameterTypes",
480491
"description": "Type of output value"
481492
},
482493
"value": {
483494
"$ref": "#/definitions/parameterValueTypes",
484495
"description": "Value assigned for output"
496+
},
497+
"copy": {
498+
"$ref": "#/definitions/outputCopy",
499+
"description": "Output copy"
485500
}
486501
},
487502
"required": [
488-
"type",
489-
"value"
503+
"type"
490504
],
491505
"description": "Set of output parameters"
492506
},
@@ -542,6 +556,45 @@
542556
"secretName"
543557
],
544558
"additionalProperties": false
559+
},
560+
"outputCopy": {
561+
"type": "object",
562+
"properties": {
563+
"count": {
564+
"oneOf": [
565+
{
566+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
567+
},
568+
{
569+
"type": "integer"
570+
}
571+
],
572+
"description": "Count of the copy"
573+
},
574+
"input": {
575+
"anyOf": [
576+
{
577+
"type": [
578+
"string",
579+
"boolean",
580+
"integer",
581+
"array",
582+
"object",
583+
"null"
584+
]
585+
},
586+
{
587+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
588+
}
589+
],
590+
"description": "Input of the copy"
591+
}
592+
},
593+
"required": [
594+
"count",
595+
"input"
596+
],
597+
"description": "Output copy"
545598
}
546599
}
547600
}

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)