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] Authorization issue in flows.create_or_update #3840

Open
Emilon1928 opened this issue Nov 5, 2024 · 2 comments
Open

[BUG] Authorization issue in flows.create_or_update #3840

Emilon1928 opened this issue Nov 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Emilon1928
Copy link

Describe the bug
Calling flows.create_or_update raise error: "This request is not authorized to perform this operation."

How To Reproduce the bug

from azure.identity import DefaultAzureCredential
from promptflow.azure import PFClient

client = PFClient.from_config(
credential=DefaultAzureCredential(),
path='config.json'
)

client.flows.create_or_update(
flow='./test_flow',
display_name='test_flow',
)

Expected behavior
New flow is created from local files.

Screenshots
Image

Running Information:
{
"promptflow": "1.16.1",
"promptflow-azure": "1.16.1",
"promptflow-core": "1.16.1",
"promptflow-devkit": "1.16.1",
"promptflow-tracing": "1.16.1"
}
Ubuntu 22.04.1 LTS
Python 3.10.12

Additional context
Storage account is open for public connections.

@Emilon1928 Emilon1928 added the bug Something isn't working label Nov 5, 2024
@luigiw
Copy link
Member

luigiw commented Nov 5, 2024

Can you make sure your identity has ai developer role to the ai project you're using?

@Emilon1928
Copy link
Author

I have a contributor role. I can create directories and upload new files to the file share using the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants