AttributeError: 'ComputeRecurrenceSchedule' object has no attribute '_to_rest_compute_pattern_object' #39744
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Machine Learning
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
Service Attention
Workflow: This issue is responsible by Azure service team.
uname -a
)Describe the bug
First, I create a compute instance on behalf of a user using the MLClient begin_create_or_update() with specific compute instance configuration (script, schedule, etc.).
Second, I retrieve the created compute object from the poller of begin_create_or_update(), then I update the compute with new parameters (in my case, enable SSO after creation, as I can't enable SSO during creation).
When I run the update of the compute instance with a second begin_create_or_update(), I get the following error:
To Reproduce
Steps to reproduce the behavior:
This confuses me, as the error is related to the schedule, which I didn't touch at that stage.
This confuses me, as the error is related to the schedule, which I didn't touch at that stage.
Expected behavior
I expect to be able to get a Compute(Instance) object returned from the poller or the compute operations, modify a parameter, then update compute with begin_create_or_update() without having errors.
Screenshots
Not applicable.
Additional context
Taken from: https://learn.microsoft.com/en-us/python/api/azure-ai-ml/azure.ai.ml.operations.computeoperations?view=azure-python#azure-ai-ml-operations-computeoperations-enable-sso
This is experimental though, so not really keen on relying on this long term.
The text was updated successfully, but these errors were encountered: