en-US/about_AzDoArtifactFeedSettings.help.txt
|
.NAME
AzDoArtifactFeedSettings .SYNOPSIS DSC resource for managing the settings of an Azure Artifacts feed. .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. .PARAMETER ProjectName Key - System.String .PARAMETER FeedName Required - System.String .PARAMETER UpstreamSources Write - HashTable[] .PARAMETER HideDeletedPackageVersions Write - System.Boolean .PARAMETER RetentionCountLimit Write - System.Int32 .PARAMETER DaysToKeepRecentlyDownloadedPackages Write - System.Int32 .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 } } } |