-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoArtifactFeedSettings
Michael Zanatta edited this page Aug 19, 2026
·
4 revisions
AzDoArtifactFeedSettings [string] #ResourceName
{
ProjectName = [String]$ProjectName
FeedName = [String]$FeedName
[ UpstreamSources = [String[]]$UpstreamSources ]
[ HideDeletedPackageVersions = [Boolean]$HideDeletedPackageVersions ]
[ RetentionCountLimit = [Int32]$RetentionCountLimit ]
[ DaysToKeepRecentlyDownloadedPackages = [Int32]$DaysToKeepRecentlyDownloadedPackages ]
[ Ensure = [String] {'Present', 'Absent'} ]
}- ProjectName: The name of the Azure DevOps project. This property is mandatory and serves as the key property for the resource.
-
FeedName: The name of the artifact feed whose settings are managed. This property is mandatory. The feed itself is managed by the
AzDoArtifactFeedresource. - UpstreamSources: The upstream sources configured on the feed. Only applied when supplied (a null/empty value leaves the existing upstream sources unchanged).
-
HideDeletedPackageVersions: Whether deleted package versions are hidden. Defaults to
$true. -
RetentionCountLimit: The maximum number of versions to retain per package. A value of
0(the default) means the retention policy is not managed by this resource. - DaysToKeepRecentlyDownloadedPackages: The number of days to keep recently downloaded packages, used with the retention policy.
-
Ensure: Specifies the desired state. Feed settings cannot be removed, so
Absentis a no-op.
This resource configures settings on an existing Azure Artifacts feed: upstream sources, whether deleted package versions are hidden, and the retention policy. Because feed settings cannot be deleted, Ensure = 'Absent' is treated as a no-op.
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoArtifactFeedSettings ConfigureFeed {
Ensure = 'Present'
ProjectName = 'MyProject'
FeedName = 'MyFeed'
HideDeletedPackageVersions = $true
RetentionCountLimit = 100
DaysToKeepRecentlyDownloadedPackages = 30
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoArtifactFeedSettings
$properties = @{
ProjectName = 'MyProject'
FeedName = 'MyFeed'
}
Invoke-DscResource -Name 'AzDoArtifactFeedSettings' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
ProjectName: MyProject,
FeedName: MyFeed
}
resources:
- name: Configure Feed Settings
type: AzureDevOpsDscNative/AzDoArtifactFeedSettings
dependsOn:
- AzureDevOpsDscNative/AzDoArtifactFeed/MyFeed
properties:
ProjectName: $ProjectName
FeedName: $FeedName
HideDeletedPackageVersions: true
RetentionCountLimit: 100
DaysToKeepRecentlyDownloadedPackages: 30
Ensure: PresentLCM Initialization:
$params = @{
AzureDevopsOrganizationName = "SampleAzDoOrgName"
ConfigurationDirectory = "C:\Datum\DSCOutput\"
ConfigurationUrl = 'https://configuration-path'
JITToken = 'SampleJITToken'
Mode = 'Set'
AuthenticationType = 'ManagedIdentity'
ReportPath = 'C:\Datum\DSCOutput\Reports'
}
Invoke-DscPipelineRunner @params- Assert-BoundParameter
- Assert-ElevatedUser
- Assert-IPAddress
- Assert-Module
- AzDoAPI_0_ProjectCache
- AzDoAPI_1_GroupCache
- AzDoAPI_2_UserCache
- AzDoAPI_3_GroupMemberCache
- AzDoAPI_4_GitRepositoryCache
- AzDoAPI_5_PermissionsCache
- AzDoAPI_6_ServicePrinciple
- AzDoAPI_7_IdentitySubjectDescriptors
- AzDoAPI_8_ProjectProcessTemplates
- AzDoAPI_9_DevOpsClassificationNodes
- Compare-DscParameterState
- Compare-ResourcePropertyState
- ConvertFrom-DscResourceInstance
- ConvertTo-Base64String
- ConvertTo-CimInstance
- ConvertTo-HashTable
- Find-Certificate
- Format-Path
- Get-AzDevOpsOperation
- Get-AzDevOpsServicesApiUri
- Get-AzDevOpsServicesUri
- AzDoAgentPool
- AzDoAgentPoolPermission
- AzDoAgentQueue
- AzDoAreaNodes
- AzDoAreaPermission
- AzDoArtifactFeed
- AzDoArtifactFeedPermission
- AzDoArtifactFeedSettings
- AzDoArtifactFeedView
- AzDoAuditStream
- AzDoBranchPolicy
- AzDoCheckConfiguration
- AzDoDeploymentGroup
- AzDoEnvironmentApproval
- AzDoEnvironmentPermission
- AzDoExtension
- AzDoGitPermission
- AzDoGitRepository
- AzDoGroupMember
- AzDoGroupPermission
- AzDoIterationNodes
- AzDoIterationPermission
- AzDoNotificationSubscription
- AzDoOrganizationGroup
- AzDoOrganizationSettings
- AzDoPipeline
- AzDoPipelineEnvironment
- AzDoPipelinePermission
- AzDoPipelineSettings
- AzDoProcess
- AzDoProcessPermission
- AzDoProject
- AzDoProjectGroup
- AzDoProjectPermission
- AzDoProjectServices
- AzDoRepositorySettings
- AzDoSecurityNamespacePermission
- AzDoServiceConnection
- AzDoServiceConnectionPermission
- AzDoServiceHook
- AzDoTaskGroup
- AzDoTeam
- AzDoTeamMember
- AzDoTeamSettings
- AzDoUserEntitlement
- AzDoVariableGroup
- AzDoVariableGroupPermission
- AzDoWiki
- AzDoWIPTags