AzureStack-QuickStart-Templ.../101-vm-linux-apply-extensio.../azuredeploy.json

49 строки
1.4 KiB
JSON

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"apiProfile": "2018-03-01-hybrid",
"parameters": {
"vmName": {
"type": "string",
"metadata": {
"description": "Name of the existing Linux VM to modify"
},
"defaultValue": "[substring(concat('simplelinuxvm',resourceGroup().Name),0,14)]"
},
"username": {
"type": "string",
"metadata": {
"description": "Username of new or existing user"
}
},
"password": {
"type": "securestring",
"metadata": {
"description": "Password for new or existing user"
},
"defaultValue": "[concat('Subscription#',substring(resourcegroup().id,15,36))]"
}
},
"variables": {
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('vmName'),'/LinuxVMAccessExtension')]",
"location": "[resourceGroup().location]",
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "VMAccessForLinux",
"typeHandlerVersion": "1.4",
"autoUpgradeMinorVersion": "true",
"settings": {},
"protectedSettings": {
"username": "[parameters('username')]",
"password": "[parameters('password')]"
}
}
}
],
"outputs": {}
}