From b44f6abfa8c56983f77f0b0bb60dcc9747228447 Mon Sep 17 00:00:00 2001 From: Naveen Angali Date: Thu, 23 May 2024 10:45:14 -0400 Subject: [PATCH] added pricing tier --- Azure-ARM/azuredeploy.json | 10 +++++++++- Azure-ARM/azuredeploy.parameters.json | 3 +++ Azure-ARM/createUIDefinition.json | 28 ++++++++++++++++++++++++++- 3 files changed, 39 insertions(+), 2 deletions(-) diff --git a/Azure-ARM/azuredeploy.json b/Azure-ARM/azuredeploy.json index f1b0e4e..83b1292 100644 --- a/Azure-ARM/azuredeploy.json +++ b/Azure-ARM/azuredeploy.json @@ -105,6 +105,9 @@ "AuthenticationType":{ "type": "string" }, + "PricingTier":{ + "type": "string" + }, "InfraAdminAccount":{ "type": "string" }, @@ -208,6 +211,7 @@ "KubernetesLinuxNodeCount": "[int(parameters('KubernetesLinuxNodeCount'))]", "KubernetesLinuxNodeSize": "[parameters('KubernetesLinuxNodeSize')]", "AuthenticationType": "[parameters('AuthenticationType')]", + "PricingTier": "[parameters('PricingTier')]", "InfraAdminAccount": "[parameters('InfraAdminAccount')]", "KubernetesWindowsNodeCount": "[int(parameters('KubernetesWindowsNodeCount'))]", "KubernetesWindowsNodeSize": "[parameters('KubernetesWindowsNodeSize')]", @@ -503,7 +507,7 @@ "dependsOn": ["[resourceId('Microsoft.Resources/deploymentScripts', 'PreReqChecks')]"], "sku": { "name": "Base", - "tier": "Free" + "tier": "[variables('PricingTier')]" }, "properties": { "kubernetesVersion": "[variables('KubernetesVersion')]", @@ -823,6 +827,10 @@ "name": "AUTHENTICATIONTYPE", "value": "[variables('AuthenticationType')]" }, + { + "name": "PRICINGTIER", + "value": "[variables('PricingTier')]" + }, { "name": "INFRAADMINACCOUNT", "value": "[variables('InfraAdminAccount')]" diff --git a/Azure-ARM/azuredeploy.parameters.json b/Azure-ARM/azuredeploy.parameters.json index cbc6643..fe41df2 100644 --- a/Azure-ARM/azuredeploy.parameters.json +++ b/Azure-ARM/azuredeploy.parameters.json @@ -146,6 +146,9 @@ }, "InfraAdminAccount":{ "value": "" + }, + "PricingTier":{ + "value": "" } } } diff --git a/Azure-ARM/createUIDefinition.json b/Azure-ARM/createUIDefinition.json index e4f3806..82ca9d5 100644 --- a/Azure-ARM/createUIDefinition.json +++ b/Azure-ARM/createUIDefinition.json @@ -394,6 +394,31 @@ }, "visible": true }, + { + "name": "PricingTier", + "type": "Microsoft.Common.OptionsGroup", + "label": "Pricing tiers for Azure Kubernetes Service", + "defaultValue": "Local Accounts with Kubernetes RBAC", + "toolTip": "AKS offers two pricing tiers for the managed Kubernetes control plane. Choose the pricing tier that best meets your needs.", + "constraints": { + "allowedValues": [ + { + "label": "Free tier", + "value": "Free" + }, + { + "label": "Standard tier", + "value": "Standard" + }, + { + "label": "Premium tier", + "value": "Premium" + } + ], + "required": true + }, + "visible": true + }, { "name": "AuthenticationType", "type": "Microsoft.Common.OptionsGroup", @@ -414,7 +439,7 @@ "required": true }, "visible": true - }, + }, { "name": "KubernetesLinuxNodeSizeSection", "type": "Microsoft.Common.Section", @@ -1023,6 +1048,7 @@ "KubernetesWindowsNodeSize": "[steps('kubernetes').KubernetesWindowsNodeSizeSection.KubernetesWindowsNodeSize]", "KubernetesWindowsNodeCount": "[steps('kubernetes').KubernetesWindowsNodeCount]", "AuthenticationType": "[steps('kubernetes').AuthenticationType]", + "PricingTier": "[steps('kubernetes').PricingTier]", "KubernetesVnetName": "[steps('kubernetes').KubernetesAdvanced.KubernetesVnetName.name]", "KubernetesVnetResourceGroup": "[steps('kubernetes').KubernetesAdvanced.KubernetesVnetName.resourceGroup]", "KubernetesSubnetName": "[steps('kubernetes').KubernetesAdvanced.KubernetesVnetName.subnets.subnet1.name]",