Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"artifactSourceName": "{artifactSourceName}",
"name": "{armTemplateName}"
},
"responses": {
"200": {
"body": {
"properties": {
"displayName": "Template1",
"publisher": "Microsoft",
"contents": {
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {
"resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]",
"hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]",
"siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]"
},
"resources": []
},
"parametersValueFilesInfo": [],
"enabled": true
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}",
"name": "Template1",
"type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates",
"location": "{location}",
"tags": {
"MyTag": "MyValue"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"artifactSourceName": "{artifactSourceName}"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"displayName": "Template1",
"publisher": "Microsoft",
"contents": {
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {
"resourceNamePrefix": "[take(uniqueString(resourceGroup().id), 3)]",
"hostingPlanName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6), '-sp'))]",
"siteName": "[toLower(concat(variables('resourceNamePrefix'), '-', take(uniqueString(resourceGroup().id), 6)))]"
},
"resources": []
},
"parametersValueFilesInfo": [],
"enabled": true
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/armTemplates/{armTemplateName}",
"name": "Template1",
"type": "Microsoft.DevTestLab/labs/artifactSources/armTemplates",
"location": "{location}",
"tags": {
"MyTag": "MyValue"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"name": "{artifactSourceName}",
"artifactSource": {
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}"
},
"tags": {
"tagName1": "tagValue1"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}",
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
"provisioningState": "Succeeded",
"uniqueIdentifier": "{uniqueIdentifier}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
"name": "{artifactSourceName}",
"type": "Microsoft.DevTestLab/labs/artifactsources",
"location": "{location}",
"tags": {
"tagName1": "tagValue1"
}
}
},
"201": {
"body": {
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}",
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
"provisioningState": "Created",
"uniqueIdentifier": "{uniqueIdentifier}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
"name": "{artifactSourceName}",
"type": "Microsoft.DevTestLab/labs/artifactsources",
"location": "{location}",
"tags": {
"tagName1": "tagValue1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"name": "{artifactSourceName}"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"name": "{artifactSourceName}"
},
"responses": {
"200": {
"body": {
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}",
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
"provisioningState": "Succeeded",
"uniqueIdentifier": "{uniqueIdentifier}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
"name": "{artifactSourceName}",
"type": "Microsoft.DevTestLab/labs/artifactsources",
"location": "{location}",
"tags": {
"tagName1": "tagValue1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}",
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
"provisioningState": "Succeeded",
"uniqueIdentifier": "{uniqueIdentifier}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
"name": "{artifactSourceName}",
"type": "Microsoft.DevTestLab/labs/artifactsources",
"location": "{location}",
"tags": {
"tagName1": "tagValue1"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"name": "{artifactSourceName}",
"artifactSource": {
"tags": {
"tagName1": "tagValue1"
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"displayName": "{displayName}",
"uri": "{artifactSourceUri}",
"sourceType": "{VsoGit|GitHub|StorageAccount}",
"folderPath": "{folderPath}",
"armTemplateFolderPath": "{armTemplateFolderPath}",
"branchRef": "{branchRef}",
"securityToken": "{securityToken}",
"status": "{Enabled|Disabled}",
"createdDate": "2020-12-16T16:53:02.4830866-07:00",
"provisioningState": "Succeeded",
"uniqueIdentifier": "{uniqueIdentifier}"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}",
"name": "{artifactSourceName}",
"type": "Microsoft.DevTestLab/labs/artifactsources",
"location": "{location}",
"tags": {
"tagName1": "tagValue1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"artifactSourceName": "{artifactSourceName}",
"name": "{artifactName}",
"generateArmTemplateRequest": {
"fileUploadOptions": "None",
"location": "{location}",
"virtualMachineName": "{vmName}"
}
},
"responses": {
"200": {
"body": {
"template": {
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string"
},
"extensionName": {
"type": "string"
}
},
"variables": {
"_commandToExecute": "{commandToExecute}."
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[parameters('extensionName')]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.9",
"autoUpgradeMinorVersion": "true",
"forceUpdateTag": "15/10/2018 00:00:00 +00:00",
"settings": {
"fileUris": [
"{MsDtlArtifactFileUris}"
],
"commandToExecute": ""
},
"protectedSettings": {
"commandToExecute": "[concat('cd {MsDtlScriptFolder}/scripts && ', variables('_commandToExecute'))]"
}
}
}
]
},
"parameters": {
"extensionName": {
"value": "{vmName}/CustomScriptExtension"
},
"location": {
"value": "{location}"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"parameters": {
"api-version": "2018-09-15",
"subscriptionId": "{subscriptionId}",
"resourceGroupName": "resourceGroupName",
"labName": "{labName}",
"artifactSourceName": "{artifactSourceName}",
"name": "{artifactName}"
},
"responses": {
"200": {
"body": {
"properties": {
"title": "Sample Artifact Title",
"description": "Sample artifact description.",
"publisher": "Microsoft",
"filePath": "{artifactsPath}/{artifactName}",
"targetOsType": "Windows",
"parameters": {
"uri": {
"type": "string",
"displayName": "Sample Parameter 1",
"description": "Sample parameter 1 description.",
"defaultValue": "https://{labStorageAccount}.blob.core.windows.net/{artifactName}/..."
}
}
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/resourceGroupName/providers/Microsoft.DevTestLab/labs/{labName}/artifactSources/{artifactSourceName}/artifacts/{artifactName}",
"name": "{artifactName}",
"type": "Microsoft.DevTestLab/labs/artifactSources/artifacts",
"location": "{location}",
"tags": {
"MyTag": "MyValue"
}
}
}
}
}
Loading