Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See https://docs.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachines/extensions it looks like Azure has a similar setup to AWS ebextentions

Targetting 

typestringNoSpecifies the type of the extension; an example is "CustomScriptExtension".

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/extensions-customscript

Code Block
{
    "apiVersion": "2015-06-15",
    "type": "Microsoft.Compute/virtualMachines/extensions",
    "name": "config-appentrypoint",
    "location": "[resourceGroup().location]",
    "dependsOn": [
        "[concat('Microsoft.Compute/virtualMachines/', variablesparameters('vmName'),copyindex())]"
    ],
    "tags": {
        "displayName": "config-appentrypoint"
    },
    "properties": {
        "publisher": "Microsoft.Compute",
        "type": "CustomScriptExtension",
        "typeHandlerVersion": "1.9",
        "autoUpgradeMinorVersion": true,
        "settings": {
            "fileUris": [
                "[concat(variablesparameters('scriptURL'), variablesparameters('scriptName'))]"
            ]
        },
        "commandToExecute": "[concat('./' , variablesparameters('scriptName'), ' -b master -s \"', reference(variables('publicIPAddressName')).dnsSettings.fqdn, '\" , '\" -e onap \"', '\"' )]",

        "protectedSettings": {
            "commandToExecute": "myExecutionCommand",
            "storageAccountName": "myStorageAccountName",
            "storageAccountKey": "myStorageAccountKey"
        }
    }
}


ubuntu@ons-dmz:~$ ./oom_deployment.sh 

Deployment template validation failed: 'The template resource 'entrypoint' for type 'Microsoft.Compute/virtualMachines/extensions' at line '1' and column '6182' has incorrect segment lengths. A nested resource type must have identical number of segments as its resource name. A root resource type must have segment length one greater than its resource name. Please see https://aka.ms/arm-template/#resources for usage details.'.

20180318: Create VM image without destroying running VM

...