Step 1 - Deploy AKS Cluster #35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Step 1 - Deploy AKS Cluster | |
| on: | |
| workflow_dispatch: | |
| env: | |
| RESOURCE_GROUP: rg-pvt-aks-h100 | |
| LOCATION: eastus2 | |
| REGISTRY_NAME: gbbpvt | |
| CLUSTER_NAME: pvt-aks-h100 | |
| TEMPLATE_FILE: main.bicep | |
| GPUSKU: Standard_NC40ads_H100_v5 | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Log in to Azure with federated identity (User Assigned Managed Identity) | |
| uses: azure/login@v2 | |
| with: | |
| client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
| tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| - name: Create resource group if it doesn’t exist | |
| run: | | |
| az group create --name "${{ env.RESOURCE_GROUP }}" --location "${{ env.LOCATION }}" | |
| - name: Deploy Bicep Template | |
| uses: azure/bicep-deploy@v2 | |
| with: | |
| type: deployment | |
| operation: create | |
| name: aks-deployment | |
| scope: resourceGroup | |
| subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
| template-file: ${{ env.TEMPLATE_FILE }} | |
| resource-group-name: ${{ env.RESOURCE_GROUP }} | |
| parameters: '{"registryName":"${{ env.REGISTRY_NAME }}","clusterName":"${{ env.CLUSTER_NAME }}","resourceGroupName":"${{ env.RESOURCE_GROUP }}","location":"${{ env.LOCATION }}", "gpuVMSKU":"${{ env.GPUSKU }}"}' |