layout | page_title | description |
---|---|---|
azuredevops |
AzureDevops: azuredevops_variable_group |
Use this data source to access information about existing Variable Groups within Azure DevOps. |
Use this data source to access information about existing Variable Groups within Azure DevOps.
~> Note: Secret values are masked by service and cannot be obtained through API. Set secret variables
data "azuredevops_project" "example" {
name = "Example Project"
}
data "azuredevops_variable_group" "example" {
project_id = data.azuredevops_project.example.id
name = "Example Variable Group"
}
output "id" {
value = data.azuredevops_variable_group.example.id
}
The following arguments are supported:
-
project_id
- (Required) The project ID. -
name
- (Required) The name of the Variable Group to retrieve.
In addition to all arguments above, the following attributes are exported:
-
id
- The ID of the Variable Group. -
description
- The description of the Variable Group. -
allow_access
- Boolean that indicate if this Variable Group is shared by all pipelines of this project. -
variable
- One or morevariable
blocks as documented below. -
key_vault
- A list ofkey_vault
blocks as documented below.
A variable
block supports the following:
-
name
- The key value used for the variable. -
value
- The value of the variable. -
secret_value
- The secret value of the variable. -
is_secret
- A boolean flag describing if the variable value is sensitive.
A key_vault
block supports the following:
-
name
- The name of the Azure key vault to link secrets from as variables. -
service_endpoint_id
- The id of the Azure subscription endpoint to access the key vault.
The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 30 minute) Used when retrieving the Variable Group.