Unable to create azure-native.machinelearningservices.ServerlessEndpoint resource #3687
Labels
awaiting-feedback
Blocked on input from the author
kind/bug
Some behavior is incorrect or out of spec
What happened?
I was trying to create a ServerlessEndpoint with Python code like this:
And I got this error back:
error: Code="UserError" Message="Serverless offer 'mistral-ai-large-2407-offer' not found in service namespace '000-000'." Details=[] AdditionalInfo=[{"info":{"value":"managementfrontend"},"type":"ComponentName"},{"info":{"value":{"operation":"c2d892c742bbb4d3af4b4b803733023f","request":"901eee4ec8280b5c"}},"type":"Correlation"},{"info":{"value":"westus"},"type":"Environment"},{"info":{"value":"westus"},"type":"Location"},{"info":{"value":"2024-10-29T19:53:35.2992082+00:00"},"type":"Time"},{"info":{"value":{"code":"NotFound","innerError":{"code":"ServerlessOfferNotFound","innerError":null}}},"type":"InnerError"}]
The valid values for
offer_name
andpublisher
don’t seem to be documented anywhere, but I tried all sorts of variations, and also with different models, and always got this error.When I create the endpoint manually through the Azure portal and then import it into Pulumi, it gives me this warning:
warning: One or more imported inputs failed to validate. This is almost certainly a bug in the
azure-nativeprovider. The import will still proceed, but you will need to edit the generated code after copying it into your program. warning: azure-native:machinelearningservices:ServerlessEndpoint resource 'string' has a problem: missing required property 'serverlessEndpointProperties'
And
offer_name
andpublisher
show up as empty strings.Given the warning message above, and the fact that the parameters the Azure Native provider expects don’t seem to line up with the Azure API, which expects a model ID instead of offer and publisher (https://learn.microsoft.com/en-us/rest/api/azureml/serverless-endpoints/create-or-update?view=rest-azureml-2024-04-01&tabs=HTTP#serverlessendpoint) I’m wondering if this is a misleading error message. I suspect because the ServerlessEndpoint API is still preview that it may have changed since the azure-native provider implemented it.
I’m able to create the endpoint with an ARM template like so:
But then I have to manually delete the endpoint before doing
pulumi destroy
, which is not ideal.Example
Here’s a
__main__.py
you can run to reproduce the error:Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: