-
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_kusto_cluster
- Fixes virtual_network_configuration
block
#28249
base: main
Are you sure you want to change the base?
Conversation
CustomizeDiff: pluginsdk.CustomDiffWithAll( | ||
pluginsdk.CustomizeDiffShim(func(ctx context.Context, d *pluginsdk.ResourceDiff, v interface{}) error { | ||
oldSubnetId, newSubnetId := d.GetChange("virtual_network_configuration.0.subnet_id") | ||
if oldSubnetId != newSubnetId { |
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.
I'm sorry, I had a realization that making the change I recommended (removing the empty string checks) will allow newSubnetId
to be an empty string if oldSubnetId
is not, and vice-versa. However, the commonids.ValidateSubnetID
function will not allow empty strings, so I think we are ok.
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.
Good. So can you merge it?
e6b72c5
to
7ad7b9d
Compare
Hi @wyattfry, I have reset this branch to the original commit. Let me know if you think there are still changes needed, and I am happy to assist with merging this PR. |
Community Note
Description
Affected Resource:
azurerm_kusto_cluster
Background: #24733
The MS Kusto service team and the customer success team have informed me that deleting the
virtual_network_configuration
block inazurerm_kusto_cluster
will trigger forceNew and delete all existing data in the Kusto cluster, which is not the intended outcome. I have been able to reproduce this issue on my local machine with assistance from the Kusto team. The expected behavior is that removing thevirtual_network_configuration
block should set it to theDisabled
state.Changes
virtual_network_configuration
block in theazurerm_kusto_cluster
resource.virtual_network_configuration
block, except for the creation and removal of the block itself.virtual_network_configuration
block to theDisabled
state will not changepublic_network_access_enabled
tofalse
, so I have removed this description from the document.State
can be changed fromDisabled
toEnabled
again, so I have updated the documentation accordingly.PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_kusto_cluster
- Fixes blockvirtual_network_configuration
[GH-28249]This is a (please select all that apply):
Fixes #27660