We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 918183b commit e41f8c7Copy full SHA for e41f8c7
1 file changed
hacks/scripts/aks/aks-delete-windows-nodepool.ps1
@@ -0,0 +1,18 @@
1
+#############################################
2
+# Add Windows node pool on the AKS cluster
3
4
+
5
+# setting variables from variable file
6
+Write-Host "Loading variables from .\vars.txt" -ForegroundColor Yellow
7
+Foreach ($i in $(Get-Content vars.txt)){Set-Variable -Name $i.split("=")[0] -Value $i.split("=").split(" ")[1]}
8
9
+$tenantId = (az account show | ConvertFrom-Json).tenantId
10
+Write-Host "Subscription Id: $subscriptionId, Tenant Id: $tenantId" -ForegroundColor Green
11
12
+Write-Host "Deleting Windows Server node pool: name=$windowsNodepoolName" -ForegroundColor Yellow
13
14
+az aks nodepool delete `
15
+ --cluster-name $clusterName `
16
+ --name $windowsNodepoolName `
17
+ --resource-group $resourceGroup `
18
+ --no-wait
0 commit comments