You should be able to do this by Draining and Uncordoning Nodes.
Drain the nodes:
kubectl drain <node-names> --ignore-daemonsets --delete-emptydir-data
, using a space-separated list of node names.
Stop the Node Pool:
az aks nodepool stop --resource-group <resource-group> --cluster-name <cluster-name> --nodepool-name <nodepool-name>
Start the Node Pool:
az aks nodepool start --resource-group <resource-group> --cluster-name <cluster-name> --nodepool-name <nodepool-name>
Uncordon the Node Pool:
kubectl uncordon <node-name>
Hope this helps! Let me know if you have issues or need further assistance.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!