/
devCentertemplate.json
87 lines (87 loc) · 2.96 KB
/
devCentertemplate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"devCenterName": {
"defaultValue": "",
"type": "String"
},
"networkConnectionId": {
"defaultValue": "",
"type": "String"
},
"computeGalleryId": {
"defaultValue": "",
"type": "String"
},
"location": {
"defaultValue": "",
"type": "String"
},
"networkConnectionName": {
"defaultValue": "",
"type": "String"
},
"userIdentityId": {
"defaultValue": "",
"type": "String"
},
"computeGalleryImageName": {
"defaultValue": "",
"type": "String"
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.DevCenter/devcenters",
"apiVersion": "2023-10-01-preview",
"name": "[parameters('devCenterName')]",
"location": "[parameters('location')]",
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"[parameters('userIdentityId')]": {}
}
},
"properties": {}
},
{
"type": "Microsoft.DevCenter/devcenters/catalogs",
"apiVersion": "2023-10-01-preview",
"name": "[concat(parameters('devCenterName'), '/quickstart-devbox-tasks')]",
"dependsOn": [
"[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]"
],
"properties": {
"gitHub": {
"uri": "https://github.com/Evilazaro/MicrosoftDevBox.git",
"branch": "main",
"path": "Tasks"
}
}
},
{
"type": "Microsoft.DevCenter/devcenters/attachednetworks",
"apiVersion": "2023-04-01",
"name": "[concat(parameters('devCenterName'), '/', parameters('networkConnectionName'))]",
"dependsOn": [
"[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]"
],
"properties": {
"networkConnectionId": "[parameters('networkConnectionId')]"
}
},
{
"type": "Microsoft.DevCenter/devcenters/galleries",
"apiVersion": "2023-04-01",
"name": "[concat(parameters('devCenterName'), '/', parameters('computeGalleryImageName'))]",
"dependsOn": [
"[resourceId('Microsoft.DevCenter/devcenters', parameters('devCenterName'))]"
],
"properties": {
"galleryResourceId": "[parameters('computeGalleryId')]"
}
}
]
}