Skip to content

AzDoArtifactFeedPermission

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
Ensure Write Ensure Present, Absent
Permissions Write System.Collections.Hashtable[]
LookupResult Read System.Collections.Hashtable

Description

Examples

Example 1

This example shows how to set role-based permissions on an Artifact feed.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoArtifactFeedPermission 'AddArtifactFeedPermission'
        {
            Ensure      = 'Present'
            ProjectName = 'MyProject'
            FeedName    = 'MyFeed'
            Permissions = @(
                @{ identity = 'vsid-of-group'; role = 'Reader' }
            )
        }
    }
}

Example 2

This example shows how to update role-based permissions on an Artifact feed.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoArtifactFeedPermission 'UpdateArtifactFeedPermission'
        {
            Ensure      = 'Present'
            ProjectName = 'MyProject'
            FeedName    = 'MyFeed'
            Permissions = @(
                @{ identity = 'vsid-of-group'; role = 'Contributor' }
            )
        }
    }
}

Example 3

This example shows how to remove permissions from an Artifact feed.

Configuration Example
{
    Import-DscResource -ModuleName 'AzureDevOpsDscNative'

    node localhost
    {
        AzDoArtifactFeedPermission 'RemoveArtifactFeedPermission'
        {
            Ensure      = 'Absent'
            ProjectName = 'MyProject'
            FeedName    = 'MyFeed'
        }
    }
}

Commands

Resources

Clone this wiki locally