Open djseng opened 3 weeks ago
Hello @djseng, can you please confirm whether we need to reproduce this steps in dev container platform or somewhere else?
@Prasanjeet-Microsoft this is when deploying to azure.
@djseng We have tried to reproduce the steps that is mentioned above. But it seems "set" is not a valid azd command to set the value of environment variable. Therefore, we have tried to find the alternate way to set the value of environment variables. Please find below commands that we have come across which is working fine:
Ensure Azure CLI is Installed and Logged In
Run the Azure CLI Command
az webapp config appsettings set --resource-group YourResourceGroupName --name YourWebAppName --settings AZURE_OPENAI_SYSTEM_MESSAGE="You help people find information."
Replace:
This command sets the environment variable AZURE_OPENAI_SYSTEM_MESSAGE with the value "You help people find information." for your specified Azure Web App.
az webapp config appsettings list --resource-group YourResourceGroupName --name YourWebAppName --query "[?name=='AZURE_OPENAI_SYSTEM_MESSAGE'].[value]" --output table
This command lists the app settings (environment variables) for your Azure Web App YourWebAppName in YourResourceGroupName and filters specifically for AZURE_OPENAI_SYSTEM_MESSAGE.
Please find the attachments for your reference:
FYI @Roopan-Microsoft
@Prasanjeet-Microsoft azd
(Azure Developer CLI) is not az
(Azure CLI) ... azd
is used heavily in this project's documentation to deploy and set environment variables for this project.
Describe the bug
When I set the
AZURE_OPENAI_SYSTEM_MESSAGE
then do anazd up
the system message isn't set as expected.Expected behavior
I'd expect the
AZURE_OPENAI_SYSTEM_MESSAGE
to be set, and used in the function app.How does this bug make you feel?
Share a gif from giphy to tells us how you'd feel
Debugging information
Steps to reproduce
Steps to reproduce the behavior:
ssh to the function app
outputs nothing.
I also tried
ssh to the function app
outputs nothing
Work Around
If I manually add a new AZURE_OPENAI_SYSTEM_MESSAGE environment variable then I see the expected SYSTEM_MESSAGE.
ssh to the function app
outputs the expected system message
Tasks
To be filled in by the engineer picking up the issue