SQL Edge deployment using Azure IoT hub (#11202)

* Azure IoT deployment type

* more updates

* organize fields

* a few more improvements

* resolve merge issues

* new rg improvement

* fix tests

* comments 1

* comments 2
This commit is contained in:
Alan Ren
2020-07-07 10:36:26 -07:00
committed by GitHub
parent 3084867d7e
commit 3cf48fb207
9 changed files with 798 additions and 38 deletions

View File

@@ -41,6 +41,10 @@
{
"name": "remote",
"displayName": "%sql-edge-remote-display-name%"
},
{
"name": "azure",
"displayName": "%sql-edge-azure-display-name%"
}
]
}
@@ -48,7 +52,7 @@
"providers": [
{
"dialog": {
"notebook": "%sql-edge-local-notebook%",
"notebook": "./notebooks/edge/deploy-sql-edge-local.ipynb",
"title": "%sql-edge-local-title%",
"name": "sql-edge-local-dialog",
"tabs": [
@@ -141,7 +145,7 @@
},
{
"dialog": {
"notebook": "%sql-edge-remote-notebook%",
"notebook": "./notebooks/edge/deploy-sql-edge-remote.ipynb",
"title": "%sql-edge-remote-title%",
"name": "sql-edge-remote-dialog",
"tabs": [
@@ -255,6 +259,132 @@
},
"requiredTools": [],
"when": "type=remote"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-azure.ipynb",
"title": "%sql-edge-azure-title%",
"name": "sql-edge-azure-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "%azure-info-section-title%",
"collapsible": true,
"fields": [
{
"subscriptionVariableName": "AZDATA_NB_VAR_ASDE_SUBSCRIPTIONID",
"resourceGroupVariableName": "AZDATA_NB_VAR_ASDE_RESOURCEGROUP",
"type": "azure_account",
"required": true,
"allowNewResourceGroup": true,
"newResourceGroupFlagVariableName": "AZDATA_NB_VAR_ASDE_NEW_RESOURCEGROUP",
"newResourceGroupNameVariableName": "AZDATA_NB_VAR_ASDE_NEW_RESOURCEGROUP_NAME"
},
{
"type": "azure_locations",
"label": "%azure_location%",
"defaultValue": "westus",
"required": true,
"locationVariableName": "AZDATA_NB_VAR_ASDE_AZURE_LOCATION",
"displayLocationVariableName": "AZDATA_NB_VAR_ASDE_AZURE_LOCATION_TEXT",
"locations": [
"australiaeast",
"australiasoutheast",
"brazilsouth",
"canadacentral",
"canadaeast",
"centralindia",
"centralus",
"eastasia",
"eastus",
"eastus2",
"francecentral",
"japaneast",
"japanwest",
"koreacentral",
"koreasouth",
"northcentralus",
"northeurope",
"southcentralus",
"southindia",
"southeastasia",
"uksouth",
"ukwest",
"westcentralus",
"westeurope",
"westus",
"westus2"
]
},
{
"label": "%iot_device_id%",
"variableName": "AZDATA_NB_VAR_ASDE_DEVICE_ID",
"type": "text",
"required": true
},
{
"label": "%vm_admin%",
"variableName": "AZDATA_NB_VAR_ASDE_VM_ADMIN",
"type": "text",
"required": true
},
{
"label": "%vm_password%",
"variableName": "AZDATA_NB_VAR_ASDE_VM_PASSWORD",
"type": "password",
"confirmationRequired": true,
"confirmationLabel": "%vm_password_confirm%",
"required": true
}
]
},
{
"title": "%sqlserver-info-section-title%",
"collapsible": true,
"fields": [
{
"label": "%docker-sql-password-field%",
"variableName": "AZDATA_NB_VAR_SA_PASSWORD",
"type": "sql_password",
"userName": "sa",
"confirmationRequired": true,
"confirmationLabel": "%docker-confirm-sql-password-field%",
"defaultValue": "",
"required": true
},
{
"label": "%docker-sql-port-field%",
"variableName": "AZDATA_NB_VAR_ASDE_SQL_PORT",
"type": "number",
"defaultValue": 31433,
"required": true
},
{
"label": "%dacpac_path%",
"variableName": "AZDATA_NB_VAR_ASDE_DACPAC_PATH",
"type": "file_picker",
"required": false,
"filter": {
"displayName": "%dacpac-zip-files%",
"fileTypes": [
"zip"
]
}
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "azure-cli"
}
],
"when": "type=azure"
}
],
"agreement": {