AKS kümelerinizi PowerShell üzerinden yönetmek, node ölçekleme ve pod izleme gibi işlemleri otomatize etmenizi sağlar.
AKS Cluster Oluşturmak
PowerShell
New-AzAksCluster `
-ResourceGroupName "NewRG-" `
-Name "myAKSClusterOnur1" `
-Location "uksouth" `
-NodeCount 3 `
-NodeVmSize "Standard_D2s_v3" `
-KubernetesVersion "1.29.0" `
-NetworkPlugin "azure" `
-EnableManagedIdentity
Write-Host "AKS cluster olusturuldu." -ForegroundColor Green


Kubectl Credentials Almak
PowerShell
Import-AzAksCredential -ResourceGroupName "NewRG-" -Name "myAKSClusterOnur1" -Force
kubectl get nodes
kubectl get pods --all-namespaces

Node Pool Ölçeklendirme
PowerShell
$cluster = Get-AzAksCluster -ResourceGroupName "NewRG-" -Name "myAKSClusterOnur1"
$nodePool = $cluster.AgentPoolProfiles[0]
$nodePool.Count = 5
Set-AzAksCluster -ResourceGroupName "NewRG-" -Name "myAKSClusterOnur1" -NodePoolProfile @($nodePool)
Write-Host "Node count guncellendi: 5" -ForegroundColor Green


