From the course: Automation with Azure Powershell and ARM Templates

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Functions and linked templates

Functions and linked templates - Azure Tutorial

From the course: Automation with Azure Powershell and ARM Templates

Start my 1-month free trial

Functions and linked templates

- [Instructor] So we saw in the template the concat function, and there are a number of other functions that might be useful when you're constructing out what your resources look like, things like the parameters that we can pull in, where we have the parameter name. We can use listKeys to go out and get back the storage keys for things or for a database account. We can use the function resourceGroup to return back the name and the location and the object information about a resource group. You can also get resourceID by pathing in the actual type of resource and then the resourceName. It'll go into your Azure subscription and find that for you. And so there's a lot of different things you can do with these additional functions and expressions. Another thing we can do is take the templates and actually make it so that they're a little bit more organized. Currently we're putting everything into a single template, and as you might expect, when I'm trying to create one large script…

Contents