You can add a VASA provider to a vCenter Server system and create a storage policy.

Verify that you are connected to a vCenter Server system.

Verify that the datastore is mounted to the ESXi host.

1

Add a VASA provider to the vCenter Server system.

$script:vasProvider = New-VasaProvider -Name 'name' -Url 'URL' -Username 'user_name' -Password 'password'  -Description 'description' -Force
2

Get all SPBM capabilities exposed by the registered VASA provider.

Get-SpbmCapability
3

Create a new SPBM rule with the exposed capabilities of the registered VASA provider.

$rule = New-SpbmRule -Capability $capability -Value $value
4

Create a new SPBM rule set.

New-SpbmRuleSet -Name $ruleset -AllofRules @(($rule))
5

Create a storage policy.

New-SpbmStoragePolicy -Name $storagepolicy -RuleSet $ruleset
6

Refresh the VASA provider registered with the vCenter Server system.

$provider = Get-VasaProvider -Name $providername -Refresh
7

Verify the VASA storage array.

$vasaStorageArray = Get-VasaStorageArray -Provider $vasaProvider -Server $script:vcsrv
8

Refresh the VASA provider registered with the vCenter Server system.

$provider = Get-VasaProvider -Name $providername -Refresh
9

Get the VASA provider registered with the vCenter Server system.

$vasaProvider = Get-VasaProvider -Name $providername
10

(Optional) Remove the VASA provider.

Remove-VasaProvider -Provider $provider -Confirm:$false
11

(Optional) Verify that the VASA provider is removed.

$provider = Get-VasaProvider -Name $providername