Azure Automation has the ability to share variable assets across runbooks and configurations. In doing so, it is considered best practice to encrypt these variables to ensure that sensitive information and intellectual property is protected. For more information on managing variables in Automation, see the Azure documentation.
References:
https://learn.microsoft.com/en-us/azure/automation/shared-resources/variables?tabs=azure-powershell
Variables in Azure Automation Accounts cannot be encrypted after creation if they were created without encryption enabled. To create an encrypted variable, follow the steps below.
In Azure Console -
In Terraform -
References:
https://learn.microsoft.com/en-us/azure/automation/
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_variable_int