MethodsAndPractices / vsteam

PowerShell module for accessing Azure DevOps Services and Azure DevOps Server (formerly VSTS or TFS)
https://methodsandpractices.github.io/vsteam-docs/
MIT License
442 stars 155 forks source link

Added possibility to create, get and delete azure artifacts for projects #485

Closed SebastianSchuetze closed 1 year ago

SebastianSchuetze commented 1 year ago

PR Summary

Added the possibility to create, get and delete artifacts feeds scoped to projects

fixes #379

PR Checklist

mnieto commented 1 year ago

Hi @SebastianSchuetze

Because the lack of a specific API for this, or because an unexpected behaviour of the current API , it is hard to distinguish between project scoped feeds and organization scoped ones.

Accordingly with the API documentation:

If the project parameter is present, gets all feeds in the given project. If omitted, gets all feeds in the organization.

But if we omit the project name, what we get is the complete list of feeds (project and organization scoped)

Proposal

I know that this can be achieved with a script after calling Get-VSTeamFeed, but it could be nice to have it already implemented in the module. 😃

Or, at least, we add an additional example:

Example 2

Get-VSTeamFeed | where url -Match "https://feeds.dev.azure.com/$organziation/_apis/Packaging"

This command returns only the package feeds at organization scope

SebastianSchuetze commented 1 year ago

@mnieto can you propose this as a feature? I think putting in a closed PR is the wrong place. :)

just copy&paste