Skip to content

Commit

Permalink
Merge pull request Azure#2511 from bmoore-msft/master
Browse files Browse the repository at this point in the history
updated template to BPs
  • Loading branch information
singhkays authored Sep 21, 2016
2 parents 2b71417 + 37b3454 commit 4ab7c9b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 33 deletions.
2 changes: 1 addition & 1 deletion 101-vm-simple-linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
</a>


This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu Linux version, using the latest patched version. This will deploy in West US on a D1 VM Size.
This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu Linux version, using the latest patched version. This will deploy a D1 size VM in the resource group location and return the FQDN of the VM.
46 changes: 22 additions & 24 deletions 101-vm-simple-linux/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
},
"ubuntuOSVersion": {
"type": "string",
"defaultValue": "14.04.2-LTS",
"defaultValue": "16.04.0-LTS",
"allowedValues": [
"12.04.5-LTS",
"14.04.2-LTS",
"14.04.5-LTS",
"15.10",
"16.04.0-LTS"
],
"metadata": {
"description": "The Ubuntu version for the VM. This will pick a fully patched image of this given Ubuntu version. Allowed values: 12.04.5-LTS, 14.04.2-LTS, 15.10, 16.04.0-LTS."
"description": "The Ubuntu version for the VM. This will pick a fully patched image of this given Ubuntu version."
}
}
},
Expand All @@ -52,8 +52,7 @@
"vmSize": "Standard_D1",
"virtualNetworkName": "MyVNET",
"vnetID": "[resourceId('Microsoft.Network/virtualNetworks',variables('virtualNetworkName'))]",
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]",
"apiVersion": "2015-06-15"
"subnetRef": "[concat(variables('vnetID'),'/subnets/',variables('subnetName'))]"
},
"resources": [
{
Expand All @@ -65,11 +64,10 @@
"name": "[variables('storageAccountType')]"
},
"kind": "Storage",
"properties": {
}
"properties": {}
},
{
"apiVersion": "[variables('apiVersion')]",
"apiVersion": "2016-09-01",
"type": "Microsoft.Network/publicIPAddresses",
"name": "[variables('publicIPAddressName')]",
"location": "[resourceGroup().location]",
Expand All @@ -81,7 +79,7 @@
}
},
{
"apiVersion": "[variables('apiVersion')]",
"apiVersion": "2016-09-01",
"type": "Microsoft.Network/virtualNetworks",
"name": "[variables('virtualNetworkName')]",
"location": "[resourceGroup().location]",
Expand All @@ -102,13 +100,13 @@
}
},
{
"apiVersion": "[variables('apiVersion')]",
"apiVersion": "2016-09-01",
"type": "Microsoft.Network/networkInterfaces",
"name": "[variables('nicName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
"[resourceId('Microsoft.Network/publicIPAddresses/', variables('publicIPAddressName'))]",
"[resourceId('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
],
"properties": {
"ipConfigurations": [
Expand All @@ -128,13 +126,13 @@
}
},
{
"apiVersion": "[variables('apiVersion')]",
"apiVersion": "2016-03-30",
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('vmName')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
"[resourceId('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
"[resourceId('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
],
"properties": {
"hardwareProfile": {
Expand All @@ -155,7 +153,7 @@
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), variables('apiVersion')).primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]"
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), '2016-01-01').primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('OSDiskName'),'.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
Expand All @@ -166,7 +164,7 @@
"diskSizeGB": "100",
"lun": 0,
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), variables('apiVersion')).primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('dataDisk1VhdName'),'.vhd')]"
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), '2016-01-01').primaryEndpoints.blob, variables('vmStorageAccountContainerName'),'/',variables('dataDisk1VhdName'),'.vhd')]"
},
"createOption": "Empty"
}
Expand All @@ -182,20 +180,20 @@
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"storageUri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), variables('apiVersion')).primaryEndpoints.blob)]"
"storageUri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName')), '2016-01-01').primaryEndpoints.blob)]"
}
}
}
}
],
"outputs": {
"hostname": {
"type": "string",
"value": "[concat(parameters('dnsLabelPrefix'), '.', resourceGroup().location, '.cloudapp.azure.com')]"
},
"hostname": {
"type": "string",
"value": "[reference(variables('publicIPAddressName')).dnsSettings.fqdn]"
},
"sshCommand": {
"type": "string",
"value": "[concat('ssh ', parameters('adminUsername'), '@', parameters('dnsLabelPrefix'), '.', resourceGroup().location, '.cloudapp.azure.com')]"
}
"value": "[concat('ssh ', parameters('adminUsername'), '@', reference(variables('publicIPAddressName')).dnsSettings.fqdn)]"
}
}
}
5 changes: 1 addition & 4 deletions 101-vm-simple-linux/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
"contentVersion": "1.0.0.0",
"parameters": {
"adminUsername": {
"value": "azureUser"
"value": "ghuser"
},
"adminPassword": {
"value": "GEN-PASSWORD"
},
"dnsLabelPrefix": {
"value": "GEN-UNIQUE"
},
"ubuntuOSVersion": {
"value": "14.04.2-LTS"
}
}
}
8 changes: 4 additions & 4 deletions 101-vm-simple-linux/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"itemDisplayName": "Deploy a simple Linux VM in West US",
"description": "This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu version, using the latest patched version. This will deploy in West US on a D1 VM Size.",
"itemDisplayName": "Deploy a simple Linux VM",
"description": "This template allows you to deploy a simple Linux VM using a few different options for the Ubuntu version, using the latest patched version. This will deploy a D1 szie VM in the resource group location and return the FQDN of the VM.",
"summary": "This template takes a minimum amount of parameters and deploys a Linux VM, using the latest patched version.",
"githubUsername": "coreysa",
"dateUpdated": "2015-12-21"
"githubUsername": "bmoore-msft",
"dateUpdated": "2016-09-20"
}

0 comments on commit 4ab7c9b

Please sign in to comment.