File tree 3 files changed +33
-24
lines changed
3 files changed +33
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ terraform {
14
14
15
15
16
16
resource "azuredevops_project" "test" {
17
- project_name = " Test Project "
18
- description = " Test Project Description "
17
+ project_name = var . project_name
18
+ description = var . project_description
19
19
visibility = " private"
20
- version_control = " Git "
21
- work_item_template = " Agile "
20
+ version_control = var . version_control
21
+ work_item_template = var . work_item_template
22
22
23
23
features = {
24
24
" testplans" = " disabled"
@@ -28,7 +28,7 @@ resource "azuredevops_project" "test" {
28
28
29
29
resource "azuredevops_git_repository" "repo" {
30
30
project_id = azuredevops_project. test . id
31
- name = " Sample Empty Git Repository "
31
+ name = var . repo_name
32
32
initialization {
33
33
init_type = " Uninitialized"
34
34
}
Original file line number Diff line number Diff line change @@ -13,4 +13,32 @@ variable "subscription_name" {
13
13
variable "project_admin_user_email" {
14
14
type = string
15
15
description = " The email address of the user who will be the admin of the DevOps Project"
16
+ }
17
+
18
+ variable "repo_name" {
19
+ type = string
20
+ description = " The name of your Code Repository"
21
+ }
22
+
23
+ variable "work_item_template" {
24
+ type = string
25
+ description = " Azure DevOps Work Item Template"
26
+ default = " Agile"
27
+ }
28
+
29
+ variable "version_control" {
30
+ type = string
31
+ description = " TFVC or Git"
32
+ default = " Git"
33
+ }
34
+
35
+ variable "project_description" {
36
+ type = string
37
+ description = " Please enter a description for your DevOps Project"
38
+ default = " Please enter a description for your DevOps Project"
39
+ }
40
+
41
+ variable "project_name" {
42
+ type = string
43
+ description = " Please enter a name for your project"
16
44
}
You can’t perform that action at this time.
0 commit comments