Closed alxy closed 2 years ago
@alxy Hello! I have exactly the same configuration! How was the issue resolved? cause #33 without an answer.
For us it was working after this change.
Check the following:
Also note that it takes a while (~1min) for system assigned MIs to be available in the AAD tenant. So a first run might fail, if you create the sql user immediately after you spawn the Azure resource.
I'm trying to create an AAD user (
CREATE USER FROM EXTERNAL PROVIDER
) for a SystemAssigned managed identity, in my case an Azure Stream Analytics jobs. I'm using the following code to do that:The principal that runs this bit of Terraform code is setup as the AAD SQL Server admin on Azure portal. The result of running this is:
It looks like the AAD administrator cannot read from the
sql_logins
view, however, there is also no need to read from there as external users do not have logins attached to them.