<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[ProGet&#x2F;PGUtil] Bug: When setting feed property only the last one will be retained.]]></title><description><![CDATA[<p dir="auto">Hi again!</p>
<p dir="auto">I'm setting properties for feeds using</p>
<pre><code>pgutil feeds properties set --api-key=$APIKey --source="$ServerUrl" `
        --feed="$feedName" --property="$propertyName" --value="$propertyValue"
</code></pre>
<p dir="auto">However only the last property that I set will retain the enabled setting.</p>
<p dir="auto">This is with pgutil version 2.4.2 targeting ProGet version 2026.8</p>
<p dir="auto">Here is the relevant snippet from my code (Not complete)</p>
<pre><code>Function Set-FeedProperty{
    param (
        [Parameter(Mandatory=$true)][string]$feedName,
        [Parameter(Mandatory=$true)][string]$propertyName,
        [Parameter(Mandatory=$true)][string]$propertyValue
    )

    $output = pgutil feeds properties set `
        --api-key=$APIKey `
        --source="$ServerUrl" `
        --feed="$feedName" `
        --property="$propertyName" `
        --value="$propertyValue" 2&gt;&amp;1
    if($output -match "error"){
        Write-Host "##[error] Property '$propertyName': $output"
    } else {
        Write-Debug "##[debug] Property '$propertyName': $output"
    }
}

# Enable tracking package usage
Set-FeedProperty $feedName "packageStatisticsEnabled" $true
Set-FeedProperty $feedName "restrictPackageStatistics" $true
Set-FeedProperty $feedName "deploymentRecordsEnabled" $true
Set-FeedProperty $feedName "usageRecordsEnabled" $true
# Display vulnerability information and enforce vulnerability compliance rules
Set-FeedProperty $feedName "vulnerabilitiesEnabled" $true
# Display license information and enforce license compliance rules
Set-FeedProperty $feedName "licensesEnabled" $true
# Show package usage in Projects &amp; Builds (SCA)
Set-FeedProperty $feedName "useWithProjects" $true
</code></pre>
<p dir="auto">If I run it as is, only <code>useWithProjects</code> will be enabled<br />
<img src="/assets/uploads/files/1788435695888-ec0201cc-6c46-4697-9ecb-dd4f3da6546b-image.jpeg" alt="ec0201cc-6c46-4697-9ecb-dd4f3da6546b-image.jpeg" class=" img-fluid img-markdown" /><br />
If I comment out the final command, <code>licensesEnabled</code> will be enabled instead.<br />
<img src="/assets/uploads/files/1788435750539-aed1a9f8-1b66-4ae9-828b-c79181a44816-image.jpeg" alt="aed1a9f8-1b66-4ae9-828b-c79181a44816-image.jpeg" class=" img-fluid img-markdown" /></p>
<p dir="auto">If I try to manually set a single property from the CLI afterwards, instead only that property will be set to enabled, resetting the previously enabled property to disabled.</p>
<p dir="auto">P.S Regarding my <a href="https://forums.inedo.com/topic/5812/proget-feature-request-inquiry-feed-settings-when-creating-using-pgutil-api/7">previous thread where we discussed the implementation of more settable properties</a>, I apologize for any potential confusion caused by my last message. I had messed up the casing on the property names (Uppercase first letter instead of lowercase).</p>
<p dir="auto">Best regards<br />
Nils Nilsson</p>
]]></description><link>https://forums.inedo.com/topic/5826/proget-pgutil-bug-when-setting-feed-property-only-the-last-one-will-be-retained.</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 06:11:14 GMT</lastBuildDate><atom:link href="https://forums.inedo.com/topic/5826.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Sep 2026 11:46:12 GMT</pubDate><ttl>60</ttl></channel></rss>