diff --git a/quickstarts/microsoft.aksarc/nodepool/README.md b/quickstarts/microsoft.aksarc/nodepool/README.md new file mode 100644 index 000000000000..a6c7021921c0 --- /dev/null +++ b/quickstarts/microsoft.aksarc/nodepool/README.md @@ -0,0 +1,33 @@ +--- +description: Deploys a nodepool on an existing provisioned cluster +page_type: sample +products: +- azure +- azure-resource-manager +urlFragment: nodepool +languages: +- json +- bicep +--- +# Create an AKS ARC nodepool on an existing provisioned cluster using a template + +![Azure Public Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/PublicLastTestDate.svg) +![Azure Public Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/PublicDeployment.svg) + +![Azure US Gov Last Test Date](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/FairfaxLastTestDate.svg) +![Azure US Gov Last Test Result](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/FairfaxDeployment.svg) + +![Best Practice Check](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/BestPracticeResult.svg) +![Cred Scan Check](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/CredScanResult.svg) + +![Bicep Version](https://azurequickstartsservice.blob.core.windows.net/badges/quickstarts/microsoft.aksarc/nodepool/BicepVersion.svg) + +[![Deploy To Azure](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazure.svg?sanitize=true)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.aksarc%2Fnodepool%2Fazuredeploy.json) +[![Deploy To Azure US Gov](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/deploytoazuregov.svg?sanitize=true)](https://portal.azure.us/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.aksarc%2Fnodepool%2Fazuredeploy.json) +[![Visualize](https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/1-CONTRIBUTION-GUIDE/images/visualizebutton.svg?sanitize=true)](http://armviz.io/#/?load=https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2Fquickstarts%2Fmicrosoft.aksarc%2Fnodepool%2Fazuredeploy.json) + +This template allows you to deploy a new AKS ARC nodepool on an existing provisioned cluster. + +For more information about Azure Kuberneties Service, see [What is Azure Arc enabled Kuberneties](https://learn.microsoft.com/en-us/azure/azure-arc/kubernetes/overview). + +`Tags: Microsoft.aksarc/nodepool` diff --git a/quickstarts/microsoft.aksarc/nodepool/azuredeploy.json b/quickstarts/microsoft.aksarc/nodepool/azuredeploy.json new file mode 100644 index 000000000000..99c384484351 --- /dev/null +++ b/quickstarts/microsoft.aksarc/nodepool/azuredeploy.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters" : { + "provisionedClusterName": { + "type": "string" + }, + "agentName": { + "type": "string" + }, + "agentVMSize": { + "type": "string" + }, + "agentCount": { + "type": "int" + }, + "agentOsType": { + "type": "string" + }, + "location": { + "type": "string" + } + }, + "resources" : [ + { + "type": "Microsoft.Kubernetes/connectedClusters", + "apiVersion": "2024-01-01", + "name": "[parameters('provisionedClusterName')]", + "location": "[parameters('location')]", + "condition" : false + }, + // { + // "type": "Microsoft.HybridContainerService/provisionedClusterInstances", + // "apiVersion": "2024-01-01", + // "name": "[parameters('provisionedClusterName')]", + // "location": "[parameters('location')]", + // "condition" : false + // }, + { + "type": "Microsoft.HybridContainerService/provisionedClusterInstances/agentPools", + "apiVersion": "2024-01-01", + "name": "[concat('default/', parameters('agentName'))]", + // "scope": "[resourceId('Microsoft.Kubernetes/connectedClusters', parameters('provisionedClusterName'))]", + "dependsOn": [ + "[resourceId('Microsoft.Kubernetes/connectedClusters', parameters('provisionedClusterName'))]" + ], + "properties": { + "count": "[parameters('agentCount')]", + "osType": "[parameters('agentOsType')]", + "vmSize": "[parameters('agentVMSize')]" + } + } + ] +} \ No newline at end of file diff --git a/quickstarts/microsoft.aksarc/nodepool/azuredeploy.parameters.json b/quickstarts/microsoft.aksarc/nodepool/azuredeploy.parameters.json new file mode 100644 index 000000000000..b17b20a55021 --- /dev/null +++ b/quickstarts/microsoft.aksarc/nodepool/azuredeploy.parameters.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "provisionedClusterName": { + "value": "GEN-UNIQUE" + }, + "location": { + "value": "eastus" + }, + "agentName": { + "value": "GEN-UNIQUE" + }, + "agentVMSize": { + "value": "Standard_A4_v2" + }, + "agentCount": { + "value": 3 + }, + "agentOsType": { + "value": "Linux" + } + } +} \ No newline at end of file diff --git a/quickstarts/microsoft.aksarc/nodepool/metadata.json b/quickstarts/microsoft.aksarc/nodepool/metadata.json new file mode 100644 index 000000000000..dc7f937d6e55 --- /dev/null +++ b/quickstarts/microsoft.aksarc/nodepool/metadata.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#", + "type": "QuickStart", + "itemDisplayName": "Deploys a nodepool", + "description": "Deploys a nodepool on an existing provisioned cluster with workload identity federation enabled and OIDC issuer URL enabled on ASZ environment.", + "summary": "Create a nodepool instance using a template", + "githubUsername": "ReddyVanshika", + "docOwner": "ReddyVanshika", + "dateUpdated": "2024-11-15" + } \ No newline at end of file