Skip to content

Instantly share code, notes, and snippets.

@marrobi
marrobi / CFTestDriveLBSecurityGroup.json
Created February 10, 2017 16:41
CF TestDriveLBSecurityGroup
"TestDriveLBSecurityGroup" : {
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "Enable access to the Vision host",
"VpcId" : { "Ref" : "VPC" },
"SecurityGroupIngress" : [
{ "IpProtocol" : "tcp", "FromPort" : "443", "ToPort" : "443", "CidrIp" : "0.0.0.0/0" }
]
}
}
@marrobi
marrobi / ARMNSG.json
Created February 10, 2017 16:43
ARM NSG
{
"apiVersion": "2016-03-30",
"type": "Microsoft.Network/networkSecurityGroups",
"name": "LBSecurityGroup",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "LBSecurityGroup"
},
@marrobi
marrobi / VMSecurityGroup.json
Last active February 10, 2017 17:47
VMSecurityGroup
"VMSecurityGroup" : {
"Type" : "AWS::EC2::SecurityGroup",
"Properties" : {
"GroupDescription" : "Enable access to the host",
"VpcId" : { "Ref" : "VPC" },
"SecurityGroupIngress" : [
{ "IpProtocol" : "tcp", "FromPort" : "8000", "ToPort" : "8000", "SourceSecurityGroupId" : { "Ref" : "TestDriveLBSecurityGroup" } }
]
}
}
@marrobi
marrobi / ARMNSG.json
Last active February 10, 2017 17:42
ARM NSG
{
"apiVersion": "2016-03-30",
"type": "Microsoft.Network/networkSecurityGroups",
"name": "VMSecurityGroup",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "VMSecurityGroup"
},
@marrobi
marrobi / ec2instance.json
Last active February 10, 2017 17:41
EC2 Instance
"Host" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"InstanceType" : "m4.xlarge" ,
"KeyName" : "td-eu-west-1" ,
@marrobi
marrobi / armosprofile.json
Last active February 10, 2017 18:03
ARM OS Profile
"osProfile": {
"computerName": "[variables('HostName')]",
"adminUsername": "[parameters('HostAdminUsername')]",
"linuxConfiguration": {
"disablePasswordAuthentication": true,
"ssh": {
"publicKeys": [
{
"path": "[concat('/home/',parameters('HostAdminUsername'),'/.ssh/authorized_keys')]",
"keyData": "[parameters('SSHPublicKey')]"
@marrobi
marrobi / storageprofile.json
Created February 10, 2017 17:25
ARM Storage Profile
"storageProfile": {
"imageReference": {
"id": "[parameters('ImageReferenceId')]"
}
}
@marrobi
marrobi / HostNic.json
Created February 10, 2017 17:53
Host Nic
{
"name": "HostNic",
"type": "Microsoft.Network/networkInterfaces",
"location": "[resourceGroup().location]",
"apiVersion": "2015-06-15",
"dependsOn": [
"[variables('VnetID')]"
],
@marrobi
marrobi / networkProfile.json
Created February 10, 2017 17:55
networkProfile
"networkProfile": {
"networkInterfaces": [
{
"id": "[resourceId('Microsoft.Network/networkInterfaces', variables('HostNic'))]"
}
]
}
@marrobi
marrobi / vmdefinition.json
Created February 10, 2017 18:06
VM Defintion
{
"name": "[variables('HostName')]",
"type": "Microsoft.Compute/virtualMachines",
"location": "[resourceGroup().location]",
"apiVersion": "2016-04-30-preview",
"dependsOn": [
"[resourceId('Microsoft.Network/networkInterfaces', concat(variables('uniquestring'),'HostNicName'))]"
],
"tags": {