Created
June 21, 2017 19:24
-
-
Save puneetloya/b7d454ff0f622f5664d7202633ebdb05 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/2014-04-01-preview/VM_IP.json", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"vmName": { | |
"type": "string" | |
}, | |
"vmSize": { | |
"type": "string", | |
"defaultValue": "Standard_A1_v2" | |
}, | |
"adminUserName": { | |
"type": "string" | |
}, | |
"adminPassword": { | |
"type": "securestring" | |
}, | |
"networkInterfaceId": { | |
"type": "string" | |
} | |
}, | |
"resources": [ | |
{ | |
"apiVersion": "2016-03-30", | |
"properties": { | |
"hardwareProfile": { | |
"vmSize": "[parameters('vmSize')]" | |
}, | |
"storageProfile": { | |
"osDisk": { | |
"osType": "Linux", | |
"name": "xyz-image-3.7.4-osDisk.2bd13453-27f6-401a-8e14-5fb461203f3f.vhd", | |
"createOption": "FromImage", | |
"image": { | |
"uri": "https://xyz_acc.blob.core.windows.net/system/Microsoft.Compute/Images/jenkins/xyz-image-3.7.4-osDisk.2bd15483-27d6-40f1-8e14-5fb461203f3f.vhd" | |
}, | |
"vhd": { | |
"uri": "https://xyz_acc.blob.core.windows.net/vmcontainer39096bc5-aff2-1234-bd21-e8b3abc1xx7/osDisk.39096bc5-aff2-1234-bd21-e8b3abc1xx7.vhd" | |
}, | |
"caching": "ReadWrite" | |
} | |
}, | |
"osProfile": { | |
"computerName": "[parameters('vmName')]", | |
"adminUsername": "[parameters('adminUsername')]", | |
"adminPassword": "[parameters('adminPassword')]" | |
}, | |
"networkProfile": {"networkInterfaces":[{"id":"[parameters('networkInterfaceId')]"}]}, | |
"diagnosticsProfile": { | |
"bootDiagnostics": { | |
"enabled": false | |
} | |
}, | |
"provisioningState": 0 | |
}, | |
"type": "Microsoft.Compute/virtualMachines", | |
"location": "eastus", | |
"name": "[parameters('vmName')]" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment