Skip to content

Instantly share code, notes, and snippets.

@joshuamckenty
Created February 29, 2016 18:20
Show Gist options
  • Save joshuamckenty/d4966eec8527140cb47e to your computer and use it in GitHub Desktop.
Save joshuamckenty/d4966eec8527140cb47e to your computer and use it in GitHub Desktop.
testing ui definition
{
"handler": "Microsoft.Compute.MultiVm",
"version": "0.0.1-preview",
"parameters": {
"basics": [{
"name": "storageAccountName",
"type": "Microsoft.Common.TextBox",
"label": "New Storage Account Name",
"defaultValue": "",
"constraints": {
"required": true,
"regex": "^[a-z0-9A-Z]{1,10}$",
"validationMessage": "Only letters and numbers are allowed, and the value must be 1-10 characters long."
}
}, {
"name": "vmName",
"type": "Microsoft.Common.TextBox",
"label": "Jumpbox VM Name",
"defaultValue": "jumpvm",
"constraints": {
"required": true,
"regex": "^[a-z0-9A-Z]{1,10}$",
"validationMessage": "Only letters and numbers are allowed, and the value must be 1-10 characters long."
}
}, {
"name": "adminUserName",
"type": "Microsoft.Compute.UserNameTextBox",
"label": "Admin User Name",
"defaultValue": "",
"toolTip": "",
"constraints": {
"required": true
},
"osPlatform": "Linux"
}, {
"name": "sshKeyData",
"type": "Microsoft.Common.TextBox",
"label": "SSHKeyData",
"defaultValue": "",
"constraints": {
"required": true
}
}, {
"name": "tenantID",
"type": "Microsoft.Common.TextBox",
"label": "Tenant ID",
"defaultValue": "",
"constraints": {
"required": true
}
}, {
"name": "clientID",
"type": "Microsoft.Common.TextBox",
"label": "Client ID",
"defaultValue": "",
"constraints": {
"required": true
}
}, {
"name": "clientSecret",
"type": "Microsoft.Common.PasswordBox",
"label": "Client Secret",
"constraints": {
"required": true
}
}, {
"name": "pivnetAPIToken",
"type": "Microsoft.Common.TextBox",
"label": "Pivotal Network Token",
"defaultValue": "",
"constraints": {
"required": true
}
}, {
"name": "deploymentSize",
"type": "Microsoft.Common.DropDown",
"label": "PCF Deployment size",
"defaultValue": "Small",
"toolTip": "",
"constraints": {
"allowedValues": [{
"label": "Small",
"value": "Small"
}, {
"label": "Medium",
"value": "Medium"
}, {
"label": "Large",
"value": "Large"
}]
}
}],
"steps": [],
"outputs": {
"storageAccountName": "[basics('storageAccountName')]",
"vmName": "[basics('vmName')]",
"adminUserName": "[basics('adminUserName')]",
"sshKeyData": "[basics('sshKeyData')]",
"tenantID": "[basics('tenantID')]",
"clientID": "[basics('clientID')]",
"clientSecret": "[basics('clientSecret')]",
"pivnetAPIToken": "[basics('pivnetAPIToken')]",
"deploymentSize": "[basics('deploymentSize')]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment