Prompt flow deployment of endpoint failed Registering flow as model for deployment

Jason McReynolds 25 Reputation points
2024-09-19T20:02:44.15+00:00

I've created a Prompt Flow in Azure AI Studio, and when I go to deploy it, the Machine Learning online endpoint successfully deploys, but then I get an error that "Registering flow as model for deployment" failed. Nothing else gets deployed besides the ML online endpoint.

pfdfail

I've followed the instructions to make sure that the ML online endpoint identity has "Storage Blob Data Contributor" access to the storage account associated with the project (even deleted, re-added, and tried granting Owner access to the storage account as well), but none of that seems to work, it always fails. I've checked the activity logs and nothing shows up in those indicating a failure. I'm not sure where else to look for logs for this or what to do/check at this point. Any help would me much appreciated. Thanks!

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,340 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,631 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Jason McReynolds 25 Reputation points
    2025-06-05T15:35:16.9766667+00:00

    As an update, here's what initially ended up resolving the issue for me:

    1. Assign the role "Storage Blob Data Contributor Role" to the Project (AML workspace) managed identity and the managed online endpoint managed identity on the storage account.
    2. There was a bug on the endpoint (that is hopefully fixed by now) - when combined weight on endpoint is 0, UI currently fails to do the CORS OPTIONS request successfully leading to unauthorized error. While they do not yet an ETA for a fix, they provided a mitigation step for this error: manually set traffic on the deployment to 100%.

    I had some other issues as well, with some "phantom" resources (resources that still showed up in the project, but had been deleted from Azure - mostly blob storage accounts), so ultimately I ended up creating a new hub and project and manually migrating everything over, which resolved all of the issues we were having


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.