You must already have a vSphere license (for ESXi) in hand an in use. You will also need to separately purchase a vSAN license that covers all ESXi hosts which participate in the cluster. There are different options for that license depending on if you run in hybrid or all flash mode.