-
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_mssql_managed_instance
fix identity
bug and updating subnet_id
#28319
Conversation
azurerm_mssql_managed_instance
fix identity bug and subnet changing
azurerm_mssql_managed_instance
fix identity bug and subnet changingazurerm_mssql_managed_instance
fix identity bug and updating subnet_id
azurerm_mssql_managed_instance
fix identity bug and updating subnet_id
azurerm_mssql_managed_instance
fix identity
bug and updating subnet_id
internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go
Show resolved
Hide resolved
…r-azurerm into wyatt/mssql-managed-instance-identity-bug
…r-azurerm into wyatt/mssql-managed-instance-identity-bug
internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go
Show resolved
Hide resolved
AdministratorLogin: pointer.To(state.AdministratorLogin), | ||
AdministratorLoginPassword: pointer.To(state.AdministratorLoginPassword), | ||
SubnetId: pointer.To(state.SubnetId), |
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.
because subnet_id has since become mutable (idk about the admin creds, but the op fails without them), it must now be included in resource updates.
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 @wyattfry - I left a couple of minor comments inline but otherwise this is looking pretty good 😄
internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go
Show resolved
Hide resolved
internal/services/mssqlmanagedinstance/mssql_managed_instance_resource.go
Show resolved
Hide resolved
internal/services/mssqlmanagedinstance/mssql_managed_instance_resource_test.go
Outdated
Show resolved
Hide resolved
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 @wyattfry LGTM ✨
* Update CHANGELOG.md for #28233 * Update for #28215 * Update CHANGELOG.md for #28279 * Update CHANGELOG.md #28269 * Update CHANGELOG.md #27876 * Update CHANGELOG.md #28069 * Update CHANGELOG.md for #28312 * Update CHANGELOG.md for #28278 * Update CHANGELOG.md #28311 * Update CHANGELOG.md undo 28311 * Update CHANGELOG.md #27874 * Update CHANGELOG.md * Update CHANGELOG for #28352 * Update CHANGELOG.md for #28390 * Update CHANGELOG.md for #28398 * Update CHANGELOG.md for #28425 * Update CHANGELOG.md #28427 * Update CHANGELOG.md #28280 * Update CHANGELOG.md for #28319 * Update CHANGELOG.md #24801 * Update for #28360 #28216 #27830 #28404 #27401 #27122 #27931 #28442 * Update for #28379 * Update CHANGELOG.md for #28281 * Update for #28380 * Update for #27375 * Update for #25695 * Update CHANGELOG.md #27985 * Update CHANGELOG.md - update release date manually until can be scripted * Update CHANGELOG.md revert date change as script available * pre-release script updates --------- Co-authored-by: stephybun <steph@hashicorp.com> Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: Wyatt Fry <wyattfry@gmail.com> Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: kt <kt@katbyte.me>
…net_id` (hashicorp#28319) * wip * wip * Support Identity Types, changing Subnets * remove superfluous example * pr suggestions
* Update CHANGELOG.md for hashicorp#28233 * Update for hashicorp#28215 * Update CHANGELOG.md for hashicorp#28279 * Update CHANGELOG.md hashicorp#28269 * Update CHANGELOG.md hashicorp#27876 * Update CHANGELOG.md hashicorp#28069 * Update CHANGELOG.md for hashicorp#28312 * Update CHANGELOG.md for hashicorp#28278 * Update CHANGELOG.md hashicorp#28311 * Update CHANGELOG.md undo 28311 * Update CHANGELOG.md hashicorp#27874 * Update CHANGELOG.md * Update CHANGELOG for hashicorp#28352 * Update CHANGELOG.md for hashicorp#28390 * Update CHANGELOG.md for hashicorp#28398 * Update CHANGELOG.md for hashicorp#28425 * Update CHANGELOG.md hashicorp#28427 * Update CHANGELOG.md hashicorp#28280 * Update CHANGELOG.md for hashicorp#28319 * Update CHANGELOG.md hashicorp#24801 * Update for hashicorp#28360 hashicorp#28216 hashicorp#27830 hashicorp#28404 hashicorp#27401 hashicorp#27122 hashicorp#27931 hashicorp#28442 * Update for hashicorp#28379 * Update CHANGELOG.md for hashicorp#28281 * Update for hashicorp#28380 * Update for hashicorp#27375 * Update for hashicorp#25695 * Update CHANGELOG.md hashicorp#27985 * Update CHANGELOG.md - update release date manually until can be scripted * Update CHANGELOG.md revert date change as script available * pre-release script updates --------- Co-authored-by: stephybun <steph@hashicorp.com> Co-authored-by: catriona-m <86247157+catriona-m@users.noreply.github.com> Co-authored-by: Wyatt Fry <wyattfry@gmail.com> Co-authored-by: sreallymatt <106555974+sreallymatt@users.noreply.github.com> Co-authored-by: Matthew Frahry <mbfrahry@gmail.com> Co-authored-by: kt <kt@katbyte.me>
Community Note
Description
Fixes a bug that introduced a discrepancy between Azure's API behavior and the provider's behavior, namely, Azure allows MSSQL managed instances to have either a System Assigned or User Assigned identity, or both. The provider only allowed for one or the other.
Also, it seems that
subnet_id
may have been immutable but is now mutable, and thus must be included in the Update command. This PR addssubnet_id
to the command.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_mssql_managed_instance
- fixidentity
andsubnet_id
bugs [azurerm_mssql_managed_instance
fixidentity
bug and updatingsubnet_id
#28319]This is a (please select all that apply):
Related Issue(s)
Fixes #28320
Fixes #21214
Fixes #19802
Fixes https://hashicorp.atlassian.net/browse/IPL-6520
Note
If this PR changes meaningfully during the course of review please update the title and description as required.