ProjectFeatures
Manages features for Azure DevOps projects
Relevant Links
No official documentation available
PAT Permissions Required
- Project & Team: Read, Write, & Manage
Example Usage
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
class MyStack : Stack
{
public MyStack()
{
var tf_project_test_001 = Output.Create(AzureDevOps.Core.GetProject.InvokeAsync(new AzureDevOps.Core.GetProjectArgs
{
ProjectName = "Test Project",
}));
var my_project_features = new AzureDevOps.Core.ProjectFeatures("my-project-features", new AzureDevOps.Core.ProjectFeaturesArgs
{
ProjectId = tf_project_test_001.Apply(tf_project_test_001 => tf_project_test_001.Id),
Features =
{
{ "testplans", "disabled" },
{ "artifacts", "enabled" },
},
});
}
}
Coming soon!
import pulumi
import pulumi_azuredevops as azuredevops
tf_project_test_001 = azuredevops.Core.get_project(project_name="Test Project")
my_project_features = azuredevops.core.ProjectFeatures("my-project-features",
project_id=tf_project_test_001.id,
features={
"testplans": "disabled",
"artifacts": "enabled",
})import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const tf-project-test-001 = azuredevops.Core.getProject({
projectName: "Test Project",
});
const my_project_features = new azuredevops.Core.ProjectFeatures("my-project-features", {
projectId: tf_project_test_001.then(tf_project_test_001 => tf_project_test_001.id),
features: {
testplans: "disabled",
artifacts: "enabled",
},
});Create a ProjectFeatures Resource
new ProjectFeatures(name: string, args: ProjectFeaturesArgs, opts?: CustomResourceOptions);def ProjectFeatures(resource_name, opts=None, features=None, project_id=None, __props__=None);func NewProjectFeatures(ctx *Context, name string, args ProjectFeaturesArgs, opts ...ResourceOption) (*ProjectFeatures, error)public ProjectFeatures(string name, ProjectFeaturesArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ProjectFeaturesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProjectFeaturesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProjectFeaturesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ProjectFeatures Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ProjectFeatures resource accepts the following input properties:
- features Dict[str, str]
Defines the status (
enabled,disabled) of the project features.
Valid featuresboards,repositories,pipelines,testplans,artifacts- project_
id str
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectFeatures resource produces the following output properties:
Look up an Existing ProjectFeatures Resource
Get an existing ProjectFeatures 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?: ProjectFeaturesState, opts?: CustomResourceOptions): ProjectFeaturesstatic get(resource_name, id, opts=None, features=None, project_id=None, __props__=None);func GetProjectFeatures(ctx *Context, name string, id IDInput, state *ProjectFeaturesState, opts ...ResourceOption) (*ProjectFeatures, error)public static ProjectFeatures Get(string name, Input<string> id, ProjectFeaturesState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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 Dict[str, str]
Defines the status (
enabled,disabled) of the project features.
Valid featuresboards,repositories,pipelines,testplans,artifacts- project_
id str
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.