Authentication Failed When Creating Prompt Flow

Sally Chen 145 Reputation points Microsoft External Staff
2024-11-01T07:42:36.11+00:00

I want to create prompt flow in Azure AI Studio. However, I face the following issue:

Authentication Failed

Unable to access the dag.yaml file with original storage location at Users/MY_USERNAME/promptflow/MY_PROMPT_FLOW/flow.dag.yaml. Please check the storage setting.

If there any solutions to this error? Thank you.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,303 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Mauro Minella 51 Reputation points Microsoft Employee
    2024-11-25T10:14:36.0766667+00:00

    Hi @Jason, you are absolutely right: this solution definitely solved the problem.

    Thank you,

    MauroUser's image

    2 people found this answer helpful.

  2. Jason Leong 10 Reputation points Microsoft Employee
    2024-11-25T03:05:39.7966667+00:00

    The Storage access key has been disabled on the Storage account. You could re-enable it if you have the permissions, as per Mauro Minella's comment. But if your company has a policy to disable it, you will need to find another way.

    Refer to this page for information on how to change the access to using Entra ID:

    https://learn.microsoft.com/en-gb/azure/ai-studio/how-to/disable-local-auth?tabs=portal#update-an-existing-hub

    1 person found this answer helpful.
    0 comments No comments

  3. Nguyen Tran 0 Reputation points Microsoft Employee
    2024-12-01T02:29:06.4133333+00:00

    I had done following configs and it works:

    1. From Azure Portal, go to the Storage Account which is used for your AI Project, go to IAM, select Add role assignment.
    2. In the Role Assignment, in the Roles, you'll see a drop down list, please select the role storage blob DATA contributor & then, role Storage File Data Privileged Contributor; add member for the identity you want to grant access.
    3. Click review & assign.
    4. Done.
    0 comments No comments

  4. Zhen Yuan 0 Reputation points Microsoft Employee
    2025-01-03T01:27:00.8166667+00:00

    I had the same issue before, and I managed to fix by following the below steps:

    1. add "storage blob data contributor" role to the account
    2. enable "allow storage account key access"

    hopefully this helps.

    0 comments No comments

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.