Skip to content
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_server - support azuread_authentication_only on create #14169

Merged

Conversation

aristosvo
Copy link
Collaborator

@aristosvo aristosvo commented Nov 12, 2021

Missed scenario fixed while looking at another issue.

azuread_authentication_only worked only on update, now also on create.

Acceptance Tests

go install && make acctests SERVICE='mssql' TESTARGS='-run=TestAccMsSqlServer_azureadAdmin'
==> Checking that code complies with gofmt requirements...
==> Checking that Custom Timeouts are used...
==> Checking that acceptance test packages are used...
TF_ACC=1 go test -v ./internal/services/mssql -run=TestAccMsSqlServer_azureadAdmin -timeout 180m -ldflags="-X=github.com/hashicorp/terraform-provider-azurerm/version.ProviderVersion=acc"
=== RUN   TestAccMsSqlServer_azureadAdmin
=== PAUSE TestAccMsSqlServer_azureadAdmin
=== RUN   TestAccMsSqlServer_azureadAdminUpdate
=== PAUSE TestAccMsSqlServer_azureadAdminUpdate
=== RUN   TestAccMsSqlServer_azureadAdminWithAADAuthOnly
=== PAUSE TestAccMsSqlServer_azureadAdminWithAADAuthOnly
=== CONT  TestAccMsSqlServer_azureadAdmin
=== CONT  TestAccMsSqlServer_azureadAdminWithAADAuthOnly
=== CONT  TestAccMsSqlServer_azureadAdminUpdate
=== CONT  TestAccMsSqlServer_azureadAdminWithAADAuthOnly
=== CONT  TestAccMsSqlServer_azureadAdminUpdate
=== CONT  TestAccMsSqlServer_azureadAdminWithAADAuthOnly
=== CONT  TestAccMsSqlServer_azureadAdmin
=== CONT  TestAccMsSqlServer_azureadAdminUpdate
--- PASS: TestAccMsSqlServer_azureadAdmin (480.10s)
=== CONT  TestAccMsSqlServer_azureadAdminUpdate
--- PASS: TestAccMsSqlServer_azureadAdminWithAADAuthOnly (620.03s)
=== CONT  TestAccMsSqlServer_azureadAdminUpdate
--- PASS: TestAccMsSqlServer_azureadAdminUpdate (1031.82s)
PASS
ok      github.com/hashicorp/terraform-provider-azurerm/internal/services/mssql 1034.114s

@aristosvo aristosvo added bug service/mssql Microsoft SQL Server labels Nov 12, 2021
@aristosvo aristosvo changed the title azurerm_sql_server - support azuread_authentication_only on create azurerm_mssql_server - support azuread_authentication_only on create Nov 12, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as with the other PR, think we need to update the docs as well?

@aristosvo
Copy link
Collaborator Author

as with the other PR, think we need to update the docs as well?

This PR fixes existing functionality. It is already documented, but contained a bug unfortunately, the docs:

  • azuread_authentication_only - (Optional) Specifies whether only AD Users and administrators (like azuread_administrator.0.login_username) can be used to login or also local database users (like administrator_login)

@katbyte katbyte added this to the v2.86.0 milestone Nov 18, 2021
Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh thanks for the clarification @aristosvo - LGTM 🚀

@katbyte katbyte merged commit a7bbf62 into hashicorp:main Nov 18, 2021
katbyte added a commit that referenced this pull request Nov 18, 2021
@github-actions
Copy link

This functionality has been released in v2.86.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug service/mssql Microsoft SQL Server size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants