1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. Feed
Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi

azuredevops.Feed

Explore with Pulumi AI

Manages Feed within Azure DevOps organization.

Example Usage

Create Feed in the scope of whole Organization

import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = new azuredevops.Feed("example", {name: "examplefeed"});
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.Feed("example", name="examplefeed")
Copy
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuredevops.NewFeed(ctx, "example", &azuredevops.FeedArgs{
			Name: pulumi.String("examplefeed"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Feed("example", new()
    {
        Name = "examplefeed",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Feed;
import com.pulumi.azuredevops.FeedArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Feed("example", FeedArgs.builder()
            .name("examplefeed")
            .build());

    }
}
Copy
resources:
  example:
    type: azuredevops:Feed
    properties:
      name: examplefeed
Copy

Create Feed in the scope of a Project

import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = new azuredevops.Project("example", {
    name: "Example Project",
    visibility: "private",
    versionControl: "Git",
    workItemTemplate: "Agile",
    description: "Managed by Pulumi",
});
const exampleFeed = new azuredevops.Feed("example", {
    name: "examplefeed",
    projectId: example.id,
});
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.Project("example",
    name="Example Project",
    visibility="private",
    version_control="Git",
    work_item_template="Agile",
    description="Managed by Pulumi")
example_feed = azuredevops.Feed("example",
    name="examplefeed",
    project_id=example.id)
Copy
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
			Name:             pulumi.String("Example Project"),
			Visibility:       pulumi.String("private"),
			VersionControl:   pulumi.String("Git"),
			WorkItemTemplate: pulumi.String("Agile"),
			Description:      pulumi.String("Managed by Pulumi"),
		})
		if err != nil {
			return err
		}
		_, err = azuredevops.NewFeed(ctx, "example", &azuredevops.FeedArgs{
			Name:      pulumi.String("examplefeed"),
			ProjectId: example.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Project("example", new()
    {
        Name = "Example Project",
        Visibility = "private",
        VersionControl = "Git",
        WorkItemTemplate = "Agile",
        Description = "Managed by Pulumi",
    });

    var exampleFeed = new AzureDevOps.Feed("example", new()
    {
        Name = "examplefeed",
        ProjectId = example.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Project;
import com.pulumi.azuredevops.ProjectArgs;
import com.pulumi.azuredevops.Feed;
import com.pulumi.azuredevops.FeedArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Project("example", ProjectArgs.builder()
            .name("Example Project")
            .visibility("private")
            .versionControl("Git")
            .workItemTemplate("Agile")
            .description("Managed by Pulumi")
            .build());

        var exampleFeed = new Feed("exampleFeed", FeedArgs.builder()
            .name("examplefeed")
            .projectId(example.id())
            .build());

    }
}
Copy
resources:
  example:
    type: azuredevops:Project
    properties:
      name: Example Project
      visibility: private
      versionControl: Git
      workItemTemplate: Agile
      description: Managed by Pulumi
  exampleFeed:
    type: azuredevops:Feed
    name: example
    properties:
      name: examplefeed
      projectId: ${example.id}
Copy

Create Feed with Soft Delete

import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";

const example = new azuredevops.Feed("example", {
    name: "examplefeed",
    features: [{
        permanentDelete: false,
    }],
});
Copy
import pulumi
import pulumi_azuredevops as azuredevops

example = azuredevops.Feed("example",
    name="examplefeed",
    features=[{
        "permanent_delete": False,
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := azuredevops.NewFeed(ctx, "example", &azuredevops.FeedArgs{
			Name: pulumi.String("examplefeed"),
			Features: azuredevops.FeedFeatureArray{
				&azuredevops.FeedFeatureArgs{
					PermanentDelete: pulumi.Bool(false),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;

return await Deployment.RunAsync(() => 
{
    var example = new AzureDevOps.Feed("example", new()
    {
        Name = "examplefeed",
        Features = new[]
        {
            new AzureDevOps.Inputs.FeedFeatureArgs
            {
                PermanentDelete = false,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.Feed;
import com.pulumi.azuredevops.FeedArgs;
import com.pulumi.azuredevops.inputs.FeedFeatureArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new Feed("example", FeedArgs.builder()
            .name("examplefeed")
            .features(FeedFeatureArgs.builder()
                .permanentDelete(false)
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: azuredevops:Feed
    properties:
      name: examplefeed
      features:
        - permanentDelete: false
Copy

Create Feed Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Feed(name: string, args?: FeedArgs, opts?: CustomResourceOptions);
@overload
def Feed(resource_name: str,
         args: Optional[FeedArgs] = None,
         opts: Optional[ResourceOptions] = None)

@overload
def Feed(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         features: Optional[Sequence[FeedFeatureArgs]] = None,
         name: Optional[str] = None,
         project_id: Optional[str] = None)
func NewFeed(ctx *Context, name string, args *FeedArgs, opts ...ResourceOption) (*Feed, error)
public Feed(string name, FeedArgs? args = null, CustomResourceOptions? opts = null)
public Feed(String name, FeedArgs args)
public Feed(String name, FeedArgs args, CustomResourceOptions options)
type: azuredevops:Feed
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args FeedArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args FeedArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args FeedArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args FeedArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FeedArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var feedResource = new AzureDevOps.Feed("feedResource", new()
{
    Features = new[]
    {
        new AzureDevOps.Inputs.FeedFeatureArgs
        {
            PermanentDelete = false,
            Restore = false,
        },
    },
    Name = "string",
    ProjectId = "string",
});
Copy
example, err := azuredevops.NewFeed(ctx, "feedResource", &azuredevops.FeedArgs{
	Features: azuredevops.FeedFeatureArray{
		&azuredevops.FeedFeatureArgs{
			PermanentDelete: pulumi.Bool(false),
			Restore:         pulumi.Bool(false),
		},
	},
	Name:      pulumi.String("string"),
	ProjectId: pulumi.String("string"),
})
Copy
var feedResource = new Feed("feedResource", FeedArgs.builder()
    .features(FeedFeatureArgs.builder()
        .permanentDelete(false)
        .restore(false)
        .build())
    .name("string")
    .projectId("string")
    .build());
Copy
feed_resource = azuredevops.Feed("feedResource",
    features=[{
        "permanent_delete": False,
        "restore": False,
    }],
    name="string",
    project_id="string")
Copy
const feedResource = new azuredevops.Feed("feedResource", {
    features: [{
        permanentDelete: false,
        restore: false,
    }],
    name: "string",
    projectId: "string",
});
Copy
type: azuredevops:Feed
properties:
    features:
        - permanentDelete: false
          restore: false
    name: string
    projectId: string
Copy

Feed Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Feed resource accepts the following input properties:

Features List<Pulumi.AzureDevOps.Inputs.FeedFeature>

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

Name Changes to this property will trigger replacement. string
The name of the Feed.
ProjectId Changes to this property will trigger replacement. string
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
Features []FeedFeatureArgs

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

Name Changes to this property will trigger replacement. string
The name of the Feed.
ProjectId Changes to this property will trigger replacement. string
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features List<FeedFeature>

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. String
The name of the Feed.
projectId Changes to this property will trigger replacement. String
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features FeedFeature[]

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. string
The name of the Feed.
projectId Changes to this property will trigger replacement. string
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features Sequence[FeedFeatureArgs]

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. str
The name of the Feed.
project_id Changes to this property will trigger replacement. str
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features List<Property Map>

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. String
The name of the Feed.
projectId Changes to this property will trigger replacement. String
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.

Outputs

All input properties are implicitly available as output properties. Additionally, the Feed resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing Feed Resource

Get an existing Feed resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FeedState, opts?: CustomResourceOptions): Feed
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        features: Optional[Sequence[FeedFeatureArgs]] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None) -> Feed
func GetFeed(ctx *Context, name string, id IDInput, state *FeedState, opts ...ResourceOption) (*Feed, error)
public static Feed Get(string name, Input<string> id, FeedState? state, CustomResourceOptions? opts = null)
public static Feed get(String name, Output<String> id, FeedState state, CustomResourceOptions options)
resources:  _:    type: azuredevops:Feed    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Features List<Pulumi.AzureDevOps.Inputs.FeedFeature>

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

Name Changes to this property will trigger replacement. string
The name of the Feed.
ProjectId Changes to this property will trigger replacement. string
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
Features []FeedFeatureArgs

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

Name Changes to this property will trigger replacement. string
The name of the Feed.
ProjectId Changes to this property will trigger replacement. string
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features List<FeedFeature>

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. String
The name of the Feed.
projectId Changes to this property will trigger replacement. String
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features FeedFeature[]

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. string
The name of the Feed.
projectId Changes to this property will trigger replacement. string
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features Sequence[FeedFeatureArgs]

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. str
The name of the Feed.
project_id Changes to this property will trigger replacement. str
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.
features List<Property Map>

A features blocks as documented below.

Note Because of ADO limitations feed name can be reserved for up to 15 minutes after permanent delete of the feed

name Changes to this property will trigger replacement. String
The name of the Feed.
projectId Changes to this property will trigger replacement. String
The ID of the Project Feed is created in. If not specified, feed will be created at the organization level.

Supporting Types

FeedFeature
, FeedFeatureArgs

PermanentDelete bool
Determines if Feed should be Permanently removed, Defaults to false
Restore bool
Determines if Feed should be Restored during creation (if possible), Defaults to false
PermanentDelete bool
Determines if Feed should be Permanently removed, Defaults to false
Restore bool
Determines if Feed should be Restored during creation (if possible), Defaults to false
permanentDelete Boolean
Determines if Feed should be Permanently removed, Defaults to false
restore Boolean
Determines if Feed should be Restored during creation (if possible), Defaults to false
permanentDelete boolean
Determines if Feed should be Permanently removed, Defaults to false
restore boolean
Determines if Feed should be Restored during creation (if possible), Defaults to false
permanent_delete bool
Determines if Feed should be Permanently removed, Defaults to false
restore bool
Determines if Feed should be Restored during creation (if possible), Defaults to false
permanentDelete Boolean
Determines if Feed should be Permanently removed, Defaults to false
restore Boolean
Determines if Feed should be Restored during creation (if possible), Defaults to false

Import

Azure DevOps Feed can be imported using the Project ID and Feed ID or Feed ID e.g.:

$ pulumi import azuredevops:index/feed:Feed example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
Copy

or

$ pulumi import azuredevops:index/feed:Feed example 00000000-0000-0000-0000-000000000000
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure DevOps pulumi/pulumi-azuredevops
License
Apache-2.0
Notes
This Pulumi package is based on the azuredevops Terraform Provider.