No OData route exists that match template - deviceManagement/assignmentFilters #443
Labels
status:waiting-for-triage
An issue that is yet to be reviewed or assigned
type:bug
A broken experience
Describe the bug
Hi there, i am writing a terraform provider on top of your SDK. My work initially is starting with a simple object to test the provider with. I have chosen graph beta
deviceManagement/assignmentFilters
.I have successfully implemented all of the CRUD functions for this resource apart from the update function which gives me errors i believe related to the SDK. The full set of crud function can be found here.
I am trying to update resources once created using the http PATCH method as follows:
My issue i believe this is due to incorrect URL construction. Is this something occurring at the SDK level, or am i incorrectly constructing my call with the PATCH method ? Any help appreciated.
thank you
Expected behavior
A well form PATCH request should be sent and update the resource via graph
How to reproduce
Go to provider, compile, create a resource using example from examples folder in HCL. Then change an attribute of the deviceAssignmentFiler and run terraform apply.
SDK Version
v0.106.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
i get the following error returned ``` 2024-07-25T19:53:34.109+0100 [ERROR] vertex "microsoft365_graph_beta_device_and_app_management_assignment_filter.example" error: Error updating resource╷
│ Error: Error updating resource
│
│ with microsoft365_graph_beta_device_and_app_management_assignment_filter.example,
│ on microsoft365_graph_beta_device_and_app_management_assignment_filter.tf line 1, in resource "microsoft365_graph_beta_device_and_app_management_assignment_filter" "example":
│ 1: resource "microsoft365_graph_beta_device_and_app_management_assignment_filter" "example" {
│
│ Could not update with ID : No OData route exists that match template ~/singleton/navigation with http verb
│ PATCH for request
│ /GnT/StatelessPayloadLinkingService/8d87088f-ffff-3257-0602-071717505659/deviceManagement/assignmentFilters.
╵
The text was updated successfully, but these errors were encountered: