Skip to content

Commit 353cfab

Browse files
[Hub Generated] Review request for Microsoft.DevTestLab to add version stable/2018-09-15 (#12969)
* Microsoft.DevTestLabs - Fix OpenApi Spec Correctness and Completeness Issues * Fix ResourceGroup Token * Remove Unreferenced Example * Fix Prettier Issues * Remove generated list api for service runners
1 parent fb680af commit 353cfab

File tree

132 files changed

+6032
-2110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+6032
-2110
lines changed

specification/devtestlabs/resource-manager/Microsoft.DevTestLab/stable/2018-09-15/DTL.json

Lines changed: 872 additions & 1827 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"artifactSourceName": "{artifactSourceName}",
8+
"name": "{armTemplateName}"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"properties": {
14+
"displayName": "Template1",
15+
"publisher": "Microsoft",
16+
"contents": {
17+
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
18+
"contentVersion": "1.0.0.0",
19+
"parameters": {},
20+
"variables": {
21+
"resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]",
22+
"hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]",
23+
"siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]"
24+
},
25+
"resources": []
26+
},
27+
"parametersValueFilesInfo": [],
28+
"enabled": true
29+
},
30+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}",
31+
"name": "Template1",
32+
"type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates",
33+
"location": "{location}",
34+
"tags": {
35+
"MyTag": "MyValue"
36+
}
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"artifactSourceName": "{artifactSourceName}"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"value": [
13+
{
14+
"properties": {
15+
"displayName": "Template1",
16+
"publisher": "Microsoft",
17+
"contents": {
18+
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
19+
"contentVersion": "1.0.0.0",
20+
"parameters": {},
21+
"variables": {
22+
"resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]",
23+
"hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]",
24+
"siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]"
25+
},
26+
"resources": []
27+
},
28+
"parametersValueFilesInfo": [],
29+
"enabled": true
30+
},
31+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}",
32+
"name": "Template1",
33+
"type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates",
34+
"location": "{location}",
35+
"tags": {
36+
"MyTag": "MyValue"
37+
}
38+
}
39+
]
40+
}
41+
}
42+
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"name": "{artifactSourceName}",
8+
"artifactSource": {
9+
"properties": {
10+
"displayName": "{displayName}",
11+
"uri": "{artifactSourceUri}",
12+
"sourceType": "{VsoGit|GitHub|StorageAccount}",
13+
"folderPath": "{folderPath}",
14+
"armTemplateFolderPath": "{armTemplateFolderPath}",
15+
"branchRef": "{branchRef}",
16+
"securityToken": "{securityToken}",
17+
"status": "{Enabled|Disabled}"
18+
},
19+
"tags": {
20+
"tagName1": "tagValue1"
21+
}
22+
}
23+
},
24+
"responses": {
25+
"200": {
26+
"body": {
27+
"properties": {
28+
"displayName": "{displayName}",
29+
"uri": "{artifactSourceUri}",
30+
"sourceType": "{VsoGit|GitHub|StorageAccount}",
31+
"folderPath": "{folderPath}",
32+
"armTemplateFolderPath": "{armTemplateFolderPath}",
33+
"branchRef": "{branchRef}",
34+
"securityToken": "{securityToken}",
35+
"status": "{Enabled|Disabled}",
36+
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
37+
"provisioningState": "Succeeded",
38+
"uniqueIdentifier": "{uniqueIdentifier}"
39+
},
40+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
41+
"name": "{artifactSourceName}",
42+
"type": "Microsoft.DevTestLab/labs/artifactsources",
43+
"location": "{location}",
44+
"tags": {
45+
"tagName1": "tagValue1"
46+
}
47+
}
48+
},
49+
"201": {
50+
"body": {
51+
"properties": {
52+
"displayName": "{displayName}",
53+
"uri": "{artifactSourceUri}",
54+
"sourceType": "{VsoGit|GitHub|StorageAccount}",
55+
"folderPath": "{folderPath}",
56+
"armTemplateFolderPath": "{armTemplateFolderPath}",
57+
"branchRef": "{branchRef}",
58+
"securityToken": "{securityToken}",
59+
"status": "{Enabled|Disabled}",
60+
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
61+
"provisioningState": "Created",
62+
"uniqueIdentifier": "{uniqueIdentifier}"
63+
},
64+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
65+
"name": "{artifactSourceName}",
66+
"type": "Microsoft.DevTestLab/labs/artifactsources",
67+
"location": "{location}",
68+
"tags": {
69+
"tagName1": "tagValue1"
70+
}
71+
}
72+
}
73+
}
74+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"name": "{artifactSourceName}"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"name": "{artifactSourceName}"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"properties": {
13+
"displayName": "{displayName}",
14+
"uri": "{artifactSourceUri}",
15+
"sourceType": "{VsoGit|GitHub|StorageAccount}",
16+
"folderPath": "{folderPath}",
17+
"armTemplateFolderPath": "{armTemplateFolderPath}",
18+
"branchRef": "{branchRef}",
19+
"securityToken": "{securityToken}",
20+
"status": "{Enabled|Disabled}",
21+
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
22+
"provisioningState": "Succeeded",
23+
"uniqueIdentifier": "{uniqueIdentifier}"
24+
},
25+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
26+
"name": "{artifactSourceName}",
27+
"type": "Microsoft.DevTestLab/labs/artifactsources",
28+
"location": "{location}",
29+
"tags": {
30+
"tagName1": "tagValue1"
31+
}
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"properties": {
14+
"displayName": "{displayName}",
15+
"uri": "{artifactSourceUri}",
16+
"sourceType": "{VsoGit|GitHub|StorageAccount}",
17+
"folderPath": "{folderPath}",
18+
"armTemplateFolderPath": "{armTemplateFolderPath}",
19+
"branchRef": "{branchRef}",
20+
"securityToken": "{securityToken}",
21+
"status": "{Enabled|Disabled}",
22+
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
23+
"provisioningState": "Succeeded",
24+
"uniqueIdentifier": "{uniqueIdentifier}"
25+
},
26+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
27+
"name": "{artifactSourceName}",
28+
"type": "Microsoft.DevTestLab/labs/artifactsources",
29+
"location": "{location}",
30+
"tags": {
31+
"tagName1": "tagValue1"
32+
}
33+
}
34+
]
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"name": "{artifactSourceName}",
8+
"artifactSource": {
9+
"tags": {
10+
"tagName1": "tagValue1"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"properties": {
18+
"displayName": "{displayName}",
19+
"uri": "{artifactSourceUri}",
20+
"sourceType": "{VsoGit|GitHub|StorageAccount}",
21+
"folderPath": "{folderPath}",
22+
"armTemplateFolderPath": "{armTemplateFolderPath}",
23+
"branchRef": "{branchRef}",
24+
"securityToken": "{securityToken}",
25+
"status": "{Enabled|Disabled}",
26+
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
27+
"provisioningState": "Succeeded",
28+
"uniqueIdentifier": "{uniqueIdentifier}"
29+
},
30+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
31+
"name": "{artifactSourceName}",
32+
"type": "Microsoft.DevTestLab/labs/artifactsources",
33+
"location": "{location}",
34+
"tags": {
35+
"tagName1": "tagValue1"
36+
}
37+
}
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"artifactSourceName": "{artifactSourceName}",
8+
"name": "{artifactName}",
9+
"generateArmTemplateRequest": {
10+
"fileUploadOptions": "None",
11+
"location": "{location}",
12+
"virtualMachineName": "{vmName}"
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"template": {
19+
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
20+
"contentVersion": "1.0.0.0",
21+
"parameters": {
22+
"location": {
23+
"type": "string"
24+
},
25+
"extensionName": {
26+
"type": "string"
27+
}
28+
},
29+
"variables": {
30+
"_commandToExecute": "{commandToExecute}."
31+
},
32+
"resources": [
33+
{
34+
"type": "Microsoft.Compute/virtualMachines/extensions",
35+
"name": "[parameters('extensionName')]",
36+
"apiVersion": "2015-06-15",
37+
"location": "[parameters('location')]",
38+
"properties": {
39+
"publisher": "Microsoft.Compute",
40+
"type": "CustomScriptExtension",
41+
"typeHandlerVersion": "1.9",
42+
"autoUpgradeMinorVersion": "true",
43+
"forceUpdateTag": "15/10/2018 00:00:00 +00:00",
44+
"settings": {
45+
"fileUris": [
46+
"{MsDtlArtifactFileUris}"
47+
],
48+
"commandToExecute": ""
49+
},
50+
"protectedSettings": {
51+
"commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]"
52+
}
53+
}
54+
}
55+
]
56+
},
57+
"parameters": {
58+
"extensionName": {
59+
"value": "{vmName}/CustomScriptExtension"
60+
},
61+
"location": {
62+
"value": "{location}"
63+
}
64+
}
65+
}
66+
}
67+
}
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"api-version": "2018-09-15",
4+
"subscriptionId": "{subscriptionId}",
5+
"resourceGroupName": "resourceGroupName",
6+
"labName": "{labName}",
7+
"artifactSourceName": "{artifactSourceName}",
8+
"name": "{artifactName}"
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"properties": {
14+
"title": "Sample Artifact Title",
15+
"description": "Sample artifact description.",
16+
"publisher": "Microsoft",
17+
"filePath": "{artifactsPath}/{artifactName}",
18+
"targetOsType": "Windows",
19+
"parameters": {
20+
"uri": {
21+
"type": "string",
22+
"displayName": "Sample Parameter 1",
23+
"description": "Sample parameter 1 description.",
24+
"defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/..."
25+
}
26+
}
27+
},
28+
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}",
29+
"name": "{artifactName}",
30+
"type": "Microsoft.DevTestLab/labs/artifactSources/artifacts",
31+
"location": "{location}",
32+
"tags": {
33+
"MyTag": "MyValue"
34+
}
35+
}
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)