Added dynamic options for SQL MIAA Deployment Wizard and updated checkbox field (#17119)

* Dynamic enablement

* Added new package.json field for dynamic options and corresponding functions and classes.

* Enabled dynamic options non-generalized and changed formatting of checkbox to have label on the left.

* Added setOptions under InputComponentInfo for generalization, comments under checkbox component, and changed Replicas to High Availability to reflect parity in portal.

* fix unit test

Co-authored-by: Candice Ye <canye@microsoft.com>
Co-authored-by: Alan Ren <alanren@microsoft.com>
This commit is contained in:
Candice Ye
2021-09-24 16:35:56 -07:00
committed by GitHub
parent 207254fa6c
commit b23ee567de
4 changed files with 131 additions and 10 deletions

View File

@@ -989,11 +989,24 @@
"variableName": "AZDATA_NB_VAR_SQL_REPLICAS",
"options": {
"values": [
"1",
"3"
"%arc.sql.two.replicas%",
"%arc.sql.three.replicas%"
],
"defaultValue": "1",
"defaultValue": "%arc.sql.two.replicas%",
"optionsType": "radio"
},
"dynamicOptions":
{
"target": "AZDATA_NB_VAR_SQL_SERVICE_TIER",
"alternates": [
{
"selection": "%arc.sql.service.tier.general.purpose%",
"alternateValues": [
"%arc.sql.one.replica%"
],
"defaultValue": "%arc.sql.one.replica%"
}
]
}
},
{
@@ -1069,6 +1082,29 @@
"description": "%memory.limit.greater.than.or.equal.to.requested.memory%"
}
]
},
{
"type": "options",
"label": "%arc.sql.service.tier.label%",
"description": "%arc.sql.service.tier.description%",
"required": true,
"variableName": "AZDATA_NB_VAR_SQL_SERVICE_TIER",
"options": {
"values": [
"%arc.sql.service.tier.business.critical%",
"%arc.sql.service.tier.general.purpose%"
],
"defaultValue": "%arc.sql.service.tier.business.critical%",
"optionsType": "radio"
}
},
{
"type": "checkbox",
"label": "%arc.sql.dev.use.label%",
"description": "%arc.sql.dev.use.description%",
"defaultValue": "false",
"variableName": "AZDATA_NB_VAR_SQL_DEV_USE",
"required": true
}
]
}