Skip to content

Commit e41f8c7

Browse files
committed
hacks: add few more scripts
1 parent 918183b commit e41f8c7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)