Thank you @fierce-night-38522, ESC is part of Pulumi cloud, right? Unfortunately, we can't use that at the moment.
The problem with the environment variables is that I need to configure two Azure native providers at the same time, both with different OIDC credentials, which means that I can't use the environment variables to configure the providers (both providers would use the same credentials, which I can't use). I hope that makes sense