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.
This commit is contained in:
Laurens Vanderhoven 2017-02-16 00:00:35 +01:00 committed by Paul Stack
parent 69f397d5c9
commit 4940fd64f1
2 changed files with 1 additions and 6 deletions

View File

@ -39,7 +39,6 @@ resource "azurerm_lb" "test" {
} }
resource "azurerm_lb_probe" "test" { resource "azurerm_lb_probe" "test" {
location = "West US"
resource_group_name = "${azurerm_resource_group.test.name}" resource_group_name = "${azurerm_resource_group.test.name}"
loadbalancer_id = "${azurerm_lb.test.id}" loadbalancer_id = "${azurerm_lb.test.id}"
name = "SSH Running Probe" name = "SSH Running Probe"
@ -53,7 +52,6 @@ The following arguments are supported:
* `name` - (Required) Specifies the name of the Probe. * `name` - (Required) Specifies the name of the Probe.
* `resource_group_name` - (Required) The name of the resource group in which to create the resource. * `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. * `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. * `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. * `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 terraform import azurerm_lb_probe.test /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/loadBalancers/lb1/probes/probe1
``` ```

View File

@ -39,7 +39,6 @@ resource "azurerm_lb" "test" {
} }
resource "azurerm_lb_rule" "test" { resource "azurerm_lb_rule" "test" {
location = "West US"
resource_group_name = "${azurerm_resource_group.test.name}" resource_group_name = "${azurerm_resource_group.test.name}"
loadbalancer_id = "${azurerm_lb.test.id}" loadbalancer_id = "${azurerm_lb.test.id}"
name = "LBRule" name = "LBRule"
@ -56,7 +55,6 @@ The following arguments are supported:
* `name` - (Required) Specifies the name of the LB Rule. * `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. * `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. * `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. * `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`.