Skip to content

Commit c32cc0a

Browse files
committed
abpout to test vm ovl2 build validations
1 parent 97bcdb5 commit c32cc0a

File tree

2 files changed

+130
-0
lines changed

2 files changed

+130
-0
lines changed

hack/aks/vm.json

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json# ",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"vmSku": {
6+
"type": "string",
7+
"metadata": {
8+
"description": "Size of VMs in the VM Scale Set."
9+
}
10+
},
11+
"vmName": {
12+
"type": "string",
13+
"maxLength": 61
14+
},
15+
"tipSessionId": {
16+
"type": "string",
17+
"defaultValue": "",
18+
"metadata": {
19+
"description": "tipSessionId"
20+
}
21+
}
22+
},
23+
"variables": {
24+
"namingInfix": "[toLower(substring(concat(parameters('vmName'), uniqueString(resourceGroup().id)), 0, 9))]",
25+
"addressPrefix": "10.0.0.0/16",
26+
"subnetPrefix": "10.0.0.0/24",
27+
"virtualNetworkName": "[concat(variables('namingInfix'), 'vnet')]",
28+
"subnetName": "[concat(variables('namingInfix'), 'subnet')]",
29+
"nicName": "[concat(variables('namingInfix'), 'nic')]",
30+
"computeApiVersion": "2023-09-01",
31+
"networkApiVersion": "2023-04-01"
32+
},
33+
"resources": [
34+
{
35+
"type": "Microsoft.Network/virtualNetworks",
36+
"name": "[variables('virtualNetworkName')]",
37+
"location": "[resourceGroup().location]",
38+
"apiVersion": "[variables('networkApiVersion')]",
39+
"properties": {
40+
"addressSpace": {
41+
"addressPrefixes": [
42+
"[variables('addressPrefix')]"
43+
]
44+
},
45+
"subnets": [
46+
{
47+
"name": "[variables('subnetName')]",
48+
"properties": {
49+
"addressPrefix": "[variables('subnetPrefix')]"
50+
}
51+
}
52+
]
53+
}
54+
},
55+
{
56+
"type": "Microsoft.Network/networkInterfaces",
57+
"name": "[variables('nicName')]",
58+
"apiVersion": "[variables('networkApiVersion')]",
59+
"location": "[resourceGroup().location]",
60+
"dependsOn": [
61+
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
62+
],
63+
"properties": {
64+
"ipConfigurations": [
65+
{
66+
"name": "ipconfig1",
67+
"properties": {
68+
"privateIPAllocationMethod": "Dynamic",
69+
"subnet": {
70+
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'), '/subnets/', variables('subnetName'))]"
71+
}
72+
}
73+
}
74+
]
75+
}
76+
},
77+
{
78+
"type": "Microsoft.Compute/virtualMachines",
79+
"name": "[variables('namingInfix')]",
80+
"apiVersion": "[variables('computeApiVersion')]",
81+
"location": "[resourceGroup().location]",
82+
"tags": {
83+
"TipNode.SessionId": "[parameters('tipSessionId')]"
84+
},
85+
"dependsOn": [
86+
"[resourceId('Microsoft.Network/networkInterfaces', variables('nicName'))]"
87+
],
88+
"properties": {
89+
"hardwareProfile": {
90+
"vmSize": "[parameters('vmSku')]"
91+
},
92+
"osProfile": {
93+
"computerName": "vmtiptest",
94+
"adminUsername": "azureuser",
95+
"adminPassword": "replacePassword1234$"
96+
},
97+
"storageProfile": {
98+
"imageReference": {
99+
"publisher": "Canonical",
100+
"offer": "0001-com-ubuntu-server-jammy",
101+
"sku": "22_04-lts-gen2",
102+
"version": "latest"
103+
}
104+
},
105+
"networkProfile": {
106+
"networkInterfaces": [
107+
{
108+
"id": "[resourceId('Microsoft.Network/networkInterfaces', variables('nicName'))]"
109+
}
110+
]
111+
}
112+
}
113+
}
114+
]
115+
}

hack/aks/vmparams.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
3+
"contentVersion": "1.0.0.0",
4+
"parameters": {
5+
"vmSku": {
6+
"value": "Standard_D2s_v3"
7+
},
8+
"vmName": {
9+
"value": "ovl2test"
10+
},
11+
"tipSessionId": {
12+
"value": ""
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)