Skip to content

Instantly share code, notes, and snippets.

@marrobi
marrobi / VM Hardware Profile
Created February 2, 2017 14:57
VM Hardware Profile
"hardwareProfile": {
"vmSize": "[parameters('VMSize')]"
}
@marrobi
marrobi / osprofile.json
Created February 2, 2017 15:00
Linux VM OS Profile
"osProfile": {
"computerName": "[variables('ComputerName')]",
"adminUsername": "[variables('AdminUsername')]",
"linuxConfiguration": {
"disablePasswordAuthentication": true,
"ssh": {
"publicKeys": [
{
"path": "[concat('/home/',variables('AdminUsername'),'/.ssh/authorized_keys')]",
"keyData": "[parameters('SSHPublicKey')]"
@marrobi
marrobi / customername.json
Created February 10, 2017 16:25
CF Customer Name
"customerName": {
"Description": "The name of the customer that launches the Test Drive",
"Type": "String",
"MinLength": "0",
"MaxLength": "255",
"Default": ""
}
@marrobi
marrobi / customername.json
Created February 10, 2017 16:26
ARM Customer Name
"CustomerName": {
"type": "string",
"defaultValue": "",
"minLength": 0,
"maxLength": 255,
"metadata": {
"description": "The name of the customer that launches the Test Drive"
}
},
@marrobi
marrobi / cfvpc.json
Created February 10, 2017 16:28
CloudFormation Virtual Private Cloud
"VPC" : {
"Type" : "AWS::EC2::VPC",
"Properties" : {
"CidrBlock" : { "Fn::FindInMap" : [ "SubnetConfig", "VPC", "CIDR" ]},
"EnableDnsSupport" : "true",
"EnableDnsHostnames" : "true",
"Tags" : [
{ "Key" : "Application", "Value" : { "Ref" : "AWS::StackId" } },
{ "Key" : "Name", "Value" : {"Ref" : "orbiteraCustomerId"}},
{ "Key" : "Network", "Value" : "Public" }
@marrobi
marrobi / armvnet.json
Created February 10, 2017 16:28
ARM VNet
{
"name": "VNet",
"type": "Microsoft.Network/virtualNetworks",
"location": "[resourceGroup().location]",
"apiVersion": "2015-06-15",
"dependsOn": [],
"tags": {
"displayName": "VNet",
"Network" : "Public"
},
@marrobi
marrobi / cfsecuritygroup.json
Created February 10, 2017 16:34
CF Security Group
"PublicNetworkAcl" : {
"Type" : "AWS::EC2::NetworkAcl",
"Properties" : {
"VpcId" : { "Ref" : "VPC" },
"Tags" : [
{ "Key" : "Application", "Value" : { "Ref" : "AWS::StackId" } },
{ "Key" : "Network", "Value" : "Public" }
]
}
},
@marrobi
marrobi / armnsg.json
Created February 10, 2017 16:39
ARM Netowrk Security Group
{
"apiVersion": "2016-03-30",
"type": "Microsoft.Network/networkSecurityGroups",
"name": "[concat(variables('uniquestring'),'SubnetAcl')]",
"location": "[resourceGroup().location]",
"tags": {
"displayName": "SubnetAcl"
},
"properties": {
"securityRules": [
@marrobi
marrobi / PublicSubnetANetworkAclAssociation.json
Created February 10, 2017 16:40
PublicSubnetANetworkAclAssociation
"PublicSubnetANetworkAclAssociation" : {
"Type" : "AWS::EC2::SubnetNetworkAclAssociation",
"Properties" : {
"SubnetId" : { "Ref" : "PublicSubnetA" },
"NetworkAclId" : { "Ref" : "PublicNetworkAcl" }
}
}
@marrobi
marrobi / SubnetNSG.json
Created February 10, 2017 16:40
ARM Subnet and NSG
"subnets": [
{
"name": "PublicSubnetA",
"properties": {
"addressPrefix": "[variables('SubnetConfig').PublicSubnetA.CIDR]",
"networkSecurityGroup": {
"id": "[resourceId('Microsoft.Network/networkSecurityGroups', 'SubnetAcl')]"
}
}
}