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
Previously, I was using the provider with an Azure DevOps Service Account connected via Service Principal, and it was working fine. Now, I replaced it with a Service Account using Managed Identity with Federated Credentials and updated the code to use azuread_managed_identity_auth with user_id as described in the provider documentation. Unfortunately, it is not working.
I initially thought it was a firewall issue, but my DevOps Agent IP is set in the firewall rules, and the managed identity is assigned as Entra admin.
I still receive the error: "Unable to create user [db-name].[mi-user]: DB connection failed after 30s timeout."
I am using the following ID for user_id: /subscriptions/.../resourcegroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-name.
If I switch back to the Service Principal, it works again. All my other resources are also working fine with the Managed Identity.
Any idea what the problem could be?
I have got the same issue. Whatever I try, I always get the same error:
Error: unable to create user [xxx].[xxx]: db connection failed after 30s timeout.
@mischmuc, you say it works for you when you use the provider with an Azure DevOps Service Account connected via Service Principal. When I do that I still get the timeout.
What does your resource look like in your old situation? The only thing you change is "azuread_managed_identity_auth" ?
Previously, I was using the provider with an Azure DevOps Service Account connected via Service Principal, and it was working fine. Now, I replaced it with a Service Account using Managed Identity with Federated Credentials and updated the code to use azuread_managed_identity_auth with user_id as described in the provider documentation. Unfortunately, it is not working.
I initially thought it was a firewall issue, but my DevOps Agent IP is set in the firewall rules, and the managed identity is assigned as Entra admin.
I still receive the error: "Unable to create user [db-name].[mi-user]: DB connection failed after 30s timeout."
I am using the following ID for user_id: /subscriptions/.../resourcegroups/rg-name/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mi-name.
If I switch back to the Service Principal, it works again. All my other resources are also working fine with the Managed Identity.
Any idea what the problem could be?
The text was updated successfully, but these errors were encountered: