Comments (14)
Hello Brynn, I don't think any of my environment variables allow az login to get the credentials. When I type az login, I need to open a website, enter a code, and log in manually. If there is a way around this I would appreciate some instructions on how to do it.
from promptflow.
The reason why I am asking this is, I want to run PromptFlow in an Azure WebApp. I don't want to have to do the az login and set destination every time I restart that web app.
from promptflow.
Hi. The az login
is used to get the identity for accessing Azure resources, even if we support config the trace destination via python code like you've wrote, you will still be asked to login for getting the identity token to execute the flow.
from promptflow.
@brynn-code That is really frustrating. I am working with an Azure Web App. I am able to access 6 other Azure resources by just loading my credentials into environment variables. How would you recommend I install and use the az login during deployment and then the set trace command with CI/CD with Azure Devops, so I don't have to enter those commands manually every time I deploy?
from promptflow.
Would you like to show me the environment variables you've configured which could let Azure credential get token successfully?
We will call the DefaultAzureCredential to retrieve the token, that's a chained credential, az login
is used to get the AzureCliCredential and that not the specific type we required, any else credential type could get the token can work as same, which means if the environment variables are in standard format, maybe it could work.
from promptflow.
The standard format
means that's something AzureCredential could recognize directly, in that case, maybe the env vars could work.
from promptflow.
Would you like to show me the environment variables you've configured which could let Azure credential get token successfully?
We will call the DefaultAzureCredential to retrieve the token, that's a chained credential,
az login
is used to get the AzureCliCredential and that not the specific type we required, any else credential type could get the token can work as same, which means if the environment variables are in standard format, maybe it could work.
I'm sorry but I don't understand the question here.
from promptflow.
I am able to get Promptflow Tracing to work during my build pipeline by logging in manually using the website link and authentication code using az login.
However, during the deployment phase, I am getting some errors when trying to do the same thing. How can I set my trace destination during my deployment/release pipeline so my app is ready to go when it is deployed? Do I have to run az login and then set the trace destination after my app is deployed?
from promptflow.
A suggestion: just bypass all the OpenTelemetry stuff and just save things to CosmosDB using the CosmosDB SDK. That way I don't have to mess with az login during build or deployment.
from promptflow.
It appears that I can't set the promptflow config during deployment, because according to pf config -h, that gets saved to ~/.promptflow/config.yaml, which is an unwriteable directory. You guys really did not think this through when writing it, it appears that your software is not compatible with Azure WebApps or Azure FunctionApps.
from promptflow.
@brynn-code It appears that OpenTelemetry with Azure Monitoring uses just a connection string and I don't have to log in, you may want to adopt that approach: https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=python
from promptflow.
I am able to get Promptflow Tracing to work during my build pipeline by logging in manually using the website link and authentication code using az login.
However, during the deployment phase, I am getting some errors when trying to do the same thing. How can I set my trace destination during my deployment/release pipeline so my app is ready to go when it is deployed? Do I have to run az login and then set the trace destination after my app is deployed?
Does the error you mentioned here is the one in this issue? #3391
from promptflow.
The error in #3991 is caused by this error, so the two are similar, yes. I am still unable to deploy my web app while using promptflow tracing, because promptflow tracing requires logging in via the azure command line and then setting the trace destination.
from promptflow.
Hi, we're sending this friendly reminder because we haven't heard back from you in 30 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 7 days of this comment, the issue will be automatically closed. Thank you!
from promptflow.
Related Issues (20)
- [BUG] Langchain in promptflow parse failure HOT 1
- [DOC] too many Getting Started sections HOT 1
- [DOC] too many Getting Started sections HOT 1
- [Contribution Request] Tutorial on Continuous Monitoring using ML Pipelines HOT 1
- [BUG] promptflow built in evaluator cannot take nested json outputs as column mapping HOT 2
- [VSCode Extension] Error: 400 status code (no body) HOT 1
- [Feature Request] The evaluation of Prompt Flow outputs in parallel with a Prompt Flow run HOT 1
- [BUG]Trace View can't display boolean output
- [BUG] Transient error INTERNAL SERVER ERROR encountered while exporting span batch, retrying in 2s HOT 5
- [BUG]some LLM call trace log missing HOT 2
- [BUG] Can't add GitHub Models as a Connection HOT 6
- [BUG] [VSCode Extension] - promptflow-vectordb mlindex_content fails HOT 9
- [BUG] [VSCode Extension] Unexpected token error, Category Info ParentContainsErrorRecordException
- [BUG] Testing streaming tool with VS Code extension does not serialize chat history correctly HOT 3
- [Feature Request] Ability to Add Custom Dimensions to Deployed Endpoint App Insights HOT 2
- [BUG] Failed to retrieve the discovery service URL when running ViolenceEvaluator HOT 1
- [BUG] Default prompt for similarity does not work with gpt-4o HOT 2
- [BUG] Promptflow-evals isn't compatible with having a local utils.py file HOT 1
- [BUG] promptflow-eval evaluate function changes current working directory HOT 1
- [Feature Request] Release next version of promptflow-tools HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptflow.