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
When the default_schema is not set, we have found that identities (such as managed identities that are members of Azure Entra ID groups) run into issues when running trying to run database migrations that involve setting up schemas, tables, etc.
Typically an error is thrown similar to the following:
Error occurred during DB Migration: "The specified schema name \"<Object ID>@<Directory/Tenant ID>\" either does not exist or you do not have permission to use it."
This gets fixed by running:
ALTER USER [<Azure Entra ID Group Name>] WITH DEFAULT_SCHEMA=[dbo]
Which might be accounted for by specifying the default_schema in the CreateUser function.
The text was updated successfully, but these errors were encountered:
dhizzlewizzork
changed the title
default_scema is not set for identities from EXTERNAL PROVIDER for Azure SQL Database Users.default_scema is not set for identities from EXTERNAL PROVIDER for Azure SQL Database Users.
Aug 7, 2023
I believe this could be updated here:
https://github.com/betr-io/terraform-provider-mssql/blob/master/sql/user.go#L113
When the
default_schema
is not set, we have found that identities (such as managed identities that are members of Azure Entra ID groups) run into issues when running trying to run database migrations that involve setting up schemas, tables, etc.Typically an error is thrown similar to the following:
This gets fixed by running:
Which might be accounted for by specifying the default_schema in the CreateUser function.
The text was updated successfully, but these errors were encountered: