AKS Disk Detach Wait Scripts

less than 1 minute read

Problem

I had to automate some AKS tasks, which could only continue when disks had detached from their nodes. The solution should accept AKS cluster and PVC names, then wait for the disks to no longer show as Attached, and also be available in both PowerShell and Bash.

PowerShell Solution

Bash Solution

Leave a comment