diff --git a/README.md b/README.md index f3c21a1..6a8f7ef 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ No modules. | [admin\_password](#input\_admin\_password) | The password associated with the admin\_username | `string` | n/a | yes | | [auto\_rotation\_enabled](#input\_auto\_rotation\_enabled) | Server will continuously check the key vault for any new versions of the key | `bool` | `true` | no | | [azure\_ad\_admin\_login](#input\_azure\_ad\_admin\_login) | The login username of the Azure AD Administrator of this SQL Server. | `string` | n/a | yes | -| [azure\_ad\_admin\_object\_id](#input\_azure\_ad\_admin\_object\_id) | The object id of the Azure AD Administrator of this SQL Server | `string` | n/a | yes | +| [azure\_ad\_object\_id](#input\_azure\_ad\_object\_id) | The object id of the Azure AD Administrator of this SQL Server | `string` | n/a | yes | | [connection\_policy](#input\_connection\_policy) | The connection policy the server will use: [Default\|Proxy\|Redirect] | `string` | `"Default"` | no | | [custom\_mssql\_server\_name](#input\_custom\_mssql\_server\_name) | The name of the Microsoft SQL Server | `string` | `null` | no | | [env](#input\_env) | Environment name | `string` | n/a | yes | diff --git a/main.tf b/main.tf index c0b91c2..2758c7e 100644 --- a/main.tf +++ b/main.tf @@ -29,7 +29,7 @@ resource "azurerm_mssql_server" "this" { azuread_administrator { login_username = var.azure_ad_admin_login - object_id = var.azure_ad_admin_object_id + object_id = var.azure_ad_object_id } } diff --git a/variables.tf b/variables.tf index 67aaaf1..810777f 100644 --- a/variables.tf +++ b/variables.tf @@ -33,7 +33,7 @@ variable "azure_ad_admin_login" { description = "The login username of the Azure AD Administrator of this SQL Server." } -variable "azure_ad_admin_object_id" { +variable "azure_ad_object_id" { type = string description = "The object id of the Azure AD Administrator of this SQL Server" }