Search code examples
azure-resource-manager

How do I join array into a string in ARM template?


I have ARM template parameter which is string array (like below). How do I create variable which will be a type of string which is join of those values, that is "dominos","boeing"?

"parameters": {
      "clientObject": {
        "value": [
            "dominos",
            "boeing"
         ]
      }
   }

Solution

  • You can use the string() function, e.g.

    [string(parameters('clientObject'))]
    

    If you don't want the square brackets you can use the replace() function.