Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "linuxConfiguration": {
- "disablePasswordAuthentication": "true",
- "ssh": {
- "publicKeys": [
- {
- "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
- "keyData": "REMOVED"
- }
- ]
- }
- "storageProfile": {
- "imageReference": {
- "id": "/subscriptions/91dc1292-e7af-4ae6-807f-aa5b88bf3b79/resourceGroups/DVOPS_DEV_ResourceGroup/providers/Microsoft.Compute/images/Rhel7singleDisk"
- },
- {
- "apiVersion": "2017-03-30",
- "type": "Microsoft.Compute/virtualMachines",
- "name": "[variables('vmName')]",
- "location": "[resourceGroup().location]",
- "dependsOn": [
- "[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
- ],
- "properties": {
- "hardwareProfile": {
- "vmSize": "[parameters('vmSize')]"
- },
- "osProfile": {
- "computerName": "[parameters('customVmName')]",
- "adminUsername": "[parameters('adminUsername')]",
- "adminPassword": "[parameters('adminPassword')]",
- "linuxConfiguration": {
- "disablePasswordAuthentication": "true",
- "ssh": {
- "publicKeys": [
- {
- "path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
- "keyData": "REMOVED"
- }
- ]
- }
- }
- },
- /// HOW TO FIX THE STORAGE PROFILE
- "storageProfile": {
- "imageReference": {
- "id": "/subscriptions/91dc1292-e7af-4ae6-807f-aa5b88bf3b79/resourceGroups/DVOPS_DEV_ResourceGroup/providers/Microsoft.Compute/images/Rhel7singleDisk"
- },
- "osDisk": {
- "name": "[concat(parameters('customVmName'),'-os')]",
- "createOption": "FromImage",
- "managedDisk": {
- "storageAccountType": "[parameters('diskStorageType')]"
- }
- },
- "dataDisks": [
- {
- "name": "[concat(parameters('customVmName'),'-dataDisk-0')]",
- "lun": 0,
- "diskSizeGB": 1023,
- "createOption": "Empty",
- "managedDisk": {
- "storageAccountType": "[parameters('diskStorageType')]"
- }
- }
- ]
- },
Add Comment
Please, Sign In to add comment