<?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 Re: Powershell Update-NcVol requests flexgroup volume despite volume attributes being supplied in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/124996#M22425</link>
    <description>&lt;P&gt;The issue was worked around by adding the flex group volume parameter into the command as $false. This appears to be a bug with the current powershell release as per&amp;nbsp;&lt;A href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-released/td-p/123976" target="_blank"&gt;https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-released/td-p/123976&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2016 01:13:23 GMT</pubDate>
    <dc:creator>stephzylstra</dc:creator>
    <dc:date>2016-11-02T01:13:23Z</dc:date>
    <item>
      <title>Powershell Update-NcVol requests flexgroup volume despite volume attributes being supplied</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/124995#M22424</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing a script to automatically apply various snapshot policies to volumes. All is working fine until I try to actually apply the policy to the volume using Update-NcVol - at this point, it prompts me for a FlexGroupVolume, despite teh fact that volume attributes were passed to the query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script is like this currently:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$scheduleObjects = Get-Content -Raw -Path "schedules.json" | ConvertFrom-Json
Connect-NcController "x.x.x.x"

foreach($scheduledBackup in $scheduleObjects) {
    $volumeName = $scheduledBackup | Select -ExpandProperty Volume&lt;BR /&gt;    $datastoreName = $scheduledBackup | Select -ExpandProperty Datastore&lt;BR /&gt;    $vserverName = $scheduledBackup | Select -ExpandProperty Vserver

&lt;EM&gt;    ## Processing creation of policies and schedules snipped for brevity ##&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;    ## I end up with a policy being created in the NA which is named $datastoreName ##&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;    $q = Get-NcVol -Template
    Initialize-NcObjectProperty -Object $q -Name VolumeIdAttributes
    $q.VolumeIdAttributes.Name = $volumeName
    $q.VolumeIdAttributes.OwningVserverName = $vserverName
    $q.Name = $volumeName
    $q.Vserver = $vserverName

    $a = Get-NcVol -Template
    Initialize-NcObjectProperty -Object $a -Name VolumeSnapshotAttributes
    $a.VolumeSnapshotAttributes.SnapshotPolicy = $datastoreName

    Update-NcVol -Query $q -Attributes $a
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, instead of applying the policy, I get a prompt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;cmdlet Update-NcVol at command pipeline position 1
Supply values for the following parameters:
FlexGroupVolume:&lt;/STRONG&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 18:25:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/124995#M22424</guid>
      <dc:creator>stephzylstra</dc:creator>
      <dc:date>2025-06-04T18:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Update-NcVol requests flexgroup volume despite volume attributes being supplied</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/124996#M22425</link>
      <description>&lt;P&gt;The issue was worked around by adding the flex group volume parameter into the command as $false. This appears to be a bug with the current powershell release as per&amp;nbsp;&lt;A href="https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-released/td-p/123976" target="_blank"&gt;https://community.netapp.com/t5/Microsoft-Cloud-and-Virtualization-Discussions/NetApp-PowerShell-Toolkit-4-3-released/td-p/123976&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 01:13:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/124996#M22425</guid>
      <dc:creator>stephzylstra</dc:creator>
      <dc:date>2016-11-02T01:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Update-NcVol requests flexgroup volume despite volume attributes being supplied</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/125017#M22426</link>
      <description>&lt;P&gt;Glad you found it.. I was going to reply as well :$false&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2016 10:51:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Powershell-Update-NcVol-requests-flexgroup-volume-despite-volume-attributes/m-p/125017#M22426</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-11-02T10:51:32Z</dc:date>
    </item>
  </channel>
</rss>

