2017-02-28 1 views

Antwort

1

keine Möglichkeit, dass direkt zu tun. Aber man kann immer Skript Erweiterung (en) oder DSC-Erweiterung (en) bereitstellen, die die Arbeit für Sie tun würden. Script Erweiterung Referenzvorlage (relevanter Teil):

{ 
    "type": "Microsoft.Compute/virtualMachines/extensions", 
    "name": "[concat(variables('vmName'),'/', variables('extensionName'))]", 
    "apiVersion": "[variables('apiVersion')]", 
    "location": "[resourceGroup().location]", 
    "dependsOn": [ 
    "[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]" 
    ], 
    "properties": { 
    "publisher": "Microsoft.Azure.Extensions", 
    "type": "CustomScript", 
    "typeHandlerVersion": "2.0", 
    "autoUpgradeMinorVersion": true, 
    "settings": { 
     "fileUris": "[split(parameters('fileUris'), ' ')]", 
     "commandToExecute": "[parameters('commandToExecute')]" 
    }, 
    "protectedSettings": { 
     "storageAccountName": "[parameters('customScriptStorageAccountName')]", 
     "storageAccountKey": "[parameters('customScriptStorageAccountKey')]" 
    } 
    } 
} 

Referenz: https://github.com/Azure/azure-quickstart-templates/tree/master/201-customscript-extension-azure-storage-on-ubuntu

+0

das ist genau das, was ich suchte for..many dank :) –

+0

Marke als Antwort in diesem Fall ist;) @AnimeshJain – 4c74356b41

+0

erledigt. Danke noch einmal –

Verwandte Themen