-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Managed Deployment Class returns 500 error #39772
Comments
Full process:
|
I've tried all kinds of variations of this process and I can't find a way to make this deploy. |
Try initializing the environment before passing it to ManagedOnlineDeployment. from azure.ai.ml.entities import Environment Register the environmentenv = Environment( Reference the registered environment in deploymentdeployment = ManagedOnlineDeployment( Deploy and wait for completiondeployment = ml_client.online_deployments.begin_create_or_update(deployment).result() |
Thanks for the input, It didn't work.
I updated the env that I have created to have the The yaml file for that env:
|
You need to pass the environment's Id, not the object itself. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-ml-sdk @azureml-github. |
would this, added at the end of your script, give you what you need then: logs = ml_client.online_deployments.get_logs(endpoint_name=endpoint_name, name="openapi") |
Some tweaks needed to the deployment object got it working.
|
Here is the error that was logged. It seems like model was unavailable, as per last comment, providing the correct model details resolve the issue. |
Hi @BillmanH. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Thanks for this! We were able to adjust and fix the issue. Cheers! |
Following this this document.
The error is cryptic, as per conventions.
Error:
Python function:
Is this a valid deployment process? Is there something missing?
Can you help to give us an example script that would work?
The text was updated successfully, but these errors were encountered: