Azure DevOps v2.7.0, Mar 27 23
Azure DevOps v2.7.0, Mar 27 23
azuredevops.VariableGroup
Explore with Pulumi AI
Relevant Links
- Azure DevOps Service REST API 6.0 - Variable Groups
- Azure DevOps Service REST API 6.0 - Authorized Resources
PAT Permissions Required
- Variable Groups: Read, Create, & Manage
- Build: Read & execute
- Project and Team: Read
- Token Administration: Read & manage
- Tokens: Read & manage
- Work Items: Read
Example Usage
using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var exampleProject = new AzureDevOps.Project("exampleProject", new()
{
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
Description = "Managed by Terraform",
});
var exampleVariableGroup = new AzureDevOps.VariableGroup("exampleVariableGroup", new()
{
ProjectId = exampleProject.Id,
Description = "Example Variable Group Description",
AllowAccess = true,
Variables = new[]
{
new AzureDevOps.Inputs.VariableGroupVariableArgs
{
Name = "key1",
Value = "val1",
},
new AzureDevOps.Inputs.VariableGroupVariableArgs
{
Name = "key2",
SecretValue = "val2",
IsSecret = true,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", &azuredevops.ProjectArgs{
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
Description: pulumi.String("Managed by Terraform"),
})
if err != nil {
return err
}
_, err = azuredevops.NewVariableGroup(ctx, "exampleVariableGroup", &azuredevops.VariableGroupArgs{
ProjectId: exampleProject.ID(),
Description: pulumi.String("Example Variable Group Description"),
AllowAccess: pulumi.Bool(true),
Variables: azuredevops.VariableGroupVariableArray{
&azuredevops.VariableGroupVariableArgs{
Name: pulumi.String("key1"),
Value: pulumi.String("val1"),
},
&azuredevops.VariableGroupVariableArgs{
Name: pulumi.String("key2"),
SecretValue: pulumi.String("val2"),
IsSecret: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
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.VariableGroup;
import com.pulumi.azuredevops.VariableGroupArgs;
import com.pulumi.azuredevops.inputs.VariableGroupVariableArgs;
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 exampleProject = new Project("exampleProject", ProjectArgs.builder()
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.description("Managed by Terraform")
.build());
var exampleVariableGroup = new VariableGroup("exampleVariableGroup", VariableGroupArgs.builder()
.projectId(exampleProject.id())
.description("Example Variable Group Description")
.allowAccess(true)
.variables(
VariableGroupVariableArgs.builder()
.name("key1")
.value("val1")
.build(),
VariableGroupVariableArgs.builder()
.name("key2")
.secretValue("val2")
.isSecret(true)
.build())
.build());
}
}
import pulumi
import pulumi_azuredevops as azuredevops
example_project = azuredevops.Project("exampleProject",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
example_variable_group = azuredevops.VariableGroup("exampleVariableGroup",
project_id=example_project.id,
description="Example Variable Group Description",
allow_access=True,
variables=[
azuredevops.VariableGroupVariableArgs(
name="key1",
value="val1",
),
azuredevops.VariableGroupVariableArgs(
name="key2",
secret_value="val2",
is_secret=True,
),
])
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const exampleProject = new azuredevops.Project("exampleProject", {
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
description: "Managed by Terraform",
});
const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
projectId: exampleProject.id,
description: "Example Variable Group Description",
allowAccess: true,
variables: [
{
name: "key1",
value: "val1",
},
{
name: "key2",
secretValue: "val2",
isSecret: true,
},
],
});
resources:
exampleProject:
type: azuredevops:Project
properties:
workItemTemplate: Agile
versionControl: Git
visibility: private
description: Managed by Terraform
exampleVariableGroup:
type: azuredevops:VariableGroup
properties:
projectId: ${exampleProject.id}
description: Example Variable Group Description
allowAccess: true
variables:
- name: key1
value: val1
- name: key2
secretValue: val2
isSecret: true
With AzureRM Key Vault
using System.Collections.Generic;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var exampleProject = new AzureDevOps.Project("exampleProject", new()
{
WorkItemTemplate = "Agile",
VersionControl = "Git",
Visibility = "private",
Description = "Managed by Terraform",
});
var exampleServiceEndpointAzureRM = new AzureDevOps.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", new()
{
ProjectId = exampleProject.Id,
ServiceEndpointName = "Example AzureRM",
Description = "Managed by Terraform",
Credentials = new AzureDevOps.Inputs.ServiceEndpointAzureRMCredentialsArgs
{
Serviceprincipalid = "00000000-0000-0000-0000-000000000000",
Serviceprincipalkey = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
},
AzurermSpnTenantid = "00000000-0000-0000-0000-000000000000",
AzurermSubscriptionId = "00000000-0000-0000-0000-000000000000",
AzurermSubscriptionName = "Example Subscription Name",
});
var exampleVariableGroup = new AzureDevOps.VariableGroup("exampleVariableGroup", new()
{
ProjectId = exampleProject.Id,
Description = "Example Variable Group Description",
AllowAccess = true,
KeyVault = new AzureDevOps.Inputs.VariableGroupKeyVaultArgs
{
Name = "example-kv",
ServiceEndpointId = exampleServiceEndpointAzureRM.Id,
},
Variables = new[]
{
new AzureDevOps.Inputs.VariableGroupVariableArgs
{
Name = "key1",
},
new AzureDevOps.Inputs.VariableGroupVariableArgs
{
Name = "key2",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v2/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleProject, err := azuredevops.NewProject(ctx, "exampleProject", &azuredevops.ProjectArgs{
WorkItemTemplate: pulumi.String("Agile"),
VersionControl: pulumi.String("Git"),
Visibility: pulumi.String("private"),
Description: pulumi.String("Managed by Terraform"),
})
if err != nil {
return err
}
exampleServiceEndpointAzureRM, err := azuredevops.NewServiceEndpointAzureRM(ctx, "exampleServiceEndpointAzureRM", &azuredevops.ServiceEndpointAzureRMArgs{
ProjectId: exampleProject.ID(),
ServiceEndpointName: pulumi.String("Example AzureRM"),
Description: pulumi.String("Managed by Terraform"),
Credentials: &azuredevops.ServiceEndpointAzureRMCredentialsArgs{
Serviceprincipalid: pulumi.String("00000000-0000-0000-0000-000000000000"),
Serviceprincipalkey: pulumi.String("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"),
},
AzurermSpnTenantid: pulumi.String("00000000-0000-0000-0000-000000000000"),
AzurermSubscriptionId: pulumi.String("00000000-0000-0000-0000-000000000000"),
AzurermSubscriptionName: pulumi.String("Example Subscription Name"),
})
if err != nil {
return err
}
_, err = azuredevops.NewVariableGroup(ctx, "exampleVariableGroup", &azuredevops.VariableGroupArgs{
ProjectId: exampleProject.ID(),
Description: pulumi.String("Example Variable Group Description"),
AllowAccess: pulumi.Bool(true),
KeyVault: &azuredevops.VariableGroupKeyVaultArgs{
Name: pulumi.String("example-kv"),
ServiceEndpointId: exampleServiceEndpointAzureRM.ID(),
},
Variables: azuredevops.VariableGroupVariableArray{
&azuredevops.VariableGroupVariableArgs{
Name: pulumi.String("key1"),
},
&azuredevops.VariableGroupVariableArgs{
Name: pulumi.String("key2"),
},
},
})
if err != nil {
return err
}
return nil
})
}
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.ServiceEndpointAzureRM;
import com.pulumi.azuredevops.ServiceEndpointAzureRMArgs;
import com.pulumi.azuredevops.inputs.ServiceEndpointAzureRMCredentialsArgs;
import com.pulumi.azuredevops.VariableGroup;
import com.pulumi.azuredevops.VariableGroupArgs;
import com.pulumi.azuredevops.inputs.VariableGroupKeyVaultArgs;
import com.pulumi.azuredevops.inputs.VariableGroupVariableArgs;
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 exampleProject = new Project("exampleProject", ProjectArgs.builder()
.workItemTemplate("Agile")
.versionControl("Git")
.visibility("private")
.description("Managed by Terraform")
.build());
var exampleServiceEndpointAzureRM = new ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", ServiceEndpointAzureRMArgs.builder()
.projectId(exampleProject.id())
.serviceEndpointName("Example AzureRM")
.description("Managed by Terraform")
.credentials(ServiceEndpointAzureRMCredentialsArgs.builder()
.serviceprincipalid("00000000-0000-0000-0000-000000000000")
.serviceprincipalkey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
.build())
.azurermSpnTenantid("00000000-0000-0000-0000-000000000000")
.azurermSubscriptionId("00000000-0000-0000-0000-000000000000")
.azurermSubscriptionName("Example Subscription Name")
.build());
var exampleVariableGroup = new VariableGroup("exampleVariableGroup", VariableGroupArgs.builder()
.projectId(exampleProject.id())
.description("Example Variable Group Description")
.allowAccess(true)
.keyVault(VariableGroupKeyVaultArgs.builder()
.name("example-kv")
.serviceEndpointId(exampleServiceEndpointAzureRM.id())
.build())
.variables(
VariableGroupVariableArgs.builder()
.name("key1")
.build(),
VariableGroupVariableArgs.builder()
.name("key2")
.build())
.build());
}
}
import pulumi
import pulumi_azuredevops as azuredevops
example_project = azuredevops.Project("exampleProject",
work_item_template="Agile",
version_control="Git",
visibility="private",
description="Managed by Terraform")
example_service_endpoint_azure_rm = azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM",
project_id=example_project.id,
service_endpoint_name="Example AzureRM",
description="Managed by Terraform",
credentials=azuredevops.ServiceEndpointAzureRMCredentialsArgs(
serviceprincipalid="00000000-0000-0000-0000-000000000000",
serviceprincipalkey="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
),
azurerm_spn_tenantid="00000000-0000-0000-0000-000000000000",
azurerm_subscription_id="00000000-0000-0000-0000-000000000000",
azurerm_subscription_name="Example Subscription Name")
example_variable_group = azuredevops.VariableGroup("exampleVariableGroup",
project_id=example_project.id,
description="Example Variable Group Description",
allow_access=True,
key_vault=azuredevops.VariableGroupKeyVaultArgs(
name="example-kv",
service_endpoint_id=example_service_endpoint_azure_rm.id,
),
variables=[
azuredevops.VariableGroupVariableArgs(
name="key1",
),
azuredevops.VariableGroupVariableArgs(
name="key2",
),
])
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const exampleProject = new azuredevops.Project("exampleProject", {
workItemTemplate: "Agile",
versionControl: "Git",
visibility: "private",
description: "Managed by Terraform",
});
const exampleServiceEndpointAzureRM = new azuredevops.ServiceEndpointAzureRM("exampleServiceEndpointAzureRM", {
projectId: exampleProject.id,
serviceEndpointName: "Example AzureRM",
description: "Managed by Terraform",
credentials: {
serviceprincipalid: "00000000-0000-0000-0000-000000000000",
serviceprincipalkey: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
},
azurermSpnTenantid: "00000000-0000-0000-0000-000000000000",
azurermSubscriptionId: "00000000-0000-0000-0000-000000000000",
azurermSubscriptionName: "Example Subscription Name",
});
const exampleVariableGroup = new azuredevops.VariableGroup("exampleVariableGroup", {
projectId: exampleProject.id,
description: "Example Variable Group Description",
allowAccess: true,
keyVault: {
name: "example-kv",
serviceEndpointId: exampleServiceEndpointAzureRM.id,
},
variables: [
{
name: "key1",
},
{
name: "key2",
},
],
});
resources:
exampleProject:
type: azuredevops:Project
properties:
workItemTemplate: Agile
versionControl: Git
visibility: private
description: Managed by Terraform
exampleServiceEndpointAzureRM:
type: azuredevops:ServiceEndpointAzureRM
properties:
projectId: ${exampleProject.id}
serviceEndpointName: Example AzureRM
description: Managed by Terraform
credentials:
serviceprincipalid: 00000000-0000-0000-0000-000000000000
serviceprincipalkey: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
azurermSpnTenantid: 00000000-0000-0000-0000-000000000000
azurermSubscriptionId: 00000000-0000-0000-0000-000000000000
azurermSubscriptionName: Example Subscription Name
exampleVariableGroup:
type: azuredevops:VariableGroup
properties:
projectId: ${exampleProject.id}
description: Example Variable Group Description
allowAccess: true
keyVault:
name: example-kv
serviceEndpointId: ${exampleServiceEndpointAzureRM.id}
variables:
- name: key1
- name: key2
Create VariableGroup Resource
new VariableGroup(name: string, args: VariableGroupArgs, opts?: CustomResourceOptions);
@overload
def VariableGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
allow_access: Optional[bool] = None,
description: Optional[str] = None,
key_vault: Optional[VariableGroupKeyVaultArgs] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
variables: Optional[Sequence[VariableGroupVariableArgs]] = None)
@overload
def VariableGroup(resource_name: str,
args: VariableGroupArgs,
opts: Optional[ResourceOptions] = None)
func NewVariableGroup(ctx *Context, name string, args VariableGroupArgs, opts ...ResourceOption) (*VariableGroup, error)
public VariableGroup(string name, VariableGroupArgs args, CustomResourceOptions? opts = null)
public VariableGroup(String name, VariableGroupArgs args)
public VariableGroup(String name, VariableGroupArgs args, CustomResourceOptions options)
type: azuredevops:VariableGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VariableGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VariableGroup resource accepts the following input properties:
- Project
Id string The project ID or project name.
- Variables
List<Pulumi.
Azure Dev Ops. Inputs. Variable Group Variable Args> One or more
variable
blocks as documented below.- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault Pulumi.Azure Dev Ops. Inputs. Variable Group Key Vault Args A list of
key_vault
blocks as documented below.- Name string
The name of the Variable Group.
- Project
Id string The project ID or project name.
- Variables
[]Variable
Group Variable Args One or more
variable
blocks as documented below.- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- Name string
The name of the Variable Group.
- project
Id String The project ID or project name.
- variables
List<Variable
Group Variable Args> One or more
variable
blocks as documented below.- allow
Access Boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description String
The description of the Variable Group.
- key
Vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- name String
The name of the Variable Group.
- project
Id string The project ID or project name.
- variables
Variable
Group Variable Args[] One or more
variable
blocks as documented below.- allow
Access boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description string
The description of the Variable Group.
- key
Vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- name string
The name of the Variable Group.
- project_
id str The project ID or project name.
- variables
Sequence[Variable
Group Variable Args] One or more
variable
blocks as documented below.- allow_
access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- description str
The description of the Variable Group.
- key_
vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- name str
The name of the Variable Group.
- project
Id String The project ID or project name.
- variables List<Property Map>
One or more
variable
blocks as documented below.- allow
Access Boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description String
The description of the Variable Group.
- key
Vault Property Map A list of
key_vault
blocks as documented below.- name String
The name of the Variable Group.
Outputs
All input properties are implicitly available as output properties. Additionally, the VariableGroup 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 VariableGroup Resource
Get an existing VariableGroup 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?: VariableGroupState, opts?: CustomResourceOptions): VariableGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_access: Optional[bool] = None,
description: Optional[str] = None,
key_vault: Optional[VariableGroupKeyVaultArgs] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
variables: Optional[Sequence[VariableGroupVariableArgs]] = None) -> VariableGroup
func GetVariableGroup(ctx *Context, name string, id IDInput, state *VariableGroupState, opts ...ResourceOption) (*VariableGroup, error)
public static VariableGroup Get(string name, Input<string> id, VariableGroupState? state, CustomResourceOptions? opts = null)
public static VariableGroup get(String name, Output<String> id, VariableGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault Pulumi.Azure Dev Ops. Inputs. Variable Group Key Vault Args A list of
key_vault
blocks as documented below.- Name string
The name of the Variable Group.
- Project
Id string The project ID or project name.
- Variables
List<Pulumi.
Azure Dev Ops. Inputs. Variable Group Variable Args> One or more
variable
blocks as documented below.
- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- Name string
The name of the Variable Group.
- Project
Id string The project ID or project name.
- Variables
[]Variable
Group Variable Args One or more
variable
blocks as documented below.
- allow
Access Boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description String
The description of the Variable Group.
- key
Vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- name String
The name of the Variable Group.
- project
Id String The project ID or project name.
- variables
List<Variable
Group Variable Args> One or more
variable
blocks as documented below.
- allow
Access boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description string
The description of the Variable Group.
- key
Vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- name string
The name of the Variable Group.
- project
Id string The project ID or project name.
- variables
Variable
Group Variable Args[] One or more
variable
blocks as documented below.
- allow_
access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- description str
The description of the Variable Group.
- key_
vault VariableGroup Key Vault Args A list of
key_vault
blocks as documented below.- name str
The name of the Variable Group.
- project_
id str The project ID or project name.
- variables
Sequence[Variable
Group Variable Args] One or more
variable
blocks as documented below.
- allow
Access Boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description String
The description of the Variable Group.
- key
Vault Property Map A list of
key_vault
blocks as documented below.- name String
The name of the Variable Group.
- project
Id String The project ID or project name.
- variables List<Property Map>
One or more
variable
blocks as documented below.
Supporting Types
VariableGroupKeyVault
- Name string
The name of the Azure key vault to link secrets from as variables.
- Service
Endpoint stringId The id of the Azure subscription endpoint to access the key vault.
- Search
Depth int Set the Azure Key Vault Secret search depth. Defaults to
20
.
- Name string
The name of the Azure key vault to link secrets from as variables.
- Service
Endpoint stringId The id of the Azure subscription endpoint to access the key vault.
- Search
Depth int Set the Azure Key Vault Secret search depth. Defaults to
20
.
- name String
The name of the Azure key vault to link secrets from as variables.
- service
Endpoint StringId The id of the Azure subscription endpoint to access the key vault.
- search
Depth Integer Set the Azure Key Vault Secret search depth. Defaults to
20
.
- name string
The name of the Azure key vault to link secrets from as variables.
- service
Endpoint stringId The id of the Azure subscription endpoint to access the key vault.
- search
Depth number Set the Azure Key Vault Secret search depth. Defaults to
20
.
- name str
The name of the Azure key vault to link secrets from as variables.
- service_
endpoint_ strid The id of the Azure subscription endpoint to access the key vault.
- search_
depth int Set the Azure Key Vault Secret search depth. Defaults to
20
.
- name String
The name of the Azure key vault to link secrets from as variables.
- service
Endpoint StringId The id of the Azure subscription endpoint to access the key vault.
- search
Depth Number Set the Azure Key Vault Secret search depth. Defaults to
20
.
VariableGroupVariable
- Name string
The key value used for the variable. Must be unique within the Variable Group.
- Content
Type string - Enabled bool
- Expires string
- Is
Secret bool A boolean flag describing if the variable value is sensitive. Defaults to
false
.- Secret
Value string The secret value of the variable. If omitted, it will default to empty string. Used when
is_secret
set totrue
.- Value string
The value of the variable. If omitted, it will default to empty string.
- Name string
The key value used for the variable. Must be unique within the Variable Group.
- Content
Type string - Enabled bool
- Expires string
- Is
Secret bool A boolean flag describing if the variable value is sensitive. Defaults to
false
.- Secret
Value string The secret value of the variable. If omitted, it will default to empty string. Used when
is_secret
set totrue
.- Value string
The value of the variable. If omitted, it will default to empty string.
- name String
The key value used for the variable. Must be unique within the Variable Group.
- content
Type String - enabled Boolean
- expires String
- is
Secret Boolean A boolean flag describing if the variable value is sensitive. Defaults to
false
.- secret
Value String The secret value of the variable. If omitted, it will default to empty string. Used when
is_secret
set totrue
.- value String
The value of the variable. If omitted, it will default to empty string.
- name string
The key value used for the variable. Must be unique within the Variable Group.
- content
Type string - enabled boolean
- expires string
- is
Secret boolean A boolean flag describing if the variable value is sensitive. Defaults to
false
.- secret
Value string The secret value of the variable. If omitted, it will default to empty string. Used when
is_secret
set totrue
.- value string
The value of the variable. If omitted, it will default to empty string.
- name str
The key value used for the variable. Must be unique within the Variable Group.
- content_
type str - enabled bool
- expires str
- is_
secret bool A boolean flag describing if the variable value is sensitive. Defaults to
false
.- secret_
value str The secret value of the variable. If omitted, it will default to empty string. Used when
is_secret
set totrue
.- value str
The value of the variable. If omitted, it will default to empty string.
- name String
The key value used for the variable. Must be unique within the Variable Group.
- content
Type String - enabled Boolean
- expires String
- is
Secret Boolean A boolean flag describing if the variable value is sensitive. Defaults to
false
.- secret
Value String The secret value of the variable. If omitted, it will default to empty string. Used when
is_secret
set totrue
.- value String
The value of the variable. If omitted, it will default to empty string.
Import
Variable groups containing secret values cannot be imported. Azure DevOps Variable groups can be imported using the project name/variable group ID or by the project Guid/variable group ID, e.g.
$ pulumi import azuredevops:index/variableGroup:VariableGroup example "Example Project/10"
or
$ pulumi import azuredevops:index/variableGroup:VariableGroup example 00000000-0000-0000-0000-000000000000/0
Note that for secret variables, the import command retrieve blank value in the tfstate.
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azuredevops
Terraform Provider.