Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
102 lines (102 sloc) 4.09 KB
{
"handler": "Microsoft.Compute.MultiVm",
"version": "0.1.2-preview",
"parameters": {
"basics": [
{}
],
"steps": [
{
"name": "credentialsConfig",
"label": "Bastion VM Credential",
"subLabel": {
"preValidation": "Configure the VM credentials",
"postValidation": "Done"
},
"bladeTitle": "Credential",
"elements": [
{
"name": "adminUsername",
"type": "Microsoft.Compute.UserNameTextBox",
"label": "User name",
"toolTip": "Admin username for the virtual machine",
"osPlatform": "Windows",
"constraints": {
"required": true
}
},
{
"name": "adminPassword",
"type": "Microsoft.Compute.CredentialsCombo",
"label": {
"password": "Password",
"confirmPassword": "Confirm password"
},
"toolTip": {
"password": "Admin password for the virtual machine"
},
"osPlatform": "Windows",
"constraints": {
"customPasswordRegex": "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{8,}$",
"customValidationMessage": "The password must contain at least 8 characters",
"required": true
}
}
]
},
{
"name": "vmConfig",
"label": "Virtual Machine settings",
"subLabel": {
"preValidation": "Configure the virtual machine settings",
"postValidation": "Done"
},
"bladeTitle": "VM Settings",
"elements": [
{
"name": "vmNamePrefix",
"type": "Microsoft.Common.TextBox",
"label": "Virtual Machine Name",
"toolTip": "Virtual machine name for jumpbox",
"defaultValue": "",
"constraints": {
"required": true,
"regex": "[a-z][a-z0-9-]{1,15}[a-z0-9]$",
"validationMessage": "Must be 1-15 characters."
}
},
{
"name": "vmSize",
"type": "Microsoft.Compute.SizeSelector",
"label": "Virtual machine size",
"toolTip": "The size of the virtual machine",
"recommendedSizes": [
"Standard_A2_v2",
"Standard_D4_v3",
"Standard_D8_v3",
"Standard_A2_v2",
"Standard_D2_v3"
],
"constraints": {
"allowedSizes": [
"Standard_A2_v2",
"Standard_D4_v3",
"Standard_D8_v3",
"Standard_A2_v2",
"Standard_D2_v3"
]
},
"osPlatform": "Windows",
"count": 1
}
]
}
],
"outputs": {
"adminUsername": "[steps('credentialsConfig').adminUsername]",
"vmNamePrefix": "[steps('vmConfig').vmNamePrefix]",
"adminPassword": "[steps('credentialsConfig').adminPassword.password]",
"Expiration": "[addHours(utcNow(), 168)]"
}
}
}
You can’t perform that action at this time.