Last active
November 22, 2017 17:59
-
-
Save maurelio1234/eceed8a491579ea94b69838cc5cf3d38 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": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"location": { | |
"type": "String", | |
"defaultValue": "eastus" | |
}, | |
"resourceGroupName": { | |
"type": "String", | |
"defaultValue": "FormationXComponent" | |
}, | |
"virtualMachineName": { | |
"type": "String", | |
"defaultValue": "master01" | |
}, | |
"virtualMachineSize": { | |
"type": "String", | |
"defaultValue": "Large" | |
}, | |
"adminUsername": { | |
"type": "String", | |
"defaultValue": "xcomponent" | |
}, | |
"storageAccountName": { | |
"type": "String", | |
"defaultValue": "rsportalvhds889n295dq78d" | |
}, | |
"domainName": { | |
"type": "String", | |
"defaultValue": "formation-master01" | |
}, | |
"virtualNetworkName": { | |
"type": "String", | |
"defaultValue": "FormationXComponent" | |
}, | |
"adminPassword": { | |
"type": "SecureString", | |
"defaultValue": "XComponent1" | |
}, | |
"diagnosticsStorageAccountName": { | |
"type": "String", | |
"defaultValue": "rsportalvhds889n295dq78d" | |
}, | |
"diagnosticsStorageAccountId": { | |
"type": "String", | |
"defaultValue": "/subscriptions/4e47036e-f8d5-43a7-8fa8-ca7d32a44fab/resourceGroups/FormationXComponent/providers/Microsoft.ClassicStorage/storageAccounts/rsportalvhds889n295dq78d" | |
}, | |
"subnetName": { | |
"type": "String", | |
"defaultValue": "default" | |
} | |
}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"type": "Microsoft.ClassicCompute/virtualMachines", | |
"name": "[parameters('virtualMachineName')]", | |
"apiVersion": "2017-04-01", | |
"location": "eastus", | |
"properties": { | |
"storageProfile": { | |
"userImage": { | |
"type": "Microsoft.ClassicStorage/storageAccounts/vmimages", | |
"id": "/subscriptions/4e47036e-f8d5-43a7-8fa8-ca7d32a44fab/resourceGroups/FormationXComponent/providers/Microsoft.ClassicStorage/storageAccounts/rsportalvhds889n295dq78d/vmImages/FormationXComponentCour231117-V1", | |
"operatingSystemDisk": { | |
"osState": "Specialized", | |
"diskName": "FormationXComponentCour231117-V1-os-2017-11-22-453E2771", | |
"caching": "ReadWrite", | |
"operatingSystem": "Windows", | |
"ioType": "Standard", | |
"diskSize": 128, | |
"vhdUri": "https://rsportalvhds889n295dq78d.blob.core.windows.net/vhds/FormationXComponentCour231117-V1-os-2017-11-22-453E2771.vhd", | |
"storageAccount": { | |
"id": "/subscriptions/4e47036e-f8d5-43a7-8fa8-ca7d32a44fab/resourceGroups/FormationXComponent/providers/Microsoft.ClassicStorage/storageAccounts/rsportalvhds889n295dq78d", | |
"name": "rsportalvhds889n295dq78d", | |
"type": "Microsoft.ClassicStorage/storageAccounts" | |
}, | |
"lun": null, | |
"inUse": null, | |
"label": null, | |
"sourceImageName": null, | |
"remoteSourceImageLink": null | |
}, | |
"dataDisks": [] | |
} | |
}, | |
"hardwareProfile": { | |
"platformGuestAgent": "true", | |
"size": "[parameters('virtualMachineSize')]" | |
}, | |
"domainName": { | |
"id": "[resourceId(parameters('resourceGroupName'), 'Microsoft.ClassicCompute/domainNames', parameters('domainName'))]" | |
}, | |
"networkProfile": { | |
"virtualNetwork": { | |
"id": "[resourceId('FormationXComponent','Microsoft.ClassicNetwork/virtualNetworks', parameters('virtualNetworkName'))]", | |
"subnetNames": [ | |
"[parameters('subnetName')]" | |
] | |
}, | |
"inputEndpoints": [ | |
{ | |
"enableDirectServerReturn": "False", | |
"endpointName": "RDP TCP", | |
"privatePort": 3389, | |
"publicPort": 3389, | |
"protocol": "tcp" | |
}, | |
{ | |
"enableDirectServerReturn": "False", | |
"endpointName": "RDP UDP", | |
"privatePort": 3389, | |
"publicPort": 3389, | |
"protocol": "udp" | |
} | |
] | |
}, | |
"debugProfile": { | |
"bootDiagnosticsEnabled": "true" | |
} | |
}, | |
"dependsOn": [ | |
"[concat('Microsoft.ClassicCompute/domainNames/', parameters('domainName'))]" | |
] | |
}, | |
{ | |
"type": "Microsoft.ClassicCompute/domainNames", | |
"name": "[parameters('domainName')]", | |
"apiVersion": "2016-11-01", | |
"location": "[parameters('location')]" | |
} | |
], | |
"outputs": { | |
"adminUsername": { | |
"type": "String", | |
"value": "[parameters('adminUsername')]" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment