Open baywet opened 5 years ago
This is actually configurable via the app setting BYOB_TokenMap
. If you set it as a local app setting, you should be able to avoid this issue for local development without affecting the issue in production.
I forgot to mention I already have this set up in my local.settings.json, the path exists and I have rights to write to it.
{
"Values": {
"BYOB_TokenMap": "C:\\sources\\gitttl\\SiteCreation\\SiteCreation\\bin\\Debug\\Byob_tokenMap"
}
}
I can confirm this issue. My guess is that the null check in GraphOptions.cs is never true because the value is hardcoded. It never reads from appSettings.
Ah, this must have broken with the recent dependency injection changes. I'll open a PR for this.
@ConnorMcMahon checkout #77
Hi @ConnorMcMahon,
I'm unable to get this working, even with the latest source from GitHub (since this fix isn't in the 1.0.0.beta6 release) - the config value isn't read. Am I missing something?
Thx, Rich
@richardu have you tried from the dev branch? MY PR has only made it so far. https://github.com/Azure/azure-functions-microsoftgraph-extension/pull/77
Hi @ConnorMcMahon I grabbed the master branch since it's currently level with dev - I can see your fix here: https://github.com/Azure/azure-functions-microsoftgraph-extension/commit/ed2969d59440c19b5b588f55097a24de5d866725
Any updates on this?
As a workaround to test locally I created a virtual drive using the following command
subst d: C:\Users\{username}\tmp
Hi all,
I had the same issue and I resolved it as below.
If you developed your Azure Function locally and you got this error after publishing. Simply, you have to create a new partition D:\ on your local hard disk.
It worked for me.
I also have this problem. So no way to follow this guide.
Repro:
You'll get the following error message in the functions host console
Fortunately plugging a usb key and affecting the D letter works around the issue, but this is far from ideal.