49 строки
1.5 KiB
JSON
49 строки
1.5 KiB
JSON
{
|
|
"contentVersion": "1.0.0.0",
|
|
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
|
"parameters": {
|
|
"adminUsername": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "Username for the Virtual Machine."
|
|
}
|
|
},
|
|
"adminPassword": {
|
|
"type": "securestring",
|
|
"metadata": {
|
|
"description": "Password for the Virtual Machine."
|
|
}
|
|
},
|
|
"vmName": {
|
|
"type": "string",
|
|
"metadata": {
|
|
"description": "Name for the Virtual Machine."
|
|
}
|
|
}
|
|
},
|
|
"variables": {
|
|
"location": "[resourceGroup().location]"
|
|
},
|
|
"resources": [
|
|
{
|
|
"type": "Microsoft.Compute/virtualMachines/extensions",
|
|
"name": "[concat(parameters('vmName'),'/TextClassificationSetup')]",
|
|
"apiVersion": "2015-05-01-preview",
|
|
"location": "[variables('location')]",
|
|
"properties": {
|
|
"publisher": "Microsoft.Compute",
|
|
"type": "CustomScriptExtension",
|
|
"typeHandlerVersion": "1.7",
|
|
"autoUpgradeMinorVersion": false,
|
|
"settings": {
|
|
"fileUris": [
|
|
"https://raw.githubusercontent.com/Microsoft/ml-server-text-classification/master/Resources/ActionScripts/TextClassificationSetup.ps1"
|
|
],
|
|
"commandToExecute": "[concat('powershell.exe -ExecutionPolicy Unrestricted -File TextClassificationSetup.ps1 -serverName ', parameters('vmName') ,' -username ',parameters('adminUsername'),' -password ',parameters('adminPassword'))]"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"outputs": {
|
|
}
|
|
} |