Closed Will-Kerwin closed 1 year ago
Thanks for raising this @Will-Kerwin
Unfortunately, executing the code sample shared results in a successful request when making a call with the SDK.
Any chance you are able to catch the error thrown and share the detailed error response from the API by following the guidance at the link below?
https://github.com/microsoftgraph/msgraph-sdk-dotnet/blob/dev/docs/upgrade-to-v5.md#error-handling
thank you, i have misunderstood what was meant by app id and oid. the advice with capturing the odata error helped me find this.
Describe the bug A clear and concise description of what the bug is.
I am trying to send a request through the graph sdk v5.10.0 it continously returns a failure saying one of the properties is invalid. I am trying to create a new client secret for an app registration using
Each time it fails with the following exception
'Microsoft.Graph.Models.ODataErrors.ODataError'
and inner exception ofI am using managed identity to authenticate on an azure linux function app. for local testing i am using my personal account with the required permissions consented. I have attempted on both and none have worked.
MS Learn
To Reproduce Steps to reproduce the behavior:
_graph
beingGraphServiceClient
andappId
being any valid app registration client id in azure tennant.Expected behavior A clear and concise description of what you expected to happen. I expect this code to pass through a datetime offset of two months from the current date and it to create a client secret with the desired app registration and return that data.
Screenshots If applicable, add screenshots to help explain your problem. not a screenshot but full stacktrace
Desktop (please complete the following information):