I am trying to recreate a snapmirror policy with schedule that I built out manually on a test cluster. Cluster is running ONTAP 9.12 and my toolkit is 9.12.1.2302.
My issue is when I try to apply the schedule (Cron Job) to the policy. When using the gui to build everything, I have no issues. Below is my syntax:
"New-NcSnapmirrorPolicy -Name 45DailyBackup -Type async -SnapmirrorLabel backup -VserverContext $cluster -CreateSnapshotOnSource $false -Keep 45 -TransferSchedule MAAG-Vault"
The error I get is (Cannot bind parameter 'TransferSchedule'. Cannot convert the "MAAG-Vault" value of type "System.String" to type "DataONTAP.C.Types.SnapmirrorPolicy.TransferSchedule".)
I have tried to assign the "Trasnfer Schedule" as a variable to see if it would convert, but no luck. However, I can use the gui and assign this transfer schedule. I also made an attempt to also use Set-NcSnapmirrorPolicyRule and Add-NcSnapmirrorPolicyRule using my Policy name, but I get "no matching records". Any help would be great as I feel I am missing something simple.