-
Notifications
You must be signed in to change notification settings - Fork 450
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSI_SECRET and MSI_ENDPOINT are not populated after enabling MSI #2038
Comments
It appears that only by...
... can I get this to work as expected. The application I used for repro'ing this issue now has these env variables set up as expected. What didn't work was...
|
This is a known issue affecting a few scale units, mostly in West Europe. It will be fixed within a couple weeks, but until then you can work around by setting |
Aha....interesting. Does this mean that other regions are less likely to see this problem? I'll try that setting too. Thanks @davidebbo |
I've confirmed that this works. I needed to restart (using the portal) the Function app, but right after that the MSI_* environment variables were available. |
Closing this as the fix has been checked in to app service. As David mentioned above, deployment is probably still a couple of weeks away. |
Thanks for resolving this. Will there be any update here (or elsewhere) once the fix is in production? |
The fix is now fully deployed. |
I know this is outdated, but still, for people who may experience that issue, I just had the exact same problem for over 24h now, and I finally figured out by browsing KUDU that we had sketchy environment variables :
Now, I have no idea where those environment variables came from in the first place, but removing these from our environment resolved the issue. |
After enabling the Managed Service Identity for an Function App, the MSI_SECRET and MSI_ENDPOINT environment variables are supposed to be populated. However, in my experience, this can take a long time to happen. I've tried:
None of these actions reliably causes the MSI_SECRET or MSI_ENDPOINT environment variable to be populated. In fact, in some situations where these environment variables have been set up correctly, some of the above actions (in particular, redeploying code) can cause them to disappear.
Investigative information
Details from a run where this issue was seen:
This is a Javascript HttpTrigger function, running in West Europe.
Repro steps
EXPECTED
env
should show the MSI_ENDPOINT and MSI_SECRET environment variablesenv
should also show these valuesACTUAL
The text was updated successfully, but these errors were encountered: