• Channels

  • Contact

  • Main Site

  • More

    1. Elastacloud Channels
    2. Software Engineering
    3. ARM and ARM Functions
    Search
    Darren Fuller
    Jan 7, 2019
      ·  Edited: Jan 7, 2019

    ARM and ARM Functions

    Recently I needed to deploy an Azure Data Lake Store - Gen 2 instance and thought I'd take the opportunity to use some custom ARM template functions. These aren't something you often see in the example templates but can be really useful if there's a complex expression which you find yourself writing repeatedly within a template.


    If, for instance, you routinely create resource names based on a prefix, unique name and a suffix then this could save you a few keystrokes. In essence you are simply parameterizing the expression as follows:

    Example ARM function
    An ARM function in VS Code

    In this way you can use this simpler expression where you would have previously used the more complex version.

    [namespace.function(parameter1, parameter2)]

    If you want to see what this looks like in a full template then checkout this simple ARM template I put together for creating a Data Lake Store - Gen 2 instance over on GitHub.

    0
    • Twitter Social Icon
    • LinkedIn Social Icon
    • Facebook Social Icon

    Visit the Elastacloud website