<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error when creating Snapshot poliy - New-NcSnapshotPolicy : Svm parameter neither specified nor set in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-when-creating-Snapshot-poliy-New-NcSnapshotPolicy-Svm-parameter-neither/m-p/447407#M6792</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create snapshot policies through a script. This works on physical filers but for some reason the same code does not work on our virtual netapp ONTAP filers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error code when executing :&amp;nbsp;New-NcSnapshotPolicy -Name $policyName -Schedule $scheduleName -Count $retentionCount -SnapmirrorLabel $snapshotmirrorlabel -Comment $comment -Enabled $true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;New-NcSnapshotPolicy : Svm parameter neither specified nor set&lt;BR /&gt;At \\nur0fs02\data\IT\Scripts\Netapp-Snapshot-Script.ps1:117 char:1&lt;BR /&gt;+ New-NcSnapshotPolicy -Name $policyName -Schedule $scheduleName -Count ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [New-NcSnapshotPolicy], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : Svm is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.NewNcSnapshotPolicy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is a bug on the virtual ONTAP ?&amp;nbsp; I always connect to the cluster and not to an SVM. The Snapshot Policy I want to create should have a cluster scope.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 09:45:32 GMT</pubDate>
    <dc:creator>AndreKov</dc:creator>
    <dc:date>2025-06-04T09:45:32Z</dc:date>
    <item>
      <title>Error when creating Snapshot poliy - New-NcSnapshotPolicy : Svm parameter neither specified nor set</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-when-creating-Snapshot-poliy-New-NcSnapshotPolicy-Svm-parameter-neither/m-p/447407#M6792</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create snapshot policies through a script. This works on physical filers but for some reason the same code does not work on our virtual netapp ONTAP filers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error code when executing :&amp;nbsp;New-NcSnapshotPolicy -Name $policyName -Schedule $scheduleName -Count $retentionCount -SnapmirrorLabel $snapshotmirrorlabel -Comment $comment -Enabled $true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;New-NcSnapshotPolicy : Svm parameter neither specified nor set&lt;BR /&gt;At \\nur0fs02\data\IT\Scripts\Netapp-Snapshot-Script.ps1:117 char:1&lt;BR /&gt;+ New-NcSnapshotPolicy -Name $policyName -Schedule $scheduleName -Count ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : NotSpecified: (:) [New-NcSnapshotPolicy], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : Svm is empty,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.NewNcSnapshotPolicy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if this is a bug on the virtual ONTAP ?&amp;nbsp; I always connect to the cluster and not to an SVM. The Snapshot Policy I want to create should have a cluster scope.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 09:45:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Error-when-creating-Snapshot-poliy-New-NcSnapshotPolicy-Svm-parameter-neither/m-p/447407#M6792</guid>
      <dc:creator>AndreKov</dc:creator>
      <dc:date>2025-06-04T09:45:32Z</dc:date>
    </item>
  </channel>
</rss>

