You can enable Storage Policy-Based Management (SPBM) on a cluster and also verify that it is enabled.

Verify that you are connected to a vCenter Server system.

Verify that a storage provider is registered with the vCenter Server system.

Verify that a cluster named Vsan-Cluster exists in the vCenter Server environment.

1

Get the Vsan-Cluster cluster and store it in the $clus variable.

$clus = Get-Cluster -Name 'Vsan-Cluster'
2

Enable SPBM on the $clus cluster.

Set-SpbmEntityConfiguration $clus -SpbmEnabled $true
3

Verify that SPBM is enabled on the cluster.

Get-SpbmEntityConfiguration -Cluster $clus