Skip to content

Step 1 - Deploy AKS Cluster #35

Step 1 - Deploy AKS Cluster

Step 1 - Deploy AKS Cluster #35

Workflow file for this run

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 }}"}'