diff --git a/internal/services/synapse/synapse_workspace_resource.go b/internal/services/synapse/synapse_workspace_resource.go index 4d614ac93570..dd5227cb077c 100644 --- a/internal/services/synapse/synapse_workspace_resource.go +++ b/internal/services/synapse/synapse_workspace_resource.go @@ -477,13 +477,15 @@ func resourceSynapseWorkspaceRead(d *pluginsdk.ResourceData, meta interface{}) e aadAdmin, err := aadAdminClient.Get(ctx, id.ResourceGroup, id.Name) if err != nil { - if !utils.ResponseWasNotFound(aadAdmin.Response) { + // NOTE: AAD Admin isn't supported for a Workspace created from a Dedicated SQL Pool / SQL DataWarehouse and returns a Conflict + if !utils.ResponseWasNotFound(aadAdmin.Response) && !utils.ResponseWasConflict(aadAdmin.Response) { return fmt.Errorf("retrieving AzureAD Admin for %s: %+v", *id, err) } } sqlAdmin, err := sqlAdminClient.Get(ctx, id.ResourceGroup, id.Name) if err != nil { - if !utils.ResponseWasNotFound(sqlAdmin.Response) { + // NOTE: SQL Admin isn't supported for a Workspace created from a Dedicated SQL Pool / SQL DataWarehouse and returns a Conflict + if !utils.ResponseWasNotFound(sqlAdmin.Response) && !utils.ResponseWasConflict(sqlAdmin.Response) { return fmt.Errorf("retrieving Sql Admin for %s: %+v", *id, err) } }