Define an ARM template

An Azure Resource Manager (ARM) template defines the set of resources (for example database server, database, and website) that is needed for an application. ARM templates also specify deployment parameters that enable a user to configure settings for resources while requesting the resources.

Before you begin

Role required: cloud_admin

About this task

In this procedure, you provide the information that defines an ARM template in your ServiceNow instance.
Note: For information on authoring an ARM template, see the Azure documentation at https://azure.microsoft.com and search for "Azure Resource Manager Templates".

You have the following options for defining an ARM template:

  • Paste the text of the template file directly into the ServiceNow form.
  • Specify the URLs of the template file and the parameter file.

Procedure

  1. Navigate to Microsoft Azure Cloud > ARM Templates.
  2. Click New and specify a Name for the template and optionally a Description of the purpose of the template.
  3. Choose one of the following methods to specify the template:
    • Use the template code: Paste the text of the template file directly into the form: Select the Use template body check box and then paste the content of the template file into the Template body text box. The content must include the parameters and resources sections. Click Submit and skip the remainder of this procedure.
    • Specify the URLs of the template and parameter files: Clear the Use template body check box, specify the following values, and then click Submit.
      Field Value
      Template URL URL that is used to locate the template file in storage. The content must be publicly accessible.
      Template content version Version of the template (for example, 1.2.5). This is the value of the contentVersion that is specified in the template file.

      The system can use the version to ensure that the right template is used when deploying resources.

      Parameters URL URL that is used to locate the parameter file in storage. The content must be publicly accessible.

      Parameters specify which values a user can enter when deploying the resources.

      Parameters content version Version of the parameter set (for example, 2.1.0). This is the value of the contentVersion that is specified in the parameter file.

      The system uses the version to ensure that the right parameters are used when deploying resources.

What to do next

Once the ARM template is created, the system converts the parameter settings to template parameters, as listed in the ARM Template Parameters list.
  • You can now further configure each template parameter with additional attributes. For example, you can specify the type for the parameter (string, Boolean, array, table reference, and so on).
  • After all parameters are fully defined, you can apply the parameter settings to generate the variables that will appear to requesters in catalog items.