Skip to content

AzDoArtifactFeedSettings

github-actions[bot] edited this page Aug 19, 2026 · 4 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
ProjectName Key System.String
FeedName Required System.String
DaysToKeepRecentlyDownloadedPackages Write System.Int32
Ensure Write Ensure Present, Absent
HideDeletedPackageVersions Write System.Boolean
RetentionCountLimit Write System.Int32
UpstreamSources Write System.Collections.Hashtable[]
LookupResult Read System.Collections.Hashtable

Description

Manages the configurable settings of an existing feed: its upstream sources, whether deleted package versions are hidden, and the artifact lifecycle (retention policy). Retention is only managed when 'RetentionCountLimit' is greater than zero.

Examples

Example 1

This example shows how to configure the settings of an Azure Artifacts feed, including upstream sources, hiding deleted package versions, and the artifact lifecycle (retention policy). Use AzDoArtifactFeedPermission to manage who can read or contribute to the feed.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoArtifactFeedSettings 'ConfigureMyFeed'
        {
            Ensure                               = 'Present'
            ProjectName                          = 'MyProject'
            FeedName                             = 'MyFeed'
            UpstreamSources                      = @('npmjs', 'NuGet Gallery')
            HideDeletedPackageVersions           = $true

            # Artifact lifecycle (retention policy)
            RetentionCountLimit                  = 100
            DaysToKeepRecentlyDownloadedPackages = 30
        }
    }
}

Commands

Resources

Clone this wiki locally