-
Bug
-
Resolution: Unresolved
-
Undefined
-
None
-
4.14, 4.15, 4.16, 4.17
-
None
-
False
-
Description of problem:
If ccoctl is run from an Azure instance it will inherit the identity of the VM rather than those generated by running `az login` which is surprising whenever someone intends to run `ccoctl` from automation within Azure. This can be overridden by setting an environment variable.
Version-Release number of selected component (if applicable):
4.14, 4.15, 4.16, 4.17
How reproducible:
100%
Steps to Reproduce:
1. run `ccoctl` in an Azure instance 2. 3.
Actual results:
`ccoctl` uses identity from the instance rather than identity created by running `az login`
Expected results:
After having run `az login` the `ccoctl` command would use the credentials stored by that command.
Additional info:
To override this behavior one needs to set the desired environment variables outlined here https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#EnvironmentCredential