From ca3401ffef97cfde221f5a0448b3fec2361f3eab Mon Sep 17 00:00:00 2001 From: Yichun Ma Date: Mon, 7 Aug 2023 15:13:23 +0800 Subject: [PATCH] deprecate `parameters` --- .../application-with-parameters/main.tf | 101 -------- .../application-with-parameters/variables.tf | 10 - .../managed_application_resource.go | 227 ++++++++++-------- .../managed_application_resource_test.go | 103 +++++--- .../docs/r/managed_application.html.markdown | 18 +- 5 files changed, 211 insertions(+), 248 deletions(-) delete mode 100644 examples/managed-application/application-with-parameters/main.tf delete mode 100644 examples/managed-application/application-with-parameters/variables.tf diff --git a/examples/managed-application/application-with-parameters/main.tf b/examples/managed-application/application-with-parameters/main.tf deleted file mode 100644 index da44d9770301..000000000000 --- a/examples/managed-application/application-with-parameters/main.tf +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 - -provider "azurerm" { - features {} -} - -data "azurerm_client_config" "current" {} - -data "azurerm_role_definition" "builtin" { - name = "Contributor" -} - -resource "azurerm_resource_group" "example" { - name = "${var.prefix}-resources" - location = var.location -} - -resource "azurerm_managed_application_definition" "example" { - name = "${var.prefix}managedappdef" - location = azurerm_resource_group.example.location - resource_group_name = azurerm_resource_group.example.name - lock_level = "ReadOnly" - display_name = "ExampleManagedAppDefinition" - description = "Example Managed App Definition" - package_enabled = true - - create_ui_definition = < **NOTE:** `parameters` only supports values with `string` or `secureString` type. If the template has other parameter types, please use `parameter_values` instead. +~> **NOTE:** `parameters` only supports values with `string` or `secureString` type and will be deprecated in 4.0, please use `parameter_values` instead which supports more parameter types. * `parameter_values` - (Optional) The parameter values to pass to the Managed Application. This field is a JSON object that allows you to assign parameters to this Managed Application.