From 8746af61d41fda9b3278549da87c8b1a181c5d4d Mon Sep 17 00:00:00 2001 From: Austin Date: Thu, 5 Dec 2019 00:37:53 -0600 Subject: [PATCH] add 'Computed: true' to min_tls_version for function_app --- azurerm/resource_arm_function_app.go | 5 +++-- website/docs/r/function_app.html.markdown | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/azurerm/resource_arm_function_app.go b/azurerm/resource_arm_function_app.go index 7c6095713e89..4d4b6aad45d2 100644 --- a/azurerm/resource_arm_function_app.go +++ b/azurerm/resource_arm_function_app.go @@ -228,11 +228,12 @@ func resourceArmFunctionApp() *schema.Resource { "min_tls_version": { Type: schema.TypeString, Optional: true, + Computed: true, ValidateFunc: validation.StringInSlice([]string{ + string(web.OneFullStopZero), string(web.OneFullStopOne), string(web.OneFullStopTwo), - string(web.OneFullStopZero), - }, true), + }, false), }, "cors": azure.SchemaWebCorsSettings(), }, diff --git a/website/docs/r/function_app.html.markdown b/website/docs/r/function_app.html.markdown index f6168b77de5e..26c6beb606d3 100644 --- a/website/docs/r/function_app.html.markdown +++ b/website/docs/r/function_app.html.markdown @@ -149,7 +149,7 @@ The following arguments are supported: * `http2_enabled` - (Optional) Specifies whether or not the http2 protocol should be enabled. Defaults to `false`. -* `min_tls_version` - (Optional) The minimum supported TLS version. Possible values are `1.0`, `1.1`, and `1.2`. +* `min_tls_version` - (Optional) The minimum supported TLS version for the function app. Possible values are `1.0`, `1.1`, and `1.2`. Defaults to `1.2` for new function apps. * `cors` - (Optional) A `cors` block as defined below.