The vSAN Cluster Shutdown capability has been around since vSAN 7 Update 3 and has been enhanced over the years, most recently with the introduction of a vSAN Cluster Shutdown Wizard as part of the VMware Cloud Foundation (VCF) 9.0 release.

For those looking to automate the shutdown of their vSAN Cluster, we have a number of PowerCLI cmdlets: Get-VsanClusterPowerState, Start-VsanCluster and Stop-VsanCluster that simplifies this process in addition to the new UI interface, all leveraging the vSAN Management APIs.
Before the vSAN Cluster can initiate the shutdown workflow, it needs to make sure all VMs (excluding the vCenter Server VM that is managing the vSAN Cluster) has been powered off. For large environments, it can take some time to power off all VMs, which means you might need to poll or wait before running the Stop-VsanCluster cmdlet.
Instead of having to write additional code to wait for all your VMs to shutdown, you can leverage one of the vSAN Health Check Perspectives that will conveniently let you know when the vSAN Cluster is ready to be shutdown.
