for await()

in src/commands/utils/clusters.ts [480:500]


        for await (const page of containerClient.agentPools.list(resourceGroupName, clusterName).byPage()) {
            for (const nodePool of page) {
                if (!nodePool.osType) {
                    return {
                        succeeded: false,
                        error: `OS type not available for node pool ${nodePool.name} for cluster ${clusterName}`,
                    };
                }

                if (nodePool.osType.toUpperCase() === "WINDOWS") {
                    if (!nodePool.currentOrchestratorVersion) {
                        return {
                            succeeded: false,
                            error: `Kubernetes version not available for node pool ${nodePool.name} for cluster ${clusterName}`,
                        };
                    }

                    k8sVersions.push(nodePool.currentOrchestratorVersion);
                }
            }
        }