This page documents the language specification for the azuredevops package. If you're looking for help working with the inputs, outputs, or functions of azuredevops resources in a Pulumi program, please see the resource documentation for examples and API reference.

pipeline

This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-azuredevops repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-azuredevops repo.

class pulumi_azuredevops.pipeline.VariableGroup(resource_name, opts=None, allow_access=None, description=None, key_vault=None, name=None, project_id=None, variables=None, __props__=None, __name__=None, __opts__=None)

Manages variable groups within Azure DevOps.

import pulumi
import pulumi_azuredevops as azuredevops

project = azuredevops.core.Project("project", project_name="Test Project")
variablegroup = azuredevops.pipeline.VariableGroup("variablegroup",
    project_id=project.id,
    description="Test Variable Group Description",
    allow_access=True,
    variable=[
        {
            "name": "key",
            "value": "value",
        },
        {
            "name": "Account Password",
            "value": "p@ssword123",
            "isSecret": True,
        },
    ])
  • Variable Groups: Read, Create, & Manage

Parameters
  • resource_name (str) – The name of the resource.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • allow_access (pulumi.Input[bool]) – Boolean that indicate if this variable group is shared by all pipelines of this project.

  • description (pulumi.Input[str]) – The description of the Variable Group.

  • name (pulumi.Input[str]) – The name of the Variable Group.

  • project_id (pulumi.Input[str]) – The project ID or project name.

  • variables (pulumi.Input[list]) – One or more variable blocks as documented below.

The key_vault object supports the following:

  • name (pulumi.Input[str]) - The name of the Variable Group.

  • serviceEndpointId (pulumi.Input[str])

The variables object supports the following:

  • contentType (pulumi.Input[str])

  • enabled (pulumi.Input[bool])

  • expires (pulumi.Input[str])

  • isSecret (pulumi.Input[bool]) - A boolean flag describing if the variable value is sensitive. Defaults to false.

  • name (pulumi.Input[str]) - The key value used for the variable. Must be unique within the Variable Group.

  • secretValue (pulumi.Input[str]) - The secret value of the variable. If omitted, it will default to empty string. Used when is_secret set to true.

  • value (pulumi.Input[str]) - The value of the variable. If omitted, it will default to empty string.

allow_access: pulumi.Output[bool] = None

Boolean that indicate if this variable group is shared by all pipelines of this project.

description: pulumi.Output[str] = None

The description of the Variable Group.

name: pulumi.Output[str] = None

The name of the Variable Group.

project_id: pulumi.Output[str] = None

The project ID or project name.

variables: pulumi.Output[list] = None

One or more variable blocks as documented below.

  • contentType (str)

  • enabled (bool)

  • expires (str)

  • isSecret (bool) - A boolean flag describing if the variable value is sensitive. Defaults to false.

  • name (str) - The key value used for the variable. Must be unique within the Variable Group.

  • secretValue (str) - The secret value of the variable. If omitted, it will default to empty string. Used when is_secret set to true.

  • value (str) - The value of the variable. If omitted, it will default to empty string.

static get(resource_name, id, opts=None, allow_access=None, description=None, key_vault=None, name=None, project_id=None, variables=None)

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

Parameters
  • resource_name (str) – The unique name of the resulting resource.

  • id (str) – The unique provider ID of the resource to lookup.

  • opts (pulumi.ResourceOptions) – Options for the resource.

  • allow_access (pulumi.Input[bool]) – Boolean that indicate if this variable group is shared by all pipelines of this project.

  • description (pulumi.Input[str]) – The description of the Variable Group.

  • name (pulumi.Input[str]) – The name of the Variable Group.

  • project_id (pulumi.Input[str]) – The project ID or project name.

  • variables (pulumi.Input[list]) – One or more variable blocks as documented below.

The key_vault object supports the following:

  • name (pulumi.Input[str]) - The name of the Variable Group.

  • serviceEndpointId (pulumi.Input[str])

The variables object supports the following:

  • contentType (pulumi.Input[str])

  • enabled (pulumi.Input[bool])

  • expires (pulumi.Input[str])

  • isSecret (pulumi.Input[bool]) - A boolean flag describing if the variable value is sensitive. Defaults to false.

  • name (pulumi.Input[str]) - The key value used for the variable. Must be unique within the Variable Group.

  • secretValue (pulumi.Input[str]) - The secret value of the variable. If omitted, it will default to empty string. Used when is_secret set to true.

  • value (pulumi.Input[str]) - The value of the variable. If omitted, it will default to empty string.

translate_output_property(prop)

Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str

translate_input_property(prop)

Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.

Parameters

prop (str) – A property name.

Returns

A potentially transformed property name.

Return type

str