Adding VNET template
This commit is contained in:
Родитель
a44e7f0bf7
Коммит
c82a4bffcb
|
@ -0,0 +1,19 @@
|
|||
# Virtual Network with two Subnets
|
||||
|
||||
<a href="https://azuredeploy.net/" target="_blank">
|
||||
<img src="http://azuredeploy.net/deploybutton.png"/>
|
||||
</a>
|
||||
|
||||
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 |
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
}
|
Загрузка…
Ссылка в новой задаче