Azure Arc provides the functionality to use IMDS on machines not in the azure cloud but connected to it. The endpoint used on these servers is 127.0.0.1:40342/metadata/identity/oauth2/token and version "2019-11-01"
Is it possible to expose these variables for configuration.
@ncw, thank you for looking at this request so quickly. I have tested changing the endpoint/API version in the source code and then realized that although the mechanisms appear similar the himds endpoint returns a path to a local file instead of the actual token. I will attempt to test using the oauthTokenManager code from azcopy as a reference azure-storage-azcopy/oauthTokenManager.go at main · Azure/azure-storage-azcopy · GitHub