ARM template backend

sns 9,236 Reputation points
2023-04-22T11:11:49.6966667+00:00

in terraform there is backend for storing the state file, which is local state and remote state. but in ARM template where state is stored , how do we store in the local and remote location?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,270 questions
{count} votes

Accepted answer
  1. Tech-Hyd-1989 5,796 Reputation points
    2023-04-24T07:16:20.7566667+00:00

    Hello sns

    Azure Resource Manager (ARM) templates do not have a built-in state management system like Terraform. Instead, ARM templates are declarative and idempotent, meaning that they can be run multiple times without causing any issues or duplicating resources.

    When you deploy an ARM template, the state of the resources created by the template is stored in Azure Resource Manager. You can view the state of your resources in the Azure portal or by using Azure PowerShell or Azure CLI.

    If you need to manage the state of your ARM templates, you can use a version control system like Git to store your templates and track changes over time. You can also use Azure DevOps to manage your templates and automate the deployment process.

    Alternatively, you can use a third-party tool like Terraform to manage the state of your ARM templates. Terraform has a provider for Azure that allows you to manage Azure resources using Terraform configuration files. You can use Terraform to store the state of your Azure resources in a remote backend like Azure Storage or Terraform Cloud, or in a local file on your machine.

    In summary, while ARM templates do not have a built-in state management system, you can use version control systems, Azure DevOps, or third-party tools like Terraform to manage the state of your templates

    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    3 people found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,421 Reputation points
    2023-04-24T08:14:10.68+00:00

    Hi @sns ,

    In addition to subrothodas-9589's response, if you are interested to learn more in the same lines, you may refer this official Azure document, especially the sections shown in below screenshots. Also note that template specs supports versioning, deployment process and devops pipelines integration.

    User's image User's image User's image User's image User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.