Markus Kraus @vMarkus_K
MY CLOUD-(R)EVOLUTION mycloudrevolution.com
Read the Docs - vSphereNetAppToolkit
This Module helps to automate some basic steps that interact between VMware vSphere and NetApp ONTAP.
Import-Module DataONTAP
Import-Module VMware.VimAutomation.Cis.Core
$NaCreds = Get-Credential -Message "NetApp"
$VcCreds = Get-Credential -Message "vCenter"
Connect-NcController netapp.lab.local -Credential $NaCreds
Connect-VIServer vcenter-01.lab.local -Credential $VcCreds
New-VsphereNetappVolume -VolName vol_vmware_11 -VolSize 1 -vSphereCluster Cluster01 -NetAppAggregate aggr_data -NetAppVserver svm-esxi `
-NetAppInterface svm-nfs_data -NetAppSnapshotPolicy default-1weekly
(Get-Datastore).Where({$_.Type -eq "NFS"}) | Get-VsphereNetappVolume | Format-Table -AutoSize