I was able to solve the issue. After figuring out the order that DefaultAzureCredential
attempted to authenticate, I excluded attempts to ManagedIdentityCredential and SharedTokenCacheCredential. This looked like:
var credential = new DefaultAzureCredential(new DefaultAzureCredentialOptions { ExcludeManagedIdentityCredential = true, ExcludeSharedTokenCacheCredential= true })
Now I am able to replicate the tutorial!