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 resource: azurerm_virtual_hub_ip_configuration #8912

Merged
merged 11 commits into from
Nov 3, 2020

Conversation

neil-yechenwei
Copy link
Contributor

@neil-yechenwei neil-yechenwei commented Oct 16, 2020

API Spec: https://docs.microsoft.com/en-us/rest/api/virtualwan/virtualhubipconfiguration/createorupdate

--- PASS: TestAccAzureRMVirtualHubIPConfiguration_basic (1383.60s)
--- PASS: TestAccAzureRMVirtualHubIPConfiguration_requiresImport (1383.61s)
--- PASS: TestAccAzureRMVirtualHubIPConfiguration_complete (1470.50s)
--- PASS: TestAccAzureRMVirtualHubIPConfiguration_update (1505.16s)

@WodansSon WodansSon changed the title Add new resource azurerm_virtual_hub_ip_configuration New resource: azurerm_virtual_hub_ip_configuration Oct 19, 2020
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.

Thanks for the PR @neil-yechenwei - i've got some questions around the name of this resource and what it does. once they are addressed i'll give this a more through review


# azurerm_virtual_hub_ip_configuration

Manages a Virtual Hub IP Configuration.
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure what a Virtual Hub IP Configuration is. Is this an IP in the virtual hub, is this configuring something specific?

Copy link
Contributor Author

@neil-yechenwei neil-yechenwei Oct 28, 2020

Choose a reason for hiding this comment

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

Yes. I assume it's an IP in the virtual hub.

Manages a Virtual Hub IP Configuration.
---

# azurerm_virtual_hub_ip_configuration
Copy link
Collaborator

Choose a reason for hiding this comment

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

would this make more sense as

Suggested change
# azurerm_virtual_hub_ip_configuration
# azurerm_virtual_hub_ip

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


* `name` - (Required) The name which should be used for this Virtual Hub IP Configuration. Changing this forces a new resource to be created.

* `resource_group_name` - (Required) The name of the Resource Group where the Virtual Hub IP Configuration should exist. Changing this forces a new resource to be created.
Copy link
Collaborator

Choose a reason for hiding this comment

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

can this be different then the RG of the virtual hub? the id seemsto be based off the hub indicating we can grab this from the virtual hub id

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@neil-yechenwei
Copy link
Contributor Author

@katbyte , thanks for your comments. I've updated code. Please have a look. Thanks.

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.

Thanks @neil-yechenwei, couple more comments and a failing test to fix and this should be good to merge:

TestAccAzureRMVirtualHubIP_requiresImport: testing.go:684: Step 0 error: Check failed: Check 1/1 error: ID was missing the `ipConfigurations` element

@neil-yechenwei
Copy link
Contributor Author

@katbyte , thanks for your comments. I've updated code. Please have a look. Thanks.

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.

Thanks @neil-yechenwei - aside from one comment this LGTM 👍

@katbyte katbyte added this to the v2.35.0 milestone Nov 3, 2020
@katbyte katbyte merged commit 9895e24 into hashicorp:master Nov 3, 2020
katbyte added a commit that referenced this pull request Nov 3, 2020
@ghost
Copy link

ghost commented Nov 5, 2020

This has been released in version 2.35.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.35.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Dec 4, 2020

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 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 4, 2020
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