-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_network_connection_monitor - support coverage_level
, excluded_ip_addresses
, included_ip_addresses
, target_resource_id
, resource_type
#11540
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @neil-yechenwei, thanks for this PR, this is off to a good start. I have some comments inline with some schema changes, a question around the default value for the type
property, and a test naming tweak. If we can get these fixed up and the tests pass, then this should be good to merge. Thanks!
azurerm/internal/services/network/network_connection_monitor_resource.go
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource_test.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource_test.go
Outdated
Show resolved
Hide resolved
"virtual_machine_id": resourceId, | ||
"name": name, | ||
"address": address, | ||
"resource_id": resourceId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should set virtual_machine_id
too whilst it's still in the schema
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After tested, there is diff when the virtual_machine_id
property isn't specified in tf config file but it is set in state file. Seems Computed: true
doesn't work in TypeSet
. So I have to not set it in state file. Otherwise, test case would fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @neil-yechenwei - overall this looks good and i've left some comments inline to address
azurerm/internal/services/network/network_connection_monitor_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Outdated
Show resolved
Hide resolved
azurerm/internal/services/network/network_connection_monitor_resource.go
Outdated
Show resolved
Hide resolved
All test cases related with network connection monitor are passed.
|
@katbyte & @manicminer , thanks for your comments. I've updated code. Please have an another look. Thanks. |
coverage_level
, excluded_ip_addresses
, included_ip_addresses
, target_resource_id
, resource_type
There was a problem hiding this 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 is looking good!
azurerm/internal/services/network/network_connection_monitor_resource.go
Outdated
Show resolved
Hide resolved
@katbyte , thanks for your comment. I've updated the code. Please have an another look. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @neil-yechenwei - LGTM 👍
This has been released in version 2.58.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.58.0"
}
# ... other configuration ... |
…ded_ip_addresses`, `included_ip_addresses`, `target_resource_id`, `resource_type` (hashicorp#11540) fixes hashicorp#10423
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
fixes #10423