I set an azure ad admin (global admin) for our azure sql server, now i tried to grant a ad user access to the sql database. I followed the instructions in this video https://www.youtube.com/watch?v=pEPyPsGEevw, because i didn't found a better explenation. As described in the video, i created a query in the target database context:
CREATE USER [[email protected]] FROM EXTERNAL PROVIDER
that raises this exception:
Msg 33134, Level 16, State 1, Line 1 Principal '[email protected]' could not be resolved. Error message: 'AADSTS7000219: 'client_assertion' or > 'client_secret' is required for the 'urn:ietf:params:oauth:grant-type:jwt-bearer' grant type. Trace ID: 95da6617-732c-42bf-b74b-40a4fdffe000 Correlation ID: cf4b894f-f945-492c-a77f-e2976ac72eab Timestamp: 2020-06-09 17:58:48Z
When i try the same in master db, it works.
What goes wrong? Or could you provide me a source of a step by step guide? I didn't found a real good description...