Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
796 changes: 428 additions & 368 deletions Build/ARM Deployment - SQL Hackathon v2.ps1

Large diffs are not rendered by default.

494 changes: 247 additions & 247 deletions Build/ARM Templates/ARM Template - SQL Hackathon - Jump Servers - v2.json

Large diffs are not rendered by default.

310 changes: 159 additions & 151 deletions Build/ARM Templates/ARM Template - SQL Hackathon - Network - v2.json
Original file line number Diff line number Diff line change
@@ -1,151 +1,159 @@
{

"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

"contentVersion": "1.0.0.0",

"variables": {
"location": "[resourceGroup().location]",
"virtualNetworkName": "[concat(resourceGroup().name, '-vnet')]",
"storageAccountName": "[concat('sqlhacksa', uniqueString(resourceGroup().id))]",
"uniquevaluerg":"[uniqueString(resourceGroup().id)]",
"addressPrefix": "10.0.0.0/16",
"MIsubnetName": "ManagedInstance",
"MIsubnetPrefix": "10.0.1.0/24",
"GatewaySubnetName": "GatewaySubnet",
"GatewaySubnetPrefix": "10.0.0.0/24",
"ManagementSubnetName": "Management",
"ManagementSubnetPrefix": "10.0.2.0/24",
"TeamVMSubnetName": "TeamJumpServers",
"TeamVMSubnetPrefix": "10.0.3.0/24",
"BastionSubnetName": "AzureBastionSubnet",
"BastionSubnetPrefix":"10.0.4.0/24"
},
"outputs": {
"UniqueRgValue": {
"type": "string",
"value": "[variables('uniquevaluerg')]"
}
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2019-04-01",
"name": "[variables('storageAccountName')]",
"location": "[variables('location')]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"properties": {
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"minimumTlsVersion": "TLS1_0",
"encryption": {
"services": {
"file": {
"enabled": true
},
"blob": {
"enabled": true
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot"
}
},
{

"name": "[variables('virtualNetworkName')]",
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2019-04-01",
"location": "[variables('location')]",
"dependsOn": [],
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('addressPrefix')]"
]
},
"subnets": [

{
"name": "[variables('gatewaySubnetName')]",
"properties": {
"addressPrefix": "[variables('gatewaySubnetPrefix')]"
}
},
{
"name": "[variables('MIsubnetName')]",
"properties": {
"addressPrefix": "[variables('MIsubnetPrefix')]"
}
},
{
"name": "[variables('managementSubnetName')]",
"properties": {
"addressPrefix": "[variables('managementSubnetPrefix')]"
}
},
{
"name": "[variables('TeamVMSubnetName')]",
"properties": {
"addressPrefix": "[variables('TeamVMSubnetPrefix')]"
}
},
{
"name": "[variables('BastionSubnetName')]",
"properties": {
"addressPrefix": "[variables('BastionSubnetPrefix')]"
}
}
]
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2020-11-01",
"name": "BastionPublicIP",
"location": "[variables('location')]",
"sku": {
"name": "Standard"
},
"properties": {
"publicIPAllocationMethod": "Static"
}
},
{
"apiVersion": "2020-07-01",
"type": "Microsoft.Network/bastionHosts",
"name": "TEAM_VMs-BA",
"location": "[variables('location')]",
"dependsOn": [
"[resourceId('Microsoft.Network/publicIpAddresses', 'BastionPublicIP')]",
"[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]"

],
"properties": {
"ipConfigurations": [
{
"name": "IpConf",
"properties": {
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('BastionSubnetName'))]"
},
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIpAddresses', 'BastionPublicIP')]"
}
}
}
]
}
}
]
}
{

"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

"contentVersion": "1.0.0.0",

"variables": {
"location": "[resourceGroup().location]",
"virtualNetworkName": "[concat(resourceGroup().name, '-vnet')]",
"storageAccountName": "[concat('sqlhacksa', uniqueString(resourceGroup().id))]",
"uniquevaluerg":"[uniqueString(resourceGroup().id)]",
"addressPrefix": "10.0.0.0/16",
"MIsubnetName": "ManagedInstance",
"MIsubnetPrefix": "10.0.1.0/24",
"GatewaySubnetName": "GatewaySubnet",
"GatewaySubnetPrefix": "10.0.0.0/24",
"ManagementSubnetName": "Management",
"ManagementSubnetPrefix": "10.0.2.0/24",
"TeamVMSubnetName": "TeamJumpServers",
"TeamVMSubnetPrefix": "10.0.3.0/24",
"BastionSubnetName": "AzureBastionSubnet",
"BastionSubnetPrefix":"10.0.4.0/24"
},
"outputs": {
"UniqueRgValue": {
"type": "string",
"value": "[variables('uniquevaluerg')]"
}
},
"resources": [
{
"type": "Microsoft.Storage/storageAccounts",
"apiVersion": "2022-09-01",
"name": "[variables('storageAccountName')]",
"location": "[variables('location')]",
"sku": {
"name": "Standard_LRS",
"tier": "Standard"
},
"kind": "StorageV2",
"tags": {
"SecurityControl": "Ignore"
},
"dependsOn": [
"[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]"
],
"properties": {
"publicNetworkAccess": "Enabled",
"networkAcls": {
"bypass": "AzureServices",
"virtualNetworkRules": [],
"ipRules": [],
"defaultAction": "Allow"
},
"supportsHttpsTrafficOnly": true,
"minimumTlsVersion": "TLS1_0",
"encryption": {
"services": {
"file": {
"enabled": true
},
"blob": {
"enabled": true
}
},
"keySource": "Microsoft.Storage"
},
"accessTier": "Hot",
"allowSharedKeyAccess": true
}
},
{

"name": "[variables('virtualNetworkName')]",
"type": "Microsoft.Network/virtualNetworks",
"apiVersion": "2019-04-01",
"location": "[variables('location')]",
"dependsOn": [],
"properties": {
"addressSpace": {
"addressPrefixes": [
"[variables('addressPrefix')]"
]
},
"subnets": [

{
"name": "[variables('gatewaySubnetName')]",
"properties": {
"addressPrefix": "[variables('gatewaySubnetPrefix')]"
}
},
{
"name": "[variables('MIsubnetName')]",
"properties": {
"addressPrefix": "[variables('MIsubnetPrefix')]"
}
},
{
"name": "[variables('managementSubnetName')]",
"properties": {
"addressPrefix": "[variables('managementSubnetPrefix')]"
}
},
{
"name": "[variables('TeamVMSubnetName')]",
"properties": {
"addressPrefix": "[variables('TeamVMSubnetPrefix')]"
}
},
{
"name": "[variables('BastionSubnetName')]",
"properties": {
"addressPrefix": "[variables('BastionSubnetPrefix')]"
}
}
]
}
},
{
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2020-11-01",
"name": "BastionPublicIP",
"location": "[variables('location')]",
"sku": {
"name": "Standard"
},
"properties": {
"publicIPAllocationMethod": "Static"
}
},
{
"apiVersion": "2020-07-01",
"type": "Microsoft.Network/bastionHosts",
"name": "TEAM_VMs-BA",
"location": "[variables('location')]",
"dependsOn": [
"[resourceId('Microsoft.Network/publicIpAddresses', 'BastionPublicIP')]",
"[resourceId('Microsoft.Network/virtualNetworks', variables('virtualNetworkName'))]"

],
"properties": {
"ipConfigurations": [
{
"name": "IpConf",
"properties": {
"subnet": {
"id": "[resourceId('Microsoft.Network/virtualNetworks/subnets', variables('virtualNetworkName'), variables('BastionSubnetName'))]"
},
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIpAddresses', 'BastionPublicIP')]"
}
}
}
]
}
}
]
}
Loading