1+ {
2+ "id" : " https://schema.management.azure.com/schemas/2022-04-01-preview/Microsoft.DevHub.json#" ,
3+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
4+ "title" : " Microsoft.DevHub" ,
5+ "description" : " Microsoft DevHub Resource Types" ,
6+ "resourceDefinitions" : {
7+ "workflows" : {
8+ "type" : " object" ,
9+ "properties" : {
10+ "apiVersion" : {
11+ "type" : " string" ,
12+ "enum" : [
13+ " 2022-04-01-preview"
14+ ]
15+ },
16+ "location" : {
17+ "type" : " string" ,
18+ "description" : " The geo-location where the resource lives"
19+ },
20+ "name" : {
21+ "oneOf" : [
22+ {
23+ "type" : " string" ,
24+ "pattern" : " ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$" ,
25+ "minLength" : 1 ,
26+ "maxLength" : 63
27+ },
28+ {
29+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
30+ }
31+ ],
32+ "description" : " The name of the workflow resource."
33+ },
34+ "properties" : {
35+ "oneOf" : [
36+ {
37+ "$ref" : " #/definitions/WorkflowProperties"
38+ },
39+ {
40+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
41+ }
42+ ],
43+ "description" : " Workflow properties"
44+ },
45+ "tags" : {
46+ "oneOf" : [
47+ {
48+ "type" : " object" ,
49+ "additionalProperties" : {
50+ "type" : " string"
51+ },
52+ "properties" : {}
53+ },
54+ {
55+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
56+ }
57+ ],
58+ "description" : " Resource tags."
59+ },
60+ "type" : {
61+ "type" : " string" ,
62+ "enum" : [
63+ " Microsoft.DevHub/workflows"
64+ ]
65+ }
66+ },
67+ "required" : [
68+ " apiVersion" ,
69+ " location" ,
70+ " name" ,
71+ " properties" ,
72+ " type"
73+ ],
74+ "description" : " Microsoft.DevHub/workflows"
75+ }
76+ },
77+ "definitions" : {
78+ "ACR" : {
79+ "type" : " object" ,
80+ "properties" : {
81+ "acrRegistryName" : {
82+ "type" : " string" ,
83+ "description" : " ACR registry"
84+ },
85+ "acrRepositoryName" : {
86+ "type" : " string" ,
87+ "description" : " ACR repository"
88+ },
89+ "acrResourceGroup" : {
90+ "type" : " string" ,
91+ "description" : " ACR resource group"
92+ },
93+ "acrSubscriptionId" : {
94+ "type" : " string" ,
95+ "description" : " ACR subscription id"
96+ }
97+ },
98+ "description" : " Information on the azure container registry"
99+ },
100+ "DeploymentProperties" : {
101+ "type" : " object" ,
102+ "properties" : {
103+ "helmChartPath" : {
104+ "type" : " string" ,
105+ "description" : " Helm chart directory path in repository."
106+ },
107+ "helmValues" : {
108+ "type" : " string" ,
109+ "description" : " Helm Values.yaml file location in repository."
110+ },
111+ "kubeManifestLocations" : {
112+ "oneOf" : [
113+ {
114+ "type" : " array" ,
115+ "items" : {
116+ "type" : " string"
117+ }
118+ },
119+ {
120+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
121+ }
122+ ]
123+ },
124+ "manifestType" : {
125+ "oneOf" : [
126+ {
127+ "type" : " string" ,
128+ "enum" : [
129+ " helm" ,
130+ " kube"
131+ ]
132+ },
133+ {
134+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
135+ }
136+ ]
137+ },
138+ "overrides" : {
139+ "oneOf" : [
140+ {
141+ "type" : " object" ,
142+ "additionalProperties" : {
143+ "type" : " string"
144+ },
145+ "properties" : {}
146+ },
147+ {
148+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
149+ }
150+ ],
151+ "description" : " Manifest override values."
152+ }
153+ }
154+ },
155+ "GitHubWorkflowProfile" : {
156+ "type" : " object" ,
157+ "properties" : {
158+ "acr" : {
159+ "oneOf" : [
160+ {
161+ "$ref" : " #/definitions/ACR"
162+ },
163+ {
164+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
165+ }
166+ ],
167+ "description" : " Information on the azure container registry"
168+ },
169+ "aksResourceId" : {
170+ "type" : " string" ,
171+ "description" : " The Azure Kubernetes Cluster Resource the application will be deployed to."
172+ },
173+ "authStatus" : {
174+ "oneOf" : [
175+ {
176+ "type" : " string" ,
177+ "enum" : [
178+ " Authorized" ,
179+ " NotFound" ,
180+ " Error"
181+ ]
182+ },
183+ {
184+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
185+ }
186+ ]
187+ },
188+ "branchName" : {
189+ "type" : " string" ,
190+ "description" : " Repository Branch Name"
191+ },
192+ "deploymentProperties" : {
193+ "oneOf" : [
194+ {
195+ "$ref" : " #/definitions/DeploymentProperties"
196+ },
197+ {
198+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
199+ }
200+ ]
201+ },
202+ "dockerBuildContext" : {
203+ "type" : " string" ,
204+ "description" : " Path to Dockerfile Build Context within the repository."
205+ },
206+ "dockerfile" : {
207+ "type" : " string" ,
208+ "description" : " Path to the Dockerfile within the repository."
209+ },
210+ "lastWorkflowRun" : {
211+ "oneOf" : [
212+ {
213+ "$ref" : " #/definitions/WorkflowRun"
214+ },
215+ {
216+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
217+ }
218+ ]
219+ },
220+ "namespace" : {
221+ "type" : " string" ,
222+ "description" : " Kubernetes namespace the application is deployed to."
223+ },
224+ "oidcCredentials" : {
225+ "oneOf" : [
226+ {
227+ "$ref" : " #/definitions/GitHubWorkflowProfileOidcCredentials"
228+ },
229+ {
230+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
231+ }
232+ ],
233+ "description" : " The fields needed for OIDC with GitHub."
234+ },
235+ "prStatus" : {
236+ "oneOf" : [
237+ {
238+ "type" : " string" ,
239+ "enum" : [
240+ " unknown" ,
241+ " submitted" ,
242+ " merged" ,
243+ " removed"
244+ ]
245+ },
246+ {
247+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
248+ }
249+ ]
250+ },
251+ "repositoryName" : {
252+ "type" : " string" ,
253+ "description" : " Repository Name"
254+ },
255+ "repositoryOwner" : {
256+ "type" : " string" ,
257+ "description" : " Repository Owner"
258+ }
259+ },
260+ "description" : " GitHub Workflow Profile"
261+ },
262+ "GitHubWorkflowProfileOidcCredentials" : {
263+ "type" : " object" ,
264+ "properties" : {
265+ "azureClientId" : {
266+ "type" : " string" ,
267+ "description" : " Azure Application Client ID"
268+ },
269+ "azureTenantId" : {
270+ "type" : " string" ,
271+ "description" : " Azure Directory (tenant) ID"
272+ }
273+ },
274+ "description" : " The fields needed for OIDC with GitHub."
275+ },
276+ "WorkflowProperties" : {
277+ "type" : " object" ,
278+ "properties" : {
279+ "githubWorkflowProfile" : {
280+ "oneOf" : [
281+ {
282+ "$ref" : " #/definitions/GitHubWorkflowProfile"
283+ },
284+ {
285+ "$ref" : " https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
286+ }
287+ ],
288+ "description" : " GitHub Workflow Profile"
289+ }
290+ },
291+ "description" : " Workflow properties"
292+ },
293+ "WorkflowRun" : {
294+ "type" : " object" ,
295+ "properties" : {}
296+ }
297+ }
298+ }
0 commit comments