-
Notifications
You must be signed in to change notification settings - Fork 60
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
KeyError: 'AndroidEnterpriseDedicatedDevice #457
Comments
Thanks for reporting this @pouriyajamshidi @samwelkanda Can you create an ICM on the relevant team so they either stop returning those values or amend their metadata please? (for reference, here is the endpoint we're referring to https://learn.microsoft.com/en-us/graph/api/intune-devices-manageddevice-list?view=graph-rest-1.0&tabs=http) |
Thanks @baywet for your prompt response. |
This is a duplicate of #443 but this is a better report so I'll close that issue |
Possibly related to microsoft/kiota-serialization-json-python#265 |
@samwelkanda Can you confirm whether you had created an ICM at the time for the workload to add the missing enum values in the description please? |
Just encountered this with PS: I didn't perform any additional tests so can't rule out if kiota-serial 1.2.0 has sideeffects on the rest of my code |
Thanks for confirming. Closing since the issue has been solved in the serialization library. |
Hi,
I am developing an application for my company that requires talking to Azure to manage devices.
While pulling down the managed devices through this SDK, the program crashes with a KeyError: 'AndroidEnterpriseDedicatedDevice' error
Here is the code to reproduce:
Here is the full console output:
The fix is to add
AndroidEnterpriseDedicatedDevice = "androidUserEnrollmentWithServiceAccount",
underDeviceEnrollmentType
class insidemsgraph/generated/models/device_enrollment_type.py
Please let me know if you have any other questions.
I could open a PR for this but since I reached out to @baywet , it became clear that this code is automatically generated and PRs might not get through.
The text was updated successfully, but these errors were encountered: