Files
azuredatastudio/extensions/asde-deployment/package.json
Alan Ren 1e49e47a37 ASDE updates (#12134)
* add storage account cleanup and other misc stuff

* force load

* cell -> code cell
2020-09-03 22:12:10 -07:00

586 lines
23 KiB
JSON

{
"name": "asde-deployment",
"displayName": "%extension-displayName%",
"description": "%extension-description%",
"version": "0.1.0",
"publisher": "Microsoft",
"preview": true,
"license": "https://raw.githubusercontent.com/Microsoft/azuredatastudio/main/LICENSE.txt",
"icon": "images/extension.png",
"aiKey": "AIF-444c3af9-8e69-4462-ab49-4191e6ad1916",
"engines": {
"vscode": "*",
"azdata": "*"
},
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/azuredatastudio.git"
},
"forceReload": true,
"contributes": {
"resourceDeploymentTypes": [
{
"name": "sql-edge",
"displayName": "%resource-type-sql-edge-display-name%",
"description": "%resource-type-sql-edge-description%",
"platforms": "*",
"icon": {
"light": "./images/sqldb_edge.svg",
"dark": "./images/sqldb_edge_inverse.svg"
},
"options": [
{
"name": "type",
"displayName": "%sql-edge-type-display-name%",
"values": [
{
"name": "local",
"displayName": "%sql-edge-local-display-name%"
},
{
"name": "remote",
"displayName": "%sql-edge-remote-display-name%"
},
{
"name": "azure-create-new",
"displayName": "%sql-edge-azure-display-name%"
},
{
"name": "azure-single-device",
"displayName": "%sql-edge-azure-single-device-display-name%"
},
{
"name": "azure-multi-device",
"displayName": "%sql-edge-azure-multi-device-display-name%"
}
]
}
],
"providers": [
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-local.ipynb",
"title": "%sql-edge-local-title%",
"name": "sql-edge-local-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "",
"fields": [
{
"label": "%docker-container-name-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_CONTAINER_NAME",
"type": "datetime_text",
"defaultValue": "SQLEDGE-",
"required": true
},
{
"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_DOCKER_PORT",
"type": "number",
"defaultValue": "1433",
"required": true,
"min": 1,
"max": 65535
}
]
},
{
"title": "%docker-settings-section-title%",
"collapsible": true,
"collapsed": true,
"fields": [
{
"label": "%docker-registry-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REGISTRY",
"type": "text",
"defaultValue": "mcr.microsoft.com",
"required": true
},
{
"label": "%docker-repository-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REPOSITORY",
"type": "text",
"defaultValue": "azure-sql-edge-developer",
"required": true
},
{
"label": "%docker-imagetag-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_IMAGETAG",
"type": "text",
"defaultValue": "latest",
"required": true
},
{
"label": "%docker-username-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_USERNAME",
"type": "text",
"defaultValue": "",
"required": false
},
{
"label": "%docker-password-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_PASSWORD",
"type": "password",
"defaultValue": "",
"required": false
}
]
}
]
}
]
},
"requiredTools": [
{
"name": "docker"
}
],
"when": "type=local"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-remote.ipynb",
"title": "%sql-edge-remote-title%",
"name": "sql-edge-remote-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "",
"fields": [
{
"label": "%docker-container-name-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_CONTAINER_NAME",
"type": "datetime_text",
"defaultValue": "SQLEDGE-",
"required": true
},
{
"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_DOCKER_PORT",
"type": "number",
"defaultValue": "1433",
"required": true,
"min": 1,
"max": 65535
}
]
},
{
"title": "%remote-info-section-title%",
"collapsible": true,
"collapsed": false,
"fields": [
{
"label": "%edge-remote-target-field%",
"variableName": "AZDATA_NB_VAR_SSH_TARGET",
"type": "text",
"defaultValue": "",
"required": true
},
{
"label": "%edge-remote-username-field%",
"variableName": "AZDATA_NB_VAR_SSH_USERNAME",
"type": "text",
"defaultValue": "",
"required": true
},
{
"label": "%edge-remote-password-field%",
"variableName": "AZDATA_NB_VAR_SSH_PASSWORD",
"type": "password",
"defaultValue": "",
"required": true
}
]
},
{
"title": "%docker-settings-section-title%",
"collapsible": true,
"collapsed": true,
"fields": [
{
"label": "%docker-registry-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REGISTRY",
"type": "text",
"defaultValue": "mcr.microsoft.com",
"required": true
},
{
"label": "%docker-repository-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_REPOSITORY",
"type": "text",
"defaultValue": "azure-sql-edge-developer",
"required": true
},
{
"label": "%docker-imagetag-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_IMAGETAG",
"type": "text",
"defaultValue": "latest",
"required": true
},
{
"label": "%docker-username-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_USERNAME",
"type": "text",
"defaultValue": "",
"required": false
},
{
"label": "%docker-password-field%",
"variableName": "AZDATA_NB_VAR_DOCKER_PASSWORD",
"type": "password",
"defaultValue": "",
"required": false
}
]
}
]
}
]
},
"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": "%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",
"version": "2.9.1"
}
],
"when": "type=azure-create-new"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-single-device.ipynb",
"title": "%sql-edge-azure-single-device-title%",
"name": "sql-edge-azure-single-device-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "%azure-info-section-title%",
"collapsible": true,
"fields": [
{
"type": "azure_account",
"subscriptionVariableName": "AZDATA_NB_VAR_ASDE_SUBSCRIPTIONID",
"resourceGroupVariableName": "AZDATA_NB_VAR_ASDE_RESOURCEGROUP",
"required": true
},
{
"label": "%iot-hub-name%",
"variableName": "AZDATA_NB_VAR_ASDE_HUBNAME",
"type": "text",
"required": true
},
{
"label": "%device-id%",
"variableName": "AZDATA_NB_VAR_ASDE_DEVICE_ID",
"type": "text",
"required": true
},
{
"label": "%device-ip-address%",
"variableName": "AZDATA_NB_VAR_ASDE_DEVICE_IP_ADDRESS",
"type": "text",
"description": "%device-ip-address-description%",
"required": false
}
]
},
{
"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",
"version": "2.9.1"
}
],
"when": "type=azure-single-device"
},
{
"dialog": {
"notebook": "./notebooks/edge/deploy-sql-edge-multi-device.ipynb",
"title": "%sql-edge-azure-multi-device-title%",
"name": "sql-edge-azure-multi-device-dialog",
"tabs": [
{
"title": "",
"sections": [
{
"title": "%azure-info-section-title%",
"collapsible": true,
"fields": [
{
"type": "azure_account",
"subscriptionVariableName": "AZDATA_NB_VAR_ASDE_SUBSCRIPTIONID",
"resourceGroupVariableName": "AZDATA_NB_VAR_ASDE_RESOURCEGROUP",
"required": true
},
{
"label": "%iot-hub-name%",
"variableName": "AZDATA_NB_VAR_ASDE_HUBNAME",
"type": "text",
"required": true
},
{
"label": "%device-target-condition%",
"variableName": "AZDATA_NB_VAR_ASDE_TARGET_CONDITION",
"type": "text",
"required": true
},
{
"type": "readonly_text",
"label": "{0}",
"links": [
{
"text": "%device-target-condition-learn-more%",
"url": "https://docs.microsoft.com/azure/iot-edge/module-deployment-monitoring#target-condition"
}
]
}
]
},
{
"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",
"version": "2.9.1"
}
],
"when": "type=azure-multi-device"
}
],
"agreement": {
"template": "%edge-agreement%",
"links": [
{
"text": "%microsoft-privacy-statement%",
"url": "https://go.microsoft.com/fwlink/?LinkId=853010"
},
{
"text": "%edge-eula%",
"url": "https://go.microsoft.com/fwlink/?linkid=2128283"
}
]
}
}
]
}
}