Skip to content
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

[BUG] The EnvironmentId field is required error when run project_client.evaluations.create_or_replace_schedule #39175

Closed
hyogrin opened this issue Jan 14, 2025 · 2 comments
Labels
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. Evaluation Issues related to the client library for Azure AI Evaluation needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.

Comments

@hyogrin
Copy link

hyogrin commented Jan 14, 2025

  • Package Name: azure-ai-evaluation,
  • Package Version: Debian GNU/Linux 12
    azure-ai-evaluation==1.1.0
    azure-ai-projects==1.0.0b4
    azure-ai-ml==1.23.1
  • Operating System: ai-foundry compute instance
  • Python Version: Python 3.10.15

Describe the bug
I am trying to create scheduled evaluation pipeline looking at Azure AI Evaluation SDK - https://learn.microsoft.com/en-us/azure/ai-studio/how-to/online-evaluation
When I execute the code block I ran into error below.
recurrence_trigger = RecurrenceTrigger(frequency="day", interval=1)

evaluation_schedule = EvaluationSchedule(
data=app_insights_config,
evaluators=evaluators_cloud,
trigger=recurrence_trigger,
description=f"{service_name} evaluation schedule",
properties=properties
)

created_evaluation_schedule = project_client.evaluations.create_or_replace_schedule(service_name, evaluation_schedule)


Code: SystemError
Message: The evaluation submit request failed to submit with reason Service invocation failed!
Request: PUT swedencentral.api.azureml.ms/mferp/managementfrontend/subscriptions/3d4d3dd0-79d4-40cf-a94e-b4154812c6ca/resourceGroups/AOAI-group3/providers/Microsoft.MachineLearningServices/workspaces/aoai-pjt1/schedules/daily-evaluation_2025-01-14-05-43-55
Status Code: 400 BadRequest
Error Code: UserError
Reason Phrase: Request is invalid and/or missing fields.
Response Body: {
"error": {
"code": "UserError",
"message": "Request is invalid and/or missing fields.",
"details": [
{
"code": "RequestInvalid",
"message": "The EnvironmentId field is required.",
"details": [],
"additionalInfo": []
}
],
"additionalInfo": [
{
"type": "ComponentName",
"info": {
"value": "managementfrontend"
}
},
{
"type": "Correlation",
"info": {
"value": {
"operation": "ef0545545fc402ee48b453df65121716",
"request": "6c86c8448c1a1bfd"
}
}
},
{
"type": "Environment",
"info": {
"value": "swedencentral"
}
},
{
"type": "Location",
"info": {
"value": "swedencentral"
}
},
{
"type": "Time",
"info": {
"value": "2025-01-14T06:09:01.7681227+00:00"
}
},
{
"type": "InnerError",
"info": {
"value": {
"code": "RequestInvalid",
"innerError": null
}
}
},
{
"type": "MessageFormat",
"info": {
"value": "Request is invalid and/or missing fields."
}
}
]
}
}
To Reproduce
Steps to reproduce the behavior:
1.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 14, 2025
@hyogrin hyogrin changed the title The EnvironmentId field is required. [BUG] The EnvironmentId field is required error when run project_client.evaluations.create_or_replace_schedule Jan 14, 2025
@xiangyan99 xiangyan99 added Service Attention Workflow: This issue is responsible by Azure service team. Evaluation Issues related to the client library for Azure AI Evaluation and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jan 14, 2025
@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jan 14, 2025
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @luigiw @needuv @singankit.

@kristapratico kristapratico added the Client This issue points to a problem in the data-plane of the library. label Feb 4, 2025
@ghyadav
Copy link

ghyadav commented Feb 20, 2025

hey @hyogrin, apologies for the delayed response.
You should no longer be seeing this issue. Please let me know if you are still seeing this issue

@ghyadav ghyadav closed this as completed Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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. Evaluation Issues related to the client library for Azure AI Evaluation needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention Workflow: This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants