New resource azurerm_iotcentral_application_network_rule_set
#18589
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Similar to
azurerm_servicebus_namespace_network_rule_set_resource
, IoT Central Application creates a default Network Rule Set, and it could not be removed even when set to nil/empty explicitly, so adding it with an extracted resourceazurerm_iotcentral_application_network_rule_set
.Other changes within this:
azurerm_iotcentral_application
performs an update to the property withUpdateThenPoll
, it wipes out the Network Rule Set, so usingCreateOrUpdateThenPoll
with modifying the existing resource.azurerm_iotcentral_application.sku
supports Update, but was missing in the Update function, adding it there. (The update test didn't catch it because the sku in the updated test config is same as the default value.)ST0
ofsku
is missing in the doc ofazurerm_iotcentral_application
, adding it thereazurerm_iotcentral_application.template
cannot be updated as described here, so changing it toForceNew
. (The update api ignores the new value and doesn't throw an error)azurerm_iotcentral_application
to cover the Update scenarios of its properties