<?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: I am new to WFA and having trouble  to setup  workflow to create export rule in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152431#M27365</link>
    <description>&lt;P&gt;I added another space to "&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3e3e3e; cursor: text; font-family: 'Source Sans Pro','Lato','Helvetica Neue','Helvetica','Arial','sans-serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;-DisableDev&lt;/SPAN&gt;" and still the same issue.&lt;/P&gt;
&lt;P&gt;15:09:04.163 INFO [Create export rule_sp] Creating export rule : New-NcExportRule -ErrorAction Stop -VserverContext gbbed61ns10svm_mm -Policy test_nfs4 -ClientMatch '0.0.0.0' -ReadOnlySecurityFlavor sys -ReadWriteSecurityFlavor never -Index 1 -Protocol nfs -SuperUserSecurityFlavor none -Anon 65534 -DisableDev true&lt;BR /&gt;15:09:04.210 ERROR [Create export rule_sp] A positional parameter cannot be found that accepts argument 'true'.&lt;BR /&gt;15:09:04.351 ERROR [Create export rule_sp] Failed executing command. Exception: A positional parameter cannot be found that accepts argument 'true'.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 21:12:48 GMT</pubDate>
    <dc:creator>sp_1008</dc:creator>
    <dc:date>2019-11-19T21:12:48Z</dc:date>
    <item>
      <title>I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152378#M27358</link>
      <description>&lt;P&gt;&amp;nbsp;I am setting up a WFA workflow to create NFS share and export it. I am trying to use Netapp certified WF&amp;nbsp; "create export rule" but I don't see&amp;nbsp; the parameter "-DisableDev"&amp;nbsp; in the powershell script.&amp;nbsp; I want to add this pramnter in the create export rule. Having trouble to set the parameter "-DisableDev"&amp;nbsp; which will not allow to creation of devices on&amp;nbsp; NFS server.&lt;/P&gt;
&lt;P&gt;I am not sure what is the exact syntex to add this paramter in the WFA powershell script.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any assistance on this will be a great help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:08:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152378#M27358</guid>
      <dc:creator>sp_1008</dc:creator>
      <dc:date>2025-06-04T12:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152380#M27359</link>
      <description>&lt;P&gt;I ran into this with some other certified commands, specifially 'Create CIFS Share', that didn't support all the options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'll basically want to copy that command to a new one, put on your Powershell hat, add the paramter at the top, then check if that parameter exists, then keep adding onto the command variable that it's building.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the code block for the Create CIFS Share'&amp;nbsp; I hacked at .. parameters for 'Share Properties' and 'vscan profile' were what I added.&lt;/P&gt;
&lt;PRE&gt;param (
  [parameter(Mandatory=$true, HelpMessage="Name or IP address of the cluster hosting the Storage Virtual Machine.")]
  [string]$Cluster,

  [parameter(Mandatory=$true, HelpMessage="Name of the Storage Virtual Machine in which the CIFS share will be created.")]
  [string]$Vserver,

  [parameter(Mandatory=$true, HelpMessage="File system path that is shared through this CIFS share.")]
  [string]$Path,

  [parameter(Mandatory=$true, HelpMessage="Name of the CIFS share to be created.")]
  [string]$ShareName,
 
  [parameter(Mandatory=$false, HelpMessage="A comment that gives a description of the CIFS share. CIFS clients see this description when browsing the Storage Virtual Machine's CIFS shares.")]
  [string]$Comment,

  [parameter(Mandatory=$false, HelpMessage="Share Prperties.")]
  [string]$share_properties,

  [parameter(Mandatory=$false, HelpMessage="Set Vscan Profile for Share")]
  [string]$vscanProfile
)

Get-WFALogger -Info -message $("Creating CIFS share: " + $ShareName + "at path: "+ $Path)

$command = "Add-NcCifsShare -Name " +  $ShareName + " -Path " + $Path 

if ($Comment)
{
    $command += " -Comment " + "'" + $Comment + "'"
}

if ($share_properties)
{
    $command += " -ShareProperties " + $share_properties

}

if ($vscanProfile) {
    $command +=  " -VscanProfile " + "'" + $vscanProfile + "'"
}

$command += " -VserverContext " + $Vserver

# connect to cluster
Connect-WfaCluster $Cluster

Try
{
    $result = Invoke-Expression -ErrorAction stop $command
}
Catch
{
    $ErrorMessage = $_.Exception.Message
    throw "Create CIFS share failed. Reason : " + $ErrorMessage 
}
if ($result.Status -eq "failed")
 {
    throw "Create CIFS share failed. Reason : " + $result.ErrorMessage
 }
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 21:22:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152380#M27359</guid>
      <dc:creator>csalitros</dc:creator>
      <dc:date>2019-11-18T21:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152381#M27360</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The certified content that comes with WFA may not enable all parameters that can be set via the PSTK\ZAPI. You can use it as an example to develop your own commands if you require additional parameters to be set. Here is an example for you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Param(
   [Parameter(Mandatory=$True, HelpMessage="The Cluster name or IP address")]
   [String]$Cluster,
   [Parameter(Mandatory=$True, HelpMessage="The Export policy name")]
   [String]$PolicyName,
   [Parameter(Mandatory=$True, HelpMessage="The Client match")]
   [String]$ClientMatch,
   [Parameter(Mandatory=$True, HelpMessage="The Vserver name")]
   [String]$VserverName, 
   [Parameter(Mandatory=$False, HelpMessage="The Rule index")]
   [Int]$RuleIndex,
   [Parameter(Mandatory=$True, HelpMessage="The Read only security flavor")]
   [String]$RoRule,
   [Parameter(Mandatory=$True, HelpMessage="The Read write security flavor")]
   [String]$RwRule, 
   [Parameter(Mandatory=$False, HelpMessage="The Protocols")]
   [String]$Protocol, 
   [Parameter(Mandatory=$False, HelpMessage="The Super user sec flavor")]
   [String]$Superuser,
   [Parameter(Mandatory=$False, HelpMessage="The User name or ID to which anonymous users are mapped")]
   [String]$AnonymousUserId,
   [Parameter(Mandatory=$False, HelpMessage="If specified, the NFS server will honor SetUID bits in SETATTR operation")]
   [Bool]$EnableSetUid,
   [Parameter(Mandatory=$False, HelpMessage="If specified, the NFS server will not allow creation of devices")]
   [Bool]$DisableSetUid,
   [Parameter(Mandatory=$False, HelpMessage="If specified, the NFS server will allow creation of devices")]
   [Bool]$EnableDev,
   [Parameter(Mandatory=$False, HelpMessage="If specified, the NFS server will not allow creation of devices")]
   [Bool]$DisableDev,
   [Parameter(Mandatory=$False, HelpMessage="Ignore or Fail unix security operations on NTFS volumes. Possible values are 'ignore', 'fail'. Default value is 'fail'")]
   [ValidateSet("ignore","fail")]
   [String]$NtfsUnixSecurityOps,  
   [Parameter(Mandatory=$False, HelpMessage="Change ownership mode. Possible values are 'restricted', 'unrestricted'. Default value is 'restricted'")]
   [ValidateSet("restricted","unrestricted")]
   [String]$ChownMode,
   [Parameter(Mandatory=$False, HelpMessage="The maximum number of ZAPI retry attempts")]
   [Int]$ZapiRetryCount
)
#'------------------------------------------------------------------------------
#'Ensure the input parameters are valid.
#'------------------------------------------------------------------------------
If($EnableSetUid -And $DisableSetUid){
   Throw "The input parameters ""EnableSetUid"" and ""DisableSetUid"" are both provided. Please provide either parameter, not both parameters"
}
If($EnableDev -And $DisableDev){
   Throw "The input parameters ""EnableDev"" and ""DisableDev"" are both provided. Please provide either parameter, not both parameters"
}
#'------------------------------------------------------------------------------
#'Connect to the cluster.
#'------------------------------------------------------------------------------
Connect-WFACluster $Cluster
#'------------------------------------------------------------------------------
#'Ensure the export policy exists.
#'------------------------------------------------------------------------------
[String]$command = "Get-NcExportPolicy -VserverContext $VserverName -Name $PolicyName "
If($ZapiRetryCount){
   [String]$command += "-ZapiRetryCount $ZapiRetryCount "
}
[String]$command += "-ErrorAction Stop"
Try{
   $policy = Invoke-Expression -Command $command -ErrorAction Stop
   Get-WFALogger -Info -Message "Executed Command`: $command"
   Get-WFALogger -Info -Message "Enumerated Export Policy ""$PolicyName"" on vserver ""$VserverName"""
}Catch{
   Get-WFALogger -Error -Message $("Failed Executing Command`: $command. Error " + $_.Exception.Message)
   Throw "Failed enumerating Export Policy ""$PolicyName"" on vserver ""$VserverName"""
}
#'------------------------------------------------------------------------------ 
#'Ensure the policy exists.
#'------------------------------------------------------------------------------
If(-Not($policy)){
   Get-WFALogger -Info -Message "Creating Export Policy ""$PolicyName"" on vserver ""$VserverName"""
   [String]$command = "New-NcExportPolicy -Name $PolicyName -VserverContext $VserverName "
   If($ZapiRetryCount){
      [String]$command += "-ZapiRetryCount $ZapiRetryCount "
   }
   [String]$command += "-ErrorAction Stop"
   Try{
      Invoke-Expression -Command $command -ErrorAction Stop
      Get-WFALogger -Info -Message "Executed Command`: $command"
      Get-WFALogger -Info -Message "Created Export Policy ""$PolicyName"" on vserver ""$VserverName"""
   }Catch{
      Get-WFALogger -Error -Message $("Failed Executing Command`: $command. Error " + $_.Exception.Message)
      Throw "Failed creating Export Policy ""$PolicyName"" on vserver ""$VserverName"""
   }
}
#'------------------------------------------------------------------------------
#'Enumerate the export policy rules to check if a rule already exists.
#'------------------------------------------------------------------------------
If($policy){
   $query = Get-NcExportRule -Template
   $query.ClientMatch = $ClientMatch
   $query.PolicyName  = $PolicyName
   $query.Vserver     = $VserverName
   $query.RoRule      = $RoRule
   $query.RwRule      = $RwRule
   If($Protocol){
      $query.Protocol = $Protocol
   }
   Try{
      $exportRules = Get-NcExportRule -Query $query -ErrorAction Stop
   }Catch{
      Get-WFALogger -Error -Message $("Failed enumerating export policy rules for policy ""$PolicyName"" on vserver ""$VserverName"". Error " + $_.Exception.Message)
      Throw "Failed enumerating export policy rules for policy ""$PolicyName"" on vserver ""$VserverName"""
   }
}
#'------------------------------------------------------------------------------
#'Exit if the export policy rule already exists.
#'------------------------------------------------------------------------------
If($exportRules){
   Get-WFALogger -Info -Message "The client ""$ClientMatch"" is already exported in policy ""$PolicyName"" on vserver ""$VserverName"""
   Exit 0
}Else{
   Get-WFALogger -Info -Message "Creating export policy rule for client ""$ClientMatch"" in policy ""$PolicyName"" on vserver ""$VserverName"""
}
#'------------------------------------------------------------------------------ 
#'Set the command to create the export policy rule.
#'------------------------------------------------------------------------------
[String]$command = "New-NcExportRule -Policy '$PolicyName' -ClientMatch '$ClientMatch' -ReadOnlySecurityFlavor $RoRule -ReadWriteSecurityFlavor $RwRule -VserverContext $VserverName "
If($RuleIndex){
   [String]$command += "-Index $RuleIndex "
}
If($Protocol){
   [String]$command += "-Protocol $Protocol "
}
If($Superuser){
   [String]$command += "-SuperUserSecurityFlavor $Superuser "
}
If($AnonymousUserId){
   [String]$command += "-Anon $AnonymousUserId "
}
If($EnableSetUid){
   [String]$command += "-EnableSetUid "
}
If($DisableSetUid){
   [String]$command += "-DisableSetUid "
}
If($EnableDev){
   [String]$command += "-EnableDev "
}
If($DisableDev){
   [String]$command += "-DisableDev "
}
If($NtfsUnixSecurityOps){
   [String]$command += "-NtfsUnixSecurityOps $NtfsUnixSecurityOps "
}
If($ChownMode){
   [String]$command += "-ChownMode $ChownMode "
}
If($ZapiRetryCount){
   [String]$command += "-ZapiRetryCount $ZapiRetryCount "
}
[String]$command += "-ErrorAction Stop"
#'------------------------------------------------------------------------------
#'Create the export policy rule.
#'------------------------------------------------------------------------------
Try{
   Invoke-Expression -Command $command -ErrorAction Stop
   Get-WFALogger -Info -Message "Executed Command`: $command"
   Get-WFALogger -Info -Message "Created policy rule in export policy ""$PolicyName"" on vserver ""$VserverName"""
}Catch{
   Get-WFALogger -Error -Message $("Failed Executing Command`: $command. Error " + $_.Exception.Message)
   Throw "Failed creating policy rule in export policy ""$PolicyName"" on vserver ""$VserverName"""
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;
&lt;P&gt;Hope that helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 00:08:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152381#M27360</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-11-19T00:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152382#M27361</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also as an example for you (related to creating an export rule), if your cluster is running ONTAP 9.6 or greater, you can invoke the REST API rather than use the PSTK however not all parameters that are currently available in the PSTK\ZAPI are currently available using the REST API however it's likely they will be supported in a future release. Hope this is a useful example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Param(
   [Parameter(Mandatory=$True, HelpMessage="The Cluster name or IP Address")]
   [String]$Cluster,
   [Parameter(Mandatory=$True, HelpMessage="The Data ONTAP version running on the cluster")]
   [String]$Version,
   [Parameter(Mandatory=$True, HelpMessage="The vserver name")]
   [String]$VserverName,
   [Parameter(Mandatory=$True, HelpMessage="The Export Policy name")]
   [String]$PolicyName,
   [Parameter(Mandatory=$False, HelpMessage="The User ID To Which Anonymous Users Are Mapped")]
   [String]$AnonymousUserId,
   [Parameter(Mandatory=$False, HelpMessage="The client matches. Supports a comma delimited string of client matches")]
   [String]$ClientMatch,
   [Parameter(Mandatory=$False, HelpMessage="The Access Protocol that the export rule describes")]
   [String]$Protocol,
   [Parameter(Mandatory=$False, HelpMessage="The Authentication flavors that the read-only access rule governs")]
   [String]$RoRule,
   [Parameter(Mandatory=$False, HelpMessage="The Authentication flavors that the read-write access rule governs")]
   [String]$RwRule,
   [Parameter(Mandatory=$False, HelpMessage="The Authentication flavors that the superuser security type governs")]
   [String]$SuperUser 
)
#'------------------------------------------------------------------------------
Function Get-ObjectIdentity{
   Param(
      [Parameter(Mandatory=$True, HelpMessage="The Cluster name or IP Address")]
      [String]$Cluster,
      [Parameter(Mandatory=$True, HelpMessage="The Object name")]
      [String]$ObjectName,
      [Parameter(Mandatory=$True, HelpMessage="The Object type")]
      [String]$ObjectType,
      [Parameter(Mandatory=$True, HelpMessage="The Cluster name or IP Address")]
      [String]$Uri,
      [Parameter(Mandatory=$False, HelpMessage="If specified the ID is returned instead of the UUID")]
      [Bool]$Id,
      [Parameter(Mandatory=$True, HelpMessage="The credentials to authenticate to the cluster")]
      [System.Management.Automation.PSCredential]$Credentials
   )
   $result = @{};
   Try{
      $results = Invoke-RestMethod -Uri $uri -Method GET -Credential $Credentials -ErrorAction Stop
   }Catch{
      Get-WFALogger -Error -Message $("Failed enumerating $ObjectType ""$ObjectName"" on cluster ""$Cluster"" using URI ""$uri"". Error " + $_.Exception.Message)
      Throw "Failed enumerating $ObjectType ""$ObjectName"" on cluster ""$Cluster"" using URI ""$uri"""
   }
   If($Null -eq $results){
      Throw "Failed enumerating $ObjectType ""$ObjectName"" on cluster ""$Cluster"" using URI ""$uri"". No records where where returned from the query"
   }
   If($results.num_records -ne 1){
      Throw "Failed enumerating $ObjectType ""$ObjectName"" on cluster ""$Cluster"". The record was not returned from the query"
   }
   If($Id){
      [Int]$idNumber = $results.records.id
   }Else{
      [String]$uuid = $results.records.uuid
   }
   If(-Not($Id)){
      If([String]::IsNullOrEmpty($uuid)){
         Get-WFALogger -Info -Message "The UUID for $ObjectType ""$ObjectName"" is invalid"
      }Else{
         Get-WFALogger -Info -Message "Enumerated $ObjectType ""$ObjectName"" uuid ""$uuid"" on cluster ""$Cluster"""
      }
      $result.Add("uuid", $uuid)
   }
   $result.Add("name", $ObjectName)
   If($Id){
      $result.Add("id", $idNumber)
   }
   $result;
}#'End Function
#'------------------------------------------------------------------------------
#'Compare the ONTAP version.
#'------------------------------------------------------------------------------
[Int]$versionComparisionValue960 = Compare-OntapVersions $Version "9.6.0"
If($versionComparisionValue960 -lt 0){
   Throw "The cluster ""$Cluster"" is running ONTAP version ""$Version"". A minimum version of ""9.6.0"" is required to use this command"
}
#'------------------------------------------------------------------------------
#'Enumerate the WFA credentials.
#'------------------------------------------------------------------------------
[System.Management.Automation.PSCredential]$Credentials = Get-WfaCredentials -Host $Cluster
#'------------------------------------------------------------------------------
#'Enumerate the vserver UUID.
#'------------------------------------------------------------------------------
$uri = "https://$Cluster/api/svm/svms?name=$VserverName"
$svm = Get-ObjectIdentity -ObjectName $VserverName -ObjectType "Vserver" -Cluster $Cluster -Uri $uri -Credentials $credentials
#'------------------------------------------------------------------------------
#'Enumerate the export policy ID.
#'------------------------------------------------------------------------------
$uri    = "https://$Cluster.demo.netapp.com/api/protocols/nfs/export-policies?name=$PolicyName&amp;amp;svm.name=$VserverName"
$policy = Get-ObjectIdentity -ObjectName $PolicyName -ObjectType "Export Policy" -Cluster $Cluster -Id $True -Uri $uri -Credentials $credentials
#'------------------------------------------------------------------------------
#'Set the export policy rules and convert to JSON.
#'------------------------------------------------------------------------------
[HashTable]$rules = @{};
If($AnonymousUserId){
    [HashTable]$rules.Add("anonymous_user", $AnonymousUserId)
}
If($ClientMatch){
   If($ClientMatch.Contains(",")){
      [Array]$clients = $ClientMatch.Split(",")
   }Else{
      [Array]$clients = $ClientMatch
   }
   ForEach($ipAddress In $ipAddresses){
      [HashTable]$match = @{}
      [HashTable]$match.Add("match", $ipAddress)
      [Array]$clients += $match
   }
   [HashTable]$rules.Add("clients", $clients)
}
If($Protocol){
   [HashTable]$rules.Add("protocols", @($Protocol))
}
If($RoRule){
   [HashTable]$rules.Add("ro_rule", @($RoRule))
}
If($RwRule){
   [HashTable]$rules.Add("rw_rule", @($RwRule))
}
If($SuperUser){
   [HashTable]$rules.Add("superuser", @($SuperUser))
}
[HashTable]$rules.Add("svm", $svm)
$body = $rules | ConvertTo-Json
[String]$uri = $("https://$Cluster/api/protocols/nfs/export-policies/" + $policy.records.id + "/rules")
#'------------------------------------------------------------------------------
#'Create the export policy.
#'------------------------------------------------------------------------------
Try{
   $result = Invoke-RestMethod -Uri $uri -Method POST -Body $body -ContentType "application/json" -Credential $Credentials -ErrorAction Stop
   Get-WFALogger -Info -Message "Created Export Policy ""$ExportPolicyName"" on vserver ""$VserverName"" on cluster ""$Cluster"" using URI ""$uri"""
}Catch{
   Get-WFALogger -Error -Message $("Failed creating Export Policy ""$ExportPolicyName"" on vserver ""$VserverName"" on cluster ""$Cluster"" using URI ""$uri"". Error " + $_.Exception.Message + " Status Code " + $_.Exception.Response.StatusCode.value__)
   Throw "Failed creating Export Policy ""$ExportPolicyName"" on vserver ""$VserverName"" on cluster ""$Cluster"" using URI ""$uri"""
}
#'------------------------------------------------------------------------------&lt;/PRE&gt;
&lt;P&gt;If your cluster is running &amp;gt;= ONTAP 9.6 you can access the REST API documention using:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;https://&amp;lt;%cluster%&amp;gt;/docs/api/#/NAS/export_rule_create&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have any questions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 00:19:10 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152382#M27361</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-11-19T00:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152383#M27362</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option might be to use an alternative to WFA such as Ansible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://www.ansible.com/" href="https://www.ansible.com/" target="_blank" rel="noopener"&gt;https://www.ansible.com/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However regardless of which orchestration application you choose for your enviroment, inevitably you may encounter a similar issue in that it may not support each and every parameter that is available via the CLI\ZAPI (EG for export rules "DisableDev") as you've discovered with the certified content in WFA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://docs.ansible.com/ansible/latest/modules/na_ontap_export_policy_rule_module.html" href="https://docs.ansible.com/ansible/latest/modules/na_ontap_export_policy_rule_module.html" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/modules/na_ontap_export_policy_rule_module.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In that instance can resort to using a CLI command if you wanted to include a parameter not available within the ansible module:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A title="https://docs.ansible.com/ansible/latest/modules/na_ontap_command_module.html" href="https://docs.ansible.com/ansible/latest/modules/na_ontap_command_module.html" target="_blank" rel="noopener"&gt;https://docs.ansible.com/ansible/latest/modules/na_ontap_command_module.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In WFA you can use either "Invoke-NcSsh" within your command or preferably "Invoke-NcSystemApi" or write your own code based on the PowerShell CmdLet. See "Get-Help New-NcExportPolicy -Full"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have any questions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 00:37:52 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152383#M27362</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-11-19T00:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152421#M27363</link>
      <description>&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;Thank you so much for your quick response yesterday! I really appreciate it.&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;I pasted script as below.&amp;nbsp; The export rule powershell script&amp;nbsp; is working fine except the&amp;nbsp;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; cursor: text; display: inline; float: none; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;-DisableDev&lt;/FONT&gt;&lt;/SPAN&gt; parameter which is highlghted in RED in below script.&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;when I tested the scirpt I got below error. I tried&amp;nbsp; with null vlaue too instead&amp;nbsp; "true"&amp;nbsp; but same error message.&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;Can you pelase look into this and advise?&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;9:39:02.704 INFO [Create export rule_sp] Creating export rule : New-NcExportRule -ErrorAction Stop -VserverContext gbbed61ns10svm_mm -Policy test_nfs4 -ClientMatch '0.0.0.0' -ReadOnlySecurityFlavor sys -ReadWriteSecurityFlavor never -Index 1 -Protocol nfs -SuperUserSecurityFlavor none -Anon 65534-DisableDev true&lt;/FONT&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;09:39:02.735 ERROR [Create export rule_sp] A positional parameter cannot be found that accepts argument 'true'.&lt;/FONT&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;09:39:02.923 ERROR [Create export rule_sp] Failed executing command. Exception: A positional parameter cannot be found that accepts argument 'true'.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;param (&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$true, HelpMessage="Cluster address")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$Cluster,&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$true, HelpMessage="Policy name")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$PolicyName,&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;[parameter(Mandatory=$true, HelpMessage="Client match")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$ClientMatch,&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;[parameter(Mandatory=$true, HelpMessage="Storage Virtual Machine name")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$VserverName,&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$false, HelpMessage="Rule index")]&lt;BR style="box-sizing: border-box;" /&gt;[int]$RuleIndex,&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$true, HelpMessage="Read only security flavors")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$RoRule,&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$true, HelpMessage="Read write security flavors")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$RwRule,&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$false, HelpMessage="Protocols")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$Protocol,&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;[parameter(Mandatory=$false, HelpMessage="Super user sec flavors")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$Superuser,&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;[parameter(Mandatory=$false, HelpMessage="User name or ID to which anonymous users are mapped")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$AnonymousUserId,&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;[parameter(Mandatory=$false, HelpMessage="IsAllowDevIsEnabled")]&lt;BR style="box-sizing: border-box;" /&gt;[string]$IsAllowDevIsEnabled&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;)&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;# connect to cluster&lt;BR style="box-sizing: border-box;" /&gt;Connect-WFACluster $Cluster&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;$policy = Get-NcExportPolicy -VserverContext $VserverName -Name $PolicyName &lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;# If policy does not exists create it.&lt;BR style="box-sizing: border-box;" /&gt;if(!$policy)&lt;BR style="box-sizing: border-box;" /&gt;{&lt;BR style="box-sizing: border-box;" /&gt;Get-WFALogger -Info -message $("Creating policy : " + $PolicyName)&lt;BR style="box-sizing: border-box;" /&gt;New-NcExportPolicy -Name $PolicyName -VserverContext $VserverName&lt;BR style="box-sizing: border-box;" /&gt;} &lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;$expression = "New-NcExportRule -ErrorAction Stop -VserverContext " + $VserverName + " -Policy " + $PolicyName + " -ClientMatch '" + $ClientMatch + "' -ReadOnlySecurityFlavor " + $RoRule + " -ReadWriteSecurityFlavor " + $RwRule&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;if($RuleIndex)&lt;BR style="box-sizing: border-box;" /&gt;{&lt;BR style="box-sizing: border-box;" /&gt;$expression = $expression + " -Index " + $RuleIndex&lt;BR style="box-sizing: border-box;" /&gt;}&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;if($Protocol)&lt;BR style="box-sizing: border-box;" /&gt;{ &lt;BR style="box-sizing: border-box;" /&gt;$expression = $expression + " -Protocol " + $Protocol&lt;BR style="box-sizing: border-box;" /&gt;}&lt;BR style="box-sizing: border-box;" /&gt;&lt;BR style="box-sizing: border-box;" /&gt;if($Superuser)&lt;BR style="box-sizing: border-box;" /&gt;{&lt;BR style="box-sizing: border-box;" /&gt;$expression = $expression + " -SuperUserSecurityFlavor " + $Superuser&lt;BR style="box-sizing: border-box;" /&gt;}&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;if($AnonymousUserId)&lt;BR style="box-sizing: border-box;" /&gt;{&lt;BR style="box-sizing: border-box;" /&gt;$expression = $expression + " -Anon " + $AnonymousUserId&lt;BR style="box-sizing: border-box;" /&gt;}&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;if($IsAllowDevIsEnabled)&lt;/FONT&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;{&lt;/FONT&gt;&lt;BR style="box-sizing: border-box;" /&gt;&lt;FONT color="#ff6600" style="box-sizing: border-box;"&gt;&lt;SPAN style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; cursor: text; display: inline; float: none; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;$expression = $expression + "-DisableDev " + $IsAllowDevIsEnabled&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&lt;FONT color="#ff0000" style="box-sizing: border-box;"&gt;}&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;&lt;FONT color="#000000" style="box-sizing: border-box;"&gt;Get-WFALo&lt;/FONT&gt;gger -Info -message $("Creating export rule : " + $expression)&lt;/P&gt;
&lt;P style="background-color: transparent; box-sizing: border-box; color: #3e3e3e; font-family: &amp;amp;quot; source sans pro&amp;amp;quot;,&amp;amp;quot;lato&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,&amp;amp;quot;helvetica&amp;amp;quot;,&amp;amp;quot;arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; margin: 0px;"&gt;Invoke-Expression -ErrorAction Stop $expression&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 18:04:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152421#M27363</guid>
      <dc:creator>sp_1008</dc:creator>
      <dc:date>2019-11-19T18:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152422#M27364</link>
      <description>&lt;P&gt;Looks like you need to add another space to "-DisableDev "&lt;/P&gt;
&lt;PRE&gt;if($IsAllowDevIsEnabled)
{
$expression = $expression + " -DisableDev " + $IsAllowDevIsEnabled
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Nov 2019 18:08:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152422#M27364</guid>
      <dc:creator>csalitros</dc:creator>
      <dc:date>2019-11-19T18:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152431#M27365</link>
      <description>&lt;P&gt;I added another space to "&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3e3e3e; cursor: text; font-family: 'Source Sans Pro','Lato','Helvetica Neue','Helvetica','Arial','sans-serif'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 27.42px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;-DisableDev&lt;/SPAN&gt;" and still the same issue.&lt;/P&gt;
&lt;P&gt;15:09:04.163 INFO [Create export rule_sp] Creating export rule : New-NcExportRule -ErrorAction Stop -VserverContext gbbed61ns10svm_mm -Policy test_nfs4 -ClientMatch '0.0.0.0' -ReadOnlySecurityFlavor sys -ReadWriteSecurityFlavor never -Index 1 -Protocol nfs -SuperUserSecurityFlavor none -Anon 65534 -DisableDev true&lt;BR /&gt;15:09:04.210 ERROR [Create export rule_sp] A positional parameter cannot be found that accepts argument 'true'.&lt;BR /&gt;15:09:04.351 ERROR [Create export rule_sp] Failed executing command. Exception: A positional parameter cannot be found that accepts argument 'true'.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:12:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152431#M27365</guid>
      <dc:creator>sp_1008</dc:creator>
      <dc:date>2019-11-19T21:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152432#M27366</link>
      <description>&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f5f5f5; color: #3e3e3e; font-family: Menlo,Monaco,Consolas,'Courier New',monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.28px; orphans: 2; text-align: justify; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: break-all; word-spacing: 0px; word-wrap: break-word;"&gt;The issue is resolved now. No need to give "true" or "false" after &lt;SPAN style="background-color: #f5f5f5; box-sizing: border-box; color: #3e3e3e; display: inline; float: none; font-family: Menlo,Monaco,Consolas,&amp;amp;quot; courier new&amp;amp;quot;,monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.28px; orphans: 2; text-align: justify; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: break-all; word-spacing: 0px; word-wrap: break-word;"&gt;-DisableDev&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f5f5f5; color: #3e3e3e; font-family: Menlo,Monaco,Consolas,'Courier New',monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.28px; orphans: 2; text-align: justify; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: break-all; word-spacing: 0px; word-wrap: break-word;"&gt;If($DisableDev){&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: #f5f5f5; color: #3e3e3e; font-family: Menlo,Monaco,Consolas,'Courier New',monospace; font-size: 13px; font-style: normal; font-variant: normal; font-weight: 300; letter-spacing: normal; line-height: 22.28px; orphans: 2; text-align: justify; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-break: break-all; word-spacing: 0px; word-wrap: break-word;"&gt;&amp;nbsp;&amp;nbsp; [String]$command += "-DisableDev "&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 21:35:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152432#M27366</guid>
      <dc:creator>sp_1008</dc:creator>
      <dc:date>2019-11-19T21:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: I am new to WFA and having trouble  to setup  workflow to create export rule</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152434#M27367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good to hear you got it working, that's correct the "-DisableDev" parameter does not require a boolean value. Whilst the input parameter in the command is a boolean:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;   [Parameter(Mandatory=$False, HelpMessage="If specified, the NFS server will not allow creation of devices")]
   [Bool]$DisableDev,&lt;/PRE&gt;
&lt;P&gt;The command expression that is set adds the parameter as a flag without a value:&lt;/P&gt;
&lt;PRE&gt;If($DisableDev){
   [String]$command += "-DisableDev "
}&lt;/PRE&gt;
&lt;P&gt;Glad you got it working, hope the example code was useful&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Matt&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 22:22:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/I-am-new-to-WFA-and-having-trouble-to-setup-workflow-to-create-export-rule/m-p/152434#M27367</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2019-11-19T22:22:24Z</dc:date>
    </item>
  </channel>
</rss>

