Skip to content

Commit

Permalink
updated arm template to have windows node version select option
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen Angali authored and Naveen Angali committed Aug 30, 2023
1 parent d416994 commit aa792ab
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Azure-ARM/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"defaultValue": "",
"type": "String"
},
"WindowsNodeVersion":{
"type": "string"
},
"KubernetesClusterName": {
"type": "String"
},
Expand Down Expand Up @@ -187,6 +190,7 @@
"ACRUSER":"",
"ACRUSERPASSWORD":"",


"UPDATEAAD":"[parameters('ActiveDirectoryCreateApp')]",
"CLIENTID":"[parameters('ActiveDirectoryClientId')]",
"CLIENTSECRET":"[parameters('ActiveDirectoryClientSecret')]",
Expand All @@ -203,7 +207,7 @@
"AuthenticationType": "[parameters('AuthenticationType')]",
"KubernetesWindowsNodeCount": "[int(parameters('KubernetesWindowsNodeCount'))]",
"KubernetesWindowsNodeSize": "[parameters('KubernetesWindowsNodeSize')]",

"WindowsNodeVersion": "[parameters('WindowsNodeVersion')]",
"ManagedIdentity": "[parameters('ManagedIdentityName')]",

"DNSHostName": "[parameters('DNSHostName')]",
Expand Down Expand Up @@ -526,7 +530,7 @@
"orchestratorVersion": "[variables('KubernetesVersion')]",
"enableNodePublicIP": false,
"mode": "User",
"osSKU": "Windows2019",
"osSKU": "[variables('WindowsNodeVersion')]",
"osType": "Windows",
"vnetSubnetID": "[if(not(empty(variables('KubernetesVnetResourceGroup'))),variables('vnetId'),json('null'))]"
}
Expand Down
3 changes: 3 additions & 0 deletions Azure-ARM/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@
"KubenetesInfrastructureResourceGroupName": {
"value": ""
},
"WindowsNodeVersion":{
"value": ""
},
"AuthenticationType":{
"value": ""
}
Expand Down
22 changes: 22 additions & 0 deletions Azure-ARM/createUIDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,27 @@
},
"visible": true
},
{
"name": "WindowsNodeVersion",
"type": "Microsoft.Common.DropDown",
"label": "Profisee windows node version",
"defaultValue": "",
"toolTip": "windows node version to use",
"constraints": {
"required": true,
"allowedValues": [
{
"label": "windows 2019",
"value": "Windows2019"
},
{
"label": "windows 2022",
"value": "Windows2022"
}
]
},
"visible": "[or(equals(steps('profisee').ProfiseeVersion, 'profiseeplatformdev:2023r2.preview-win19') , equals(steps('profisee').ProfiseeVersion, 'profiseeplatformdev:2023r2.preview-win22'))]"
},
{
"name": "ProfiseeAdminUserAccount",
"type": "Microsoft.Common.TextBox",
Expand Down Expand Up @@ -996,6 +1017,7 @@
"ActiveDirectoryCreateApp": "[steps('profisee').ActiveDirectoryCreateApp]",
"ActiveDirectoryClientId": "[steps('profisee').UserSuppliedClientId.ActiveDirectoryClientId]",
"ActiveDirectoryClientSecret": "[steps('profisee').UserSuppliedClientSecret.ActiveDirectoryClientSecret]",
"WindowsNodeVersion": "[steps('profisee').WindowsNodeVersion]",
"KubernetesClusterName": "[steps('kubernetes').KubernetesClusterName]",
"KubernetesVersion": "[steps('kubernetes').KubernetesVersion]",
"KubenetesInfrastructureResourceGroupName": "[steps('kubernetes').KubenetesInfrastructureResourceGroupName]",
Expand Down

0 comments on commit aa792ab

Please sign in to comment.