Skip to content

Commit 342442b

Browse files
committed
vmss worked on ovl2 tip BN8
1 parent c32cc0a commit 342442b

File tree

2 files changed

+157
-0
lines changed

2 files changed

+157
-0
lines changed

hack/aks/vmss.json

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
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+
"vmssName": {
12+
"type": "string",
13+
"metadata": {
14+
"description": "String used as a base for naming resources. Must be 3-61 characters in length and globally unique across Azure. A hash is prepended to this string for some resources, and resource-specific information is appended."
15+
},
16+
"maxLength": 61
17+
},
18+
"instanceCount": {
19+
"type": "int",
20+
"defaultValue": "3",
21+
"metadata": {
22+
"description": "Number of VM instances (100 or less)."
23+
},
24+
"maxValue": 3
25+
},
26+
"tipSessionId": {
27+
"type": "string",
28+
"metadata": {
29+
"description": "tipSessionId"
30+
}
31+
}
32+
},
33+
"variables": {
34+
"namingInfix": "[toLower(substring(concat(parameters('vmssName'), uniqueString(resourceGroup().id)), 0, 9))]",
35+
"addressPrefix": "10.0.0.0/16",
36+
"subnetPrefix": "10.0.0.0/24",
37+
"virtualNetworkName": "[concat(variables('namingInfix'), 'vnet')]",
38+
"subnetName": "[concat(variables('namingInfix'), 'subnet')]",
39+
"nicName": "[concat(variables('namingInfix'), 'nic')]",
40+
"ipConfigName": "[concat(variables('namingInfix'), 'ipconfig')]",
41+
"computeApiVersion": "2023-09-01",
42+
"networkApiVersion": "2023-04-01"
43+
},
44+
"resources": [
45+
{
46+
"type": "Microsoft.Network/virtualNetworks",
47+
"name": "[variables('virtualNetworkName')]",
48+
"location": "[resourceGroup().location]",
49+
"apiVersion": "[variables('networkApiVersion')]",
50+
"properties": {
51+
"addressSpace": {
52+
"addressPrefixes": [
53+
"[variables('addressPrefix')]"
54+
]
55+
},
56+
"subnets": [
57+
{
58+
"name": "[variables('subnetName')]",
59+
"properties": {
60+
"addressPrefix": "[variables('subnetPrefix')]"
61+
}
62+
}
63+
]
64+
}
65+
},
66+
{
67+
"type": "Microsoft.Compute/virtualMachineScaleSets",
68+
"name": "[variables('namingInfix')]",
69+
"location": "[resourceGroup().location]",
70+
"apiVersion": "[variables('computeApiVersion')]",
71+
"tags": {
72+
"TipNode.SessionId": "[parameters('tipSessionId')]"
73+
},
74+
"dependsOn": [
75+
"[concat('Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'))]"
76+
],
77+
"sku": {
78+
"name": "[parameters('vmSku')]",
79+
"tier": "Standard",
80+
"capacity": "[parameters('instanceCount')]"
81+
},
82+
"properties": {
83+
"internalData": {
84+
"pinnedFabricCluster": "BN8PrdApp21"
85+
},
86+
"overprovision": false,
87+
"upgradePolicy": {
88+
"mode": "Manual"
89+
},
90+
"virtualMachineProfile": {
91+
"storageProfile": {
92+
"imageReference": {
93+
"id": "/subscriptions/9b8218f9-902a-4d20-a65c-e98acec5362f/resourceGroups/swift-vmimages/providers/Microsoft.Compute/galleries/SwiftImageGallery/images/AtlasStarCowImageNVME/versions/latest"
94+
},
95+
"osDisk": {
96+
"managedDisk": {
97+
"storageAccountType": "StandardSSD_LRS"
98+
},
99+
"caching": "ReadOnly",
100+
"createOption": "FromImage"
101+
}
102+
},
103+
"osProfile": {
104+
"computerNamePrefix": "[variables('namingInfix')]",
105+
"adminUsername": "azureuser",
106+
"adminPassword": "replacePassword1234$"
107+
},
108+
"networkProfile": {
109+
"networkInterfaceConfigurations": [
110+
{
111+
"name": "[variables('nicName')]",
112+
"properties": {
113+
"primary": true,
114+
"ipConfigurations": [
115+
{
116+
"name": "[variables('ipConfigName')]",
117+
"properties": {
118+
"subnet": {
119+
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('virtualNetworkName'), '/subnets/', variables('subnetName'))]"
120+
}
121+
}
122+
}
123+
]
124+
}
125+
}
126+
]
127+
},
128+
"securityProfile": {
129+
"securityType": "TrustedLaunch",
130+
"uefiSettings": {
131+
"secureBootEnabled": true,
132+
"vTPMEnabled": true
133+
}
134+
}
135+
}
136+
}
137+
}
138+
]
139+
}

hack/aks/vmssparams.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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_D4s_v6"
7+
},
8+
"vmssName": {
9+
"value": "aksvmsstip1"
10+
},
11+
"instanceCount": {
12+
"value": 3
13+
},
14+
"tipSessionId": {
15+
"value": "ef1cc9bd-1302-4331-a1f4-9b7736243112"
16+
}
17+
}
18+
}

0 commit comments

Comments
 (0)