You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
Terraform Version
1.5.7
AzureRM Provider Version
3.84.0
Affected Resource(s)/Data Source(s)
azurerm_mssql_server
Terraform Configuration Files
resource"azurerm_mssql_server""sql_server" {
name=local.sql_server_nameresource_group_name=azurerm_resource_group.rg.namelocation=azurerm_resource_group.rg.locationversion="12.0"administrator_login=local.sql_admin_username// not present in previous stateadministrator_login_password=local.sql_admin_password// not present in previous stateminimum_tls_version="1.2"connection_policy="Proxy"identity {
type="SystemAssigned"
}
azuread_administrator {
login_username=data.azuread_group.sql_admin_ad_group.display_nameobject_id=data.azuread_group.sql_admin_ad_group.idazuread_authentication_only=false// true in previous state
}
}
Debug Output/Panic Output
administrator_login_password` cannot be changed once `azuread_administrator.0.azuread_authentication_only = true
Expected Behaviour
It should have allowed the change because azuread_authentication_only IS false in the current config
Actual Behaviour
It didn't allow the change because azuread_authentication_only is true in the previous state
Hi @AtakanColak thanks for opening this issue. I would like to explain that the value TF checks for azuread_administrator.0.azuread_authentication_only is from the state file, but not the current configuration. Could you please check the value of azuread_administrator.0.azuread_authentication_only in state file whether is true? If so, I assume this is by design.
Hi @sinbai, thank you for your response. I do think the current state would have the value as true, and thus producing the error.
My point in raising this issue is, by only checking against state for this change, it becomes impossible to reverse from azuread_authentication_only=True back to azuread_authentication_only=False without manual intervention.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.7
AzureRM Provider Version
3.84.0
Affected Resource(s)/Data Source(s)
azurerm_mssql_server
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
It should have allowed the change because azuread_authentication_only IS false in the current config
Actual Behaviour
It didn't allow the change because azuread_authentication_only is true in the previous state
Steps to Reproduce
No response
Important Factoids
No response
References
This issue is basically the opposite of #14348
The text was updated successfully, but these errors were encountered: