Created
March 2, 2020 04:07
-
-
Save Azadehkhojandi/fb25a8c745b9c135b824803e7f2310d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | |
"handler": "Microsoft.Azure.CreateUIDef", | |
"version": "0.1.2-preview", | |
"parameters": { | |
"basics": [ | |
{} | |
], | |
"steps": [ | |
{ | |
"name": "storageConfig", | |
"label": "Storage settings", | |
"subLabel": { | |
"preValidation": "Configure the infrastructure settings", | |
"postValidation": "Done" | |
}, | |
"bladeTitle": "Storage settings", | |
"elements": [ | |
{ | |
"name": "storageAccounts", | |
"type": "Microsoft.Storage.MultiStorageAccountCombo", | |
"label": { | |
"prefix": "Storage account name prefix", | |
"type": "Storage account type" | |
}, | |
"defaultValue": { | |
"type": "Standard_LRS" | |
}, | |
"constraints": { | |
"allowedTypes": [ | |
"Premium_LRS", | |
"Standard_LRS", | |
"Standard_GRS" | |
] | |
} | |
} | |
] | |
}, | |
{ | |
"name": "azfuncConfig", | |
"label": "AzureFunc settings", | |
"subLabel": { | |
"preValidation": "Configure the infrastructure settings", | |
"postValidation": "Done" | |
}, | |
"bladeTitle": "AzureFunc settings", | |
"elements": [ | |
{ | |
"name": "storageAccounts", | |
"type": "Microsoft.Storage.MultiStorageAccountCombo", | |
"label": { | |
"prefix": "Storage account name", | |
"type": "Storage account type" | |
}, | |
"defaultValue": { | |
"type": "Standard_LRS" | |
}, | |
"constraints": { | |
"allowedTypes": [ | |
"Premium_LRS", | |
"Standard_LRS", | |
"Standard_GRS" | |
] | |
} | |
}, | |
{ | |
"name": "runtime", | |
"type": "Microsoft.Common.DropDown", | |
"label": "The language worker runtime", | |
"defaultValue": "node", | |
"toolTip": "The language worker runtime to load in the function app.", | |
"constraints": { | |
"allowedValues": [ | |
{ | |
"label": "node", | |
"value": "node" | |
}, | |
{ | |
"label": "dotnet", | |
"value": "dotnet" | |
}, | |
{ | |
"label": "java", | |
"value": "java" | |
} | |
], | |
"required": true | |
}, | |
"visible": true | |
}, | |
{ | |
"name": "appName", | |
"type": "Microsoft.Common.TextBox", | |
"label": "function app name", | |
"defaultValue": "myfuncapp", | |
"toolTip": "The name of the function app that you wish to create.", | |
"constraints": { | |
"required": true, | |
"regex": "^[a-z0-9A-Z]{1,30}$", | |
"validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-30 characters long." | |
}, | |
"visible": true | |
} | |
] | |
} | |
], | |
"outputs": { | |
"storageAccountNamePrefix": "[steps('storageConfig').storageAccounts.prefix]", | |
"storageAccountType": "[steps('storageConfig').storageAccounts.type]", | |
"location": "[location()]", | |
"azfunc_appName": "[steps('azfuncConfig').appName.value]", | |
"azfunc_storageAccountType": "[steps('azfuncConfig').storageAccounts.type]", | |
"azfunc_location": "[location()]", | |
"azfunc_runtime": "[steps('azfuncConfig').runtime.value]" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment