Enable Functions 2.0 preview feature, pick the HTTP Trigger template, install the Microsoft Graph extension;
In the Integrate settings page, add the Auth token as a new input;
Pick "User From ID" as the Identity mode;
Fill in other required fields and click on "Save".
[Expected]
The settings should be saved successfully.
[Actual]
An error message is shown:
Function ($HttpTriggerCSharp1) Error: Could not convert 'userId' to TokenIdentityMode. Error converting value "userId" to type 'Microsoft.Azure.WebJobs.TokenIdentityMode'. Path 'identity'. Requested value 'userId' was not found.
[Note]
Looking into function.json, you will see the identity value is "userId", which is wrong and should be "userFromId".
After manually fixing the function.json to have "userFromId" as the identity mode. Everything works as expected.
[Steps]
[Expected] The settings should be saved successfully.
[Actual] An error message is shown: Function ($HttpTriggerCSharp1) Error: Could not convert 'userId' to TokenIdentityMode. Error converting value "userId" to type 'Microsoft.Azure.WebJobs.TokenIdentityMode'. Path 'identity'. Requested value 'userId' was not found.
[Note] Looking into function.json, you will see the identity value is "userId", which is wrong and should be "userFromId".
After manually fixing the function.json to have "userFromId" as the identity mode. Everything works as expected.