diff --git a/101-virtual-network/README.md b/101-virtual-network/README.md new file mode 100644 index 0000000..d785c14 --- /dev/null +++ b/101-virtual-network/README.md @@ -0,0 +1,19 @@ +# Virtual Network with two Subnets + + + + + +This template allows you to create a Virtual Network with two subnets. + +Below are the parameters that the template expects + +| Name | Description | +|:--- |:---| +| location | Region where the resources will be deployed | +| virtualNetworkName | Name of Virtual Network | +| addressPrefix | Address prefix for the Virtual Network specified in CIDR format | +| subnet1Name | Name of Subnet-1 | +| subnet2Name | Name of Subnet-2 | +| subnet1Prefix | Prefix for the Subnet-1 specified in CIDR format | +| subnet2Prefix | Prefix for the Subnet-2 specified in CIDR format | diff --git a/101-virtual-network/azuredeploy-parameters.json b/101-virtual-network/azuredeploy-parameters.json new file mode 100644 index 0000000..e8b6533 --- /dev/null +++ b/101-virtual-network/azuredeploy-parameters.json @@ -0,0 +1,23 @@ +{ + "location": { + "value": "West US" + }, + "virtualNetworkName": { + "value": "myVNET" + }, + "subnet1Name": { + "value": "Subnet-1" + }, + "subnet2Name": { + "value": "Subnet-2" + }, + "addressPrefix": { + "value": "10.0.0.0/16" + }, + "subnet1Prefix": { + "value": "10.0.0.0/24" + }, + "subnet2Prefix": { + "value": "10.0.1.0/24" + } +} diff --git a/101-virtual-network/azuredeploy.json b/101-virtual-network/azuredeploy.json new file mode 100644 index 0000000..67c498f --- /dev/null +++ b/101-virtual-network/azuredeploy.json @@ -0,0 +1,85 @@ +{ + "$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/VNET.json", + "contentVersion": "1.0.0.0", + "parameters" : { + "location": { + "type": "String", + "allowedValues": ["East US", "West US", "West Europe", "East Asia", "South East Asia"], + "metadata" : { + "Description" : "Deployment location" + } + }, + "virtualNetworkName":{ + "type" : "string", + "defaultValue":"myVNET", + "metadata" : { + "Description" : "VNET name" + } + }, + "addressPrefix":{ + "type" : "string", + "defaultValue" : "10.0.0.0/16", + "metadata" : { + "Description" : "Address prefix" + } + + }, + "subnet1Name": { + "type" : "string", + "defaultValue" : "Subnet-1", + "metadata" : { + "Description" : "Subnet 1 Name" + } + }, + "subnet2Name": { + "type" : "string", + "defaultValue" : "Subnet-2", + "metadata" : { + "Description" : "Subnet 2 name" + } + }, + "subnet1Prefix" : { + "type" : "string", + "defaultValue" : "10.0.0.0/24", + "metadata" : { + "Description" : "Subnet 1 Prefix" + } + }, + "subnet2Prefix" : { + "type" : "string", + "defaultValue" : "10.0.1.0/24", + "metadata" : { + "Description" : "Subnet 2 Prefix" + } + } + }, + "resources": [ + { + "apiVersion": "2015-05-01-preview", + "type": "Microsoft.Network/virtualNetworks", + "name": "[parameters('virtualNetworkName')]", + "location": "[parameters('location')]", + "properties": { + "addressSpace": { + "addressPrefixes": [ + "[parameters('addressPrefix')]" + ] + }, + "subnets": [ + { + "name": "[parameters('subnet1Name')]", + "properties" : { + "addressPrefix": "[parameters('subnet1Prefix')]" + } + }, + { + "name": "[parameters('subnet2Name')]", + "properties" : { + "addressPrefix": "[parameters('subnet2Prefix')]" + } + } + ] + } + } + ] +} diff --git a/101-virtual-network/metadata.json b/101-virtual-network/metadata.json new file mode 100644 index 0000000..5c1805a --- /dev/null +++ b/101-virtual-network/metadata.json @@ -0,0 +1,7 @@ +{ + "itemDisplayName": "Create a Virtual Network with two Subnets", + "description": "This template allows you to create a Virtual Network with two subnets.", + "summary": "Create a Virtual Network with two Subnets", + "githubUsername": "mahthi", + "dateUpdated": "2015-04-04" +}