Incorrect MSI API version when running inside azure function apps #1023
Labels
kind/bug
Some behavior is incorrect or out of spec
needs-azidentity
https://docs.google.com/document/d/1utrtDz3AiJ1d7hmkcU3J8MJ3POstG6ypWh0Rb3zi_dM/edit?usp=sharing
What happened?
I am trying to run pulumi from within an azure function application using managed identity.
The typical IMDS endpoint does not work for function apps which is normal for function apps
Setting useMsi to process.env.MSI_ENDPOINT, gets me passed the initial error. It seems like this msiEndpoint has a different supported API version. It seems to want "2017-09-01": https://learn.microsoft.com/en-us/javascript/api/@azure/ms-rest-nodeauth/msiappservicetokencredentials?view=azure-node-latest#@azure-ms-rest-nodeauth-msiappservicetokencredentials-msiapiversion
Is there a way to configure apiVersion for this authentication calls? I cant find anything in the docs/codebase for this.
Example
Output of
pulumi about
CLI
Version 3.113.0
Go Version go1.22.2
Go Compiler gc
Plugins
NAME VERSION
nodejs unknown
Host
OS debian
Version 11.9
Arch x86_64
This project is written in nodejs: executable='/usr/bin/node' version='v18.20.1'
Backend
Name a4c896056958
URL azblob://
User root
Organizations
Token type personal
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: