Skip to content

Commit cd4b081

Browse files
author
SDKAuto
committed
CodeGen from PR 23959 in Azure/azure-rest-api-specs
Merge b883d72e9caa3b0b62d1ee180d3024f1bffc0db6 into 46e158c5b731411e4e70631b8d1ec9d6d8228d7b
1 parent f5dce1d commit cd4b081

File tree

2 files changed

+79
-2
lines changed

2 files changed

+79
-2
lines changed

schemas/2022-08-01-preview/Microsoft.Resources.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,9 @@
328328
"description": "denySettings Mode."
329329
}
330330
},
331+
"required": [
332+
"mode"
333+
],
331334
"description": "Defines how resources deployed by the deployment stack are locked."
332335
},
333336
"DeploymentStackProperties": {

schemas/2022-09-01/Microsoft.Resources.json

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,28 @@
486486
},
487487
"description": "The debug setting."
488488
},
489+
"DeploymentParameter": {
490+
"type": "object",
491+
"properties": {
492+
"reference": {
493+
"oneOf": [
494+
{
495+
"$ref": "#/definitions/KeyVaultParameterReference"
496+
},
497+
{
498+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
499+
}
500+
],
501+
"description": "Azure Key Vault parameter reference."
502+
},
503+
"value": {
504+
"type": "object",
505+
"properties": {},
506+
"description": "Input value to the parameter ."
507+
}
508+
},
509+
"description": "Deployment parameter for the template."
510+
},
489511
"DeploymentProperties": {
490512
"type": "object",
491513
"properties": {
@@ -538,8 +560,18 @@
538560
"description": "Deployment on error behavior."
539561
},
540562
"parameters": {
541-
"type": "object",
542-
"properties": {},
563+
"oneOf": [
564+
{
565+
"type": "object",
566+
"additionalProperties": {
567+
"$ref": "#/definitions/DeploymentParameter"
568+
},
569+
"properties": {}
570+
},
571+
{
572+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
573+
}
574+
],
543575
"description": "Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string."
544576
},
545577
"parametersLink": {
@@ -597,6 +629,48 @@
597629
},
598630
"description": "Specifies whether template expressions are evaluated within the scope of the parent template or nested template."
599631
},
632+
"KeyVaultParameterReference": {
633+
"type": "object",
634+
"properties": {
635+
"keyVault": {
636+
"oneOf": [
637+
{
638+
"$ref": "#/definitions/KeyVaultReference"
639+
},
640+
{
641+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
642+
}
643+
],
644+
"description": "Azure Key Vault reference."
645+
},
646+
"secretName": {
647+
"type": "string",
648+
"description": "Azure Key Vault secret name."
649+
},
650+
"secretVersion": {
651+
"type": "string",
652+
"description": "Azure Key Vault secret version."
653+
}
654+
},
655+
"required": [
656+
"keyVault",
657+
"secretName"
658+
],
659+
"description": "Azure Key Vault parameter reference."
660+
},
661+
"KeyVaultReference": {
662+
"type": "object",
663+
"properties": {
664+
"id": {
665+
"type": "string",
666+
"description": "Azure Key Vault resource id."
667+
}
668+
},
669+
"required": [
670+
"id"
671+
],
672+
"description": "Azure Key Vault reference."
673+
},
600674
"OnErrorDeployment": {
601675
"type": "object",
602676
"properties": {

0 commit comments

Comments
 (0)