I was trying to play with CloudQuery in the dev mode. I followed the steps mentioned in the development_environment doc. All steps till step no 3 are successful. All plugins have been built, the server is running, and the source and destination plugin configs are set.
However, step 4 fails saying that CloudQuery can’t acquire a token for Azure; the AZURE_TENANT_ID is missing. I have checked the environment variables, and both printenv and env give the right results. In fact, the normal non-dev mode works absolutely fine.
I am using WSL2 on Windows. The command I used is:
The plugin uses the SDK default credential chain, which attempts to get credentials via either the environment, workload identity, managed identity, or the CLI. Just to confirm, are you attempting to configure the credentials via environment variables?
Yes, environment variables.
It works fine with the non-dev method (essentially where the config doesn’t have the registry and the path is cloudquery/azure).
Would you be able to run the Azure server again but with the following command:
env | grep AZURE && go run main.go --serve
I would expect to see all the required environment variables set in the terminal session where you are running the source plugin. The source plugin logs would also be useful to see if you wouldn’t mind pasting the output of the above command here - with any sensitive info redacted. Thanks.