Note
It would be great to get rid of the subscriptionId resourceGroupName or tenantId properties. In the documentation, it says they're only required for SPs, but they are also required for managed identities. In core Azure.Identity libraries, they're not required for managed identities.