Azure Managed Applications Definition
This page shows how to write Terraform for Managed Applications Definition and write them securely.
azurerm_managed_application_definition (Terraform)
The Definition in Managed Applications can be configured in Terraform with the resource name azurerm_managed_application_definition
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
main.tf#L38
resource "azurerm_managed_application_definition" "virtualMachine" {
name = "apachelinux"
location = azurerm_resource_group.managed-app.location
resource_group_name = azurerm_resource_group.managed-app.name
lock_level = "ReadOnly"
package_file_uri = "https://github.com/ralacher/azure-demos/releases/download/managed-application/virtual-machine.zip"
main.tf#L7
resource "azurerm_managed_application_definition" "this" {
create_ui_definition = var.create_ui_definition
description = var.description
display_name = var.display_name
location = var.location
lock_level = var.lock_level
Parameters
-
create_ui_definition
optional - string -
description
optional - string -
display_name
required - string -
id
optional computed - string -
location
required - string -
lock_level
required - string -
main_template
optional - string -
name
required - string -
package_enabled
optional - bool -
package_file_uri
optional - string -
resource_group_name
required - string -
tags
optional - map from string to string -
authorization
set block-
role_definition_id
required - string -
service_principal_id
required - string
-
-
timeouts
single block
Explanation in Terraform Registry
Manages a Managed Application Definition.
Azure Resource Manager Example
Azure Resource Manager code does not have the related resource.
Frequently asked questions
What is Azure Managed Applications Definition?
Azure Managed Applications Definition is a resource for Managed Applications of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure Managed Applications Definition?
For Terraform, the ralacher/azure-demos and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.