From 4940fd64f14f83737ce557029578e001b55091aa Mon Sep 17 00:00:00 2001 From: Laurens Vanderhoven Date: Thu, 16 Feb 2017 00:00:35 +0100 Subject: [PATCH] provider/azurerm: Remove location argument from azurerm_lb_* (#11969) * provider/azurerm: Remove location argument from loadbalancer_backend_address_pool Applying a Terraform execution plan containing a loadbalancer_backend_address_pool with a location argument throws a warning: ---- Warnings: * azurerm_lb_backend_address_pool.test: "location": [DEPRECATED] location is no longer used No errors found. Continuing with 1 warning(s). ---- * provider/azurerm: Remove location argument from azurerm_lb_rule (Similar to https://github.com/hashicorp/terraform/pull/11963) Applying a Terraform execution plan containing a azurerm_lb_rule with a location argument throws a warning: ``` Warnings: * azurerm_lb_rule.test: "location": [DEPRECATED] location is no longer used No errors found. Continuing with 1 warning(s). ``` Removing the (required) location argument from the documentation as it is deprecated as per the warning. * provider/azurerm: Remove location argument from azurerm_lb_probe (Similar to https://github.com/hashicorp/terraform/pull/11963) Applying a Terraform execution plan containing a azurerm_lb_probe with a location argument throws a warning: ``` Warnings: * azurerm_lb_probe.test: "location": [DEPRECATED] location is no longer used No errors found. Continuing with 1 warning(s). ``` Removing the (required) location argument from the documentation as it is deprecated as per the warning. --- .../docs/providers/azurerm/r/loadbalancer_probe.html.markdown | 3 --- .../docs/providers/azurerm/r/loadbalancer_rule.html.markdown | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown index a881b89a7e..c5933d9c5d 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_probe.html.markdown @@ -39,7 +39,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_probe" "test" { - location = "West US" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "SSH Running Probe" @@ -53,7 +52,6 @@ The following arguments are supported: * `name` - (Required) Specifies the name of the Probe. * `resource_group_name` - (Required) The name of the resource group in which to create the resource. -* `location` - (Required) Specifies the supported Azure location where the resource exists. * `loadbalancer_id` - (Required) The ID of the LoadBalancer in which to create the NAT Rule. * `protocol` - (Optional) Specifies the protocol of the end point. Possible values are `Http` or `Tcp`. If Tcp is specified, a received ACK is required for the probe to be successful. If Http is specified, a 200 OK response from the specified URI is required for the probe to be successful. * `port` - (Required) Port on which the Probe queries the backend endpoint. Possible values range from 1 to 65535, inclusive. @@ -75,4 +73,3 @@ Load Balancer Probes can be imported using the `resource id`, e.g. ``` terraform import azurerm_lb_probe.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/probes/probe1 ``` - diff --git a/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown b/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown index b806f64b49..3688f1129f 100644 --- a/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown +++ b/website/source/docs/providers/azurerm/r/loadbalancer_rule.html.markdown @@ -39,7 +39,6 @@ resource "azurerm_lb" "test" { } resource "azurerm_lb_rule" "test" { - location = "West US" resource_group_name = "${azurerm_resource_group.test.name}" loadbalancer_id = "${azurerm_lb.test.id}" name = "LBRule" @@ -56,10 +55,9 @@ The following arguments are supported: * `name` - (Required) Specifies the name of the LB Rule. * `resource_group_name` - (Required) The name of the resource group in which to create the resource. -* `location` - (Required) Specifies the supported Azure location where the resource exists. * `loadbalancer_id` - (Required) The ID of the LoadBalancer in which to create the Rule. * `frontend_ip_configuration_name` - (Required) The name of the frontend IP configuration to which the rule is associated. -* `protocol` - (Required) The transport protocol for the external endpoint. Possible values are `Udp` or `Tcp`. +* `protocol` - (Required) The transport protocol for the external endpoint. Possible values are `Udp` or `Tcp`. * `frontend_port` - (Required) The port for the external endpoint. Port numbers for each Rule must be unique within the Load Balancer. Possible values range between 1 and 65534, inclusive. * `backend_port` - (Required) The port used for internal connections on the endpoint. Possible values range between 1 and 65535, inclusive. * `backend_address_pool_id` - (Optional) A reference to a Backend Address Pool over which this Load Balancing Rule operates.