Last active
November 21, 2017 17:18
-
-
Save maurelio1234/1e8ea3da246edd1afe36a3c983bf4c91 to your computer and use it in GitHub Desktop.
Azure template for XComponent Examples VM
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": "CoursNov2017" | |
}, | |
"virtualMachineName": { | |
"type": "String", | |
"defaultValue": "dev01" | |
}, | |
"virtualMachineSize": { | |
"type": "String", | |
"defaultValue": "Medium" | |
}, | |
"adminUsername": { | |
"type": "String", | |
"defaultValue": "xcomponent" | |
}, | |
"storageAccountName": { | |
"type": "String", | |
"defaultValue": "rsportalvhds889n295dq78d" | |
}, | |
"domainName": { | |
"type": "String", | |
"defaultValue": "dev01" | |
}, | |
"virtualNetworkName": { | |
"type": "String", | |
"defaultValue": "CoursNov2017" | |
}, | |
"adminPassword": { | |
"type": "SecureString", | |
"defaultValue": "XComponent1" | |
}, | |
"diagnosticsStorageAccountName": { | |
"type": "String", | |
"defaultValue": "coursnov20174303" | |
}, | |
"diagnosticsStorageAccountId": { | |
"type": "String", | |
"defaultValue": "Microsoft.ClassicStorage/storageAccounts/coursnov20174303" | |
}, | |
"diagnosticsStorageAccountType": { | |
"type": "String", | |
"defaultValue": "Standard-LRS" | |
}, | |
"addressPrefix": { | |
"type": "String", | |
"defaultValue": "10.1.0.0/16" | |
}, | |
"subnetName": { | |
"type": "String", | |
"defaultValue": "default" | |
}, | |
"subnetPrefix": { | |
"type": "String", | |
"defaultValue": "10.1.0.0/24" | |
} | |
}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"type": "Microsoft.ClassicCompute/domainNames", | |
"name": "[parameters('domainName')]", | |
"apiVersion": "2016-11-01", | |
"location": "[parameters('location')]" | |
}, | |
{ | |
"type": "Microsoft.ClassicNetwork/virtualNetworks", | |
"name": "[parameters('virtualNetworkName')]", | |
"apiVersion": "2016-11-01", | |
"location": "[parameters('location')]", | |
"properties": { | |
"addressSpace": { | |
"addressPrefixes": [ | |
"[parameters('addressPrefix')]" | |
] | |
}, | |
"subnets": [ | |
{ | |
"name": "[parameters('subnetName')]", | |
"addressPrefix": "[parameters('subnetPrefix')]" | |
} | |
] | |
} | |
}, | |
{ | |
"type": "Microsoft.ClassicStorage/storageAccounts", | |
"name": "[parameters('diagnosticsStorageAccountName')]", | |
"apiVersion": "2016-11-01", | |
"location": "[parameters('location')]", | |
"properties": { | |
"accountType": "[parameters('diagnosticsStorageAccountType')]" | |
} | |
}, | |
{ | |
"type": "Microsoft.ClassicCompute/virtualMachines", | |
"name": "[parameters('virtualMachineName')]", | |
"apiVersion": "2017-04-01", | |
"location": "[parameters('location')]", | |
"properties": { | |
"storageProfile": { | |
"userImage": { | |
"type": "Microsoft.ClassicStorage/storageAccounts/vmimages", | |
"id": "/subscriptions/4e47036e-f8d5-43a7-8fa8-ca7d32a44fab/resourceGroups/FormationXComponent/providers/Microsoft.ClassicStorage/storageAccounts/rsportalvhds889n295dq78d/vmImages/XComponent-Cours-Nov2017-V0", | |
"operatingSystemDisk": { | |
"osState": "Specialized", | |
"diskName": "XComponent-Cours-Nov2017-V0-os-2017-11-20-44B44299", | |
"caching": "ReadWrite", | |
"operatingSystem": "Windows", | |
"ioType": "Standard", | |
"diskSize": 128, | |
"vhdUri": "https://rsportalvhds889n295dq78d.blob.core.windows.net/vhds/XComponent-Cours-Nov2017-V0-os-2017-11-20-44B44299.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(parameters('resourceGroupName'),'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'))]", | |
"[concat('Microsoft.ClassicNetwork/virtualNetworks/', parameters('virtualNetworkName'))]" | |
] | |
} | |
], | |
"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