From f265f8608cf8f5bf81128c047f378ce313bd5893 Mon Sep 17 00:00:00 2001 From: Arpith Varghese Date: Wed, 9 Oct 2024 21:13:31 +0530 Subject: [PATCH 1/2] azurerm_nginx_deployment - Allow in-place SKU change --- internal/services/nginx/nginx_deployment_resource.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/services/nginx/nginx_deployment_resource.go b/internal/services/nginx/nginx_deployment_resource.go index 88d05c68f745..bc56ba27ac78 100644 --- a/internal/services/nginx/nginx_deployment_resource.go +++ b/internal/services/nginx/nginx_deployment_resource.go @@ -106,7 +106,6 @@ func (m DeploymentResource) Arguments() map[string]*pluginsdk.Schema { // used for testing and for F5 NGINX private offers Type: pluginsdk.TypeString, Required: true, - ForceNew: true, ValidateFunc: validation.StringIsNotEmpty, }, From f0a19cb54772833c8052ba6f7bd6d9904b4fa649 Mon Sep 17 00:00:00 2001 From: Arpith Varghese Date: Fri, 11 Oct 2024 23:59:22 +0530 Subject: [PATCH 2/2] update doc --- website/docs/r/nginx_deployment.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/r/nginx_deployment.html.markdown b/website/docs/r/nginx_deployment.html.markdown index ba645f469acb..4219600cda6e 100644 --- a/website/docs/r/nginx_deployment.html.markdown +++ b/website/docs/r/nginx_deployment.html.markdown @@ -86,7 +86,7 @@ The following arguments are supported: * `location` - (Required) The Azure Region where the NGINX Deployment should exist. Changing this forces a new NGINX Deployment to be created. -* `sku` - (Required) Specifies the NGINX Deployment SKU. Possible values are `standardv2_Monthly`, `basic_Monthly`. Changing this forces a new resource to be created. +* `sku` - (Required) Specifies the NGINX Deployment SKU. Possible values are `standardv2_Monthly`, `basic_Monthly`. -> **NOTE:** If you are setting the `sku` to `basic_Monthly`, you cannot specify a `capacity` or `auto_scale_profile`; basic plans do not support scaling. Other `sku`s require either `capacity` or `auto_scale_profile`. If you're using `basic_Monthly` with deployments created before v4.0, you may need to use [Terraform's `ignore_changes` functionality](https://www.terraform.io/language/meta-arguments/lifecycle#ignore_changes) to ignore changes to the `capacity` field.