DEV Community

Jesse Houwing for Xebia Microsoft Services

Posted on • Originally published at jessehouwing.net on

1 1

Create an Organization level feed in Azure Artifacts

Create an Organization level feed in Azure Artifacts

The official guidance is to create Project level feeds, unless you know what you're doing. And to discourage users, you need to create a new feed using the REST API instead.

Can No Longer Create Organization-scoped Feeds - Developer Community
Developer Community for Visual Studio Product family Richard Meadows [MSFT]Developer Community

Exactly how, the issue doesn't explain. So let me show you how I did it.

1. Create a Bogus Feed

Navigate to the Artifacts Hub and hit the + Create Feed button. Enter a bogus name for the feed. Don't hit create yet!

Create an Organization level feed in Azure Artifacts

Then open the Developer Tools in Chrome or Edge. Go to the Network tab and hit Create to create the feed:

Create an Organization level feed in Azure Artifacts

2. Capture the POST call

From the Network tab, find the POST call to the _api/Packaging/Feeds endpoint and copy it as PowerShell (or the kind of scripting language you're familiar with).

Create an Organization level feed in Azure Artifacts

3. Change the call to target the Organization level

Change the following elements:

  1. Remove the Project GUID from the POST URL ant the Path header:
  2. Remove the Project element from the payload
  3. Change the temporary-bogus-name to the desired value
  4. Add -UseBasicParsing if, like me, you don't have Internet Explorer installed

Create an Organization level feed in Azure Artifacts

Don't copy my values verbatim. The Identity Descriptors are specific to you account and you need a valid Bearer Token.

Now run the code and: there's your feed!

Note: this example doesn't change the authentication headers, the Bearer Token will expire, breaking the code. You can replace then Bearer Token with a base64 encoded PAT string.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay