Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Resources: azurerm_network_interface_(backend_address_pool|nat_rule)_association #2079

Merged
merged 8 commits into from
Oct 16, 2018

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Oct 15, 2018

This PR adds a few Virtual Resources for managing the relationship between an Application Gateway/Load Balancer and a Network Interface:

  • azurerm_network_interface_application_gateway_backend_address_pool_association
  • azurerm_network_interface_backend_address_pool_association
  • azurerm_network_interface_nat_rule_association

Since this is a Virtual Resource (and there's an existing field for managing this on the Network Interface resource) - that'll need to be deprecated as a part of 2.0

Fixes #880

…tion`

Tests pass:

```
$ acctests azurerm TestAccAzureRMNetworkInterfaceBackendAddressPoolAssociation_
=== RUN   TestAccAzureRMNetworkInterfaceBackendAddressPoolAssociation_basic
--- PASS: TestAccAzureRMNetworkInterfaceBackendAddressPoolAssociation_basic (124.30s)
=== RUN   TestAccAzureRMNetworkInterfaceBackendAddressPoolAssociation_deleted
--- PASS: TestAccAzureRMNetworkInterfaceBackendAddressPoolAssociation_deleted (136.38s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	261.772s
```
Tests pass:

```
$ acctests azurerm TestAccAzureRMNetworkInterfaceNATRuleAssociation_
=== RUN   TestAccAzureRMNetworkInterfaceNATRuleAssociation_basic
--- PASS: TestAccAzureRMNetworkInterfaceNATRuleAssociation_basic (467.52s)
=== RUN   TestAccAzureRMNetworkInterfaceNATRuleAssociation_deleted
--- PASS: TestAccAzureRMNetworkInterfaceNATRuleAssociation_deleted (119.26s)
PASS
ok  	github.com/terraform-providers/terraform-provider-azurerm/azurerm	588.211s
```
@tombuildsstuff tombuildsstuff force-pushed the f/subnet-lb-associations branch from 139e761 to 88d8f08 Compare October 15, 2018 08:21
"azurerm_mysql_virtual_network_rule": resourceArmMySqlVirtualNetworkRule(),
"azurerm_network_interface": resourceArmNetworkInterface(),
"azurerm_network_interface_backend_address_pool_association": resourceArmNetworkInterfaceBackendAddressPoolAssociation(),
"azurerm_network_interface_nat_rule_association": resourceArmNetworkInterfaceNatRuleAssociation(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@katbyte given we're doing a resource for application gateway associations too, I think this needs lb_ between network_interface and backend/nat- WDYT?

@tombuildsstuff
Copy link
Contributor Author

Tests pass for this (without the new Application Gateway resource) - ignoring a known test failure:

screenshot 2018-10-14 at 23 17 46

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@katbyte katbyte merged commit 6fadcbd into master Oct 16, 2018
@katbyte katbyte deleted the f/subnet-lb-associations branch October 16, 2018 04:12
katbyte added a commit that referenced this pull request Oct 16, 2018
dghubble added a commit to poseidon/typhoon that referenced this pull request Oct 28, 2018
* Require terraform-provider-azurerm v1.17+
* Inline load_balancer_backend_address_pools_ids is deprecated
and scheduled for removal in the v2.0 provider
* hashicorp/terraform-provider-azurerm#2079
dghubble added a commit to poseidon/typhoon that referenced this pull request Oct 28, 2018
* Require terraform-provider-azurerm v1.17+
* Inline load_balancer_backend_address_pools_ids is deprecated
and scheduled for removal in the v2.0 provider
* hashicorp/terraform-provider-azurerm#2079
@ghost
Copy link

ghost commented Mar 6, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants