-
Notifications
You must be signed in to change notification settings - Fork 0
AzDoArtifactFeed
Michael Zanatta edited this page Aug 18, 2026
·
4 revisions
AzDoArtifactFeed [string] #ResourceName
{
FeedName = [String]$FeedName
[ ProjectName = [String]$ProjectName ]
[ Description = [String]$Description ]
[ BadgesEnabled = [Boolean]$BadgesEnabled ]
[ UpstreamEnabled = [Boolean]$UpstreamEnabled ]
[ Ensure = [String] {'Present', 'Absent'} ]
}- FeedName: The name of the artifact feed. This property is mandatory and is the key property for the resource.
- ProjectName: The name of the Azure DevOps project. Optional — when supplied, the feed is project-scoped; when omitted, the feed is organization-scoped.
- Description: An optional description for the feed.
-
BadgesEnabled: Whether to enable badges for the feed. Defaults to
$false. -
UpstreamEnabled: Whether to enable upstream sources. Defaults to
$true. -
Ensure: Specifies whether the feed should exist. Valid values are
PresentandAbsent.
This resource manages Azure Artifacts feeds. A feed can be project-scoped (set ProjectName) or organization-scoped (omit ProjectName). Artifact feeds allow teams to share packages (NuGet, npm, Maven, Python, Universal Packages).
Configuration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoArtifactFeed AddArtifactFeed {
Ensure = 'Present'
ProjectName = 'MyProject'
FeedName = 'MyFeed'
Description = 'My package feed'
BadgesEnabled = $false
UpstreamEnabled = $true
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -VerboseConfiguration ExampleConfig {
Import-DscResource -ModuleName 'AzureDevOpsDscNative'
Node localhost {
AzDoArtifactFeed AddOrgFeed {
Ensure = 'Present'
FeedName = 'SharedOrgFeed'
Description = 'Organization-wide package feed'
# No ProjectName -> the feed is created at the organization scope.
}
}
}
Start-DscConfiguration -Path ./ExampleConfig -Wait -Verbose# Return the current configuration for AzDoArtifactFeed
$properties = @{
ProjectName = 'MyProject'
FeedName = 'MyFeed'
}
Invoke-DscResource -Name 'AzDoArtifactFeed' -Method Get -Property $properties -ModuleName 'AzureDevOpsDscNative'parameters: {}
variables: {
ProjectName: MyProject,
FeedName: MyFeed
}
resources:
- name: My Artifact Feed
type: AzureDevOpsDscNative/AzDoArtifactFeed
dependsOn:
- AzureDevOpsDscNative/AzDoProject/MyProject
properties:
ProjectName: $ProjectName
FeedName: $FeedName
Description: My package feed
BadgesEnabled: false
UpstreamEnabled: true
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-AzDoLCM @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