Skip to content

Create Preview web experience from new AI Foundry is incomplete #19

@Jandev

Description

@Jandev

When you create an agent in AI Foundry there's a Preview dropdown from which you can select View sample app code.

This option points the user to this repository, mentions it should clone it and create a .env file and fill it with the variables for the specific agent.

AZURE_EXISTING_AGENT_ID="My-agent:2"
AZURE_ENV_NAME="agents-playground-1234"
AZURE_LOCATION="swedencentral"
AZURE_SUBSCRIPTION_ID="C9FA0200-BF02-4F0A-AD47-ECF3138D657F"
AZURE_EXISTING_AIPROJECT_ENDPOINT="https://my-project-resource.services.ai.azure.com/api/projects/my-project"
AZURE_EXISTING_AIPROJECT_RESOURCE_ID="/subscriptions/C9FA0200-BF02-4F0A-AD47-ECF3138D657F/resourceGroups/ai-foundry-experiments/providers/Microsoft.CognitiveServices/accounts/my-project-resource/projects/my-project"
AZURE_EXISTING_RESOURCE_ID="/subscriptions/C9FA0200-BF02-4F0A-AD47-ECF3138D657F/resourceGroups/ai-foundry-experiments/providers/Microsoft.CognitiveServices/accounts/my-project-resource"
AZD_ALLOW_NON_EMPTY_FOLDER=true

From my experience, this is not complete.

This variable is also required, when you have multiple AI Foundries.

AI_FOUNDRY_RESOURCE_NAME="my-project-resource"

Based on the already provided variables, this variable does appear to be redundant as it's mentioned multiple times in the .env file already.

I was also prompted to add this environment variable:

AI_AGENT_ID="My-agent"

However, adding it to the .env file didn't help. I had to add it to the azd environment variables.

azd env set AI_AGENT_ID "My-agent"

Which is a bit weird.

Same applies to the AI_AGENT_ENDPOINT, which is being used when creating the deployment, but not mentioned in the .env file sample in AI Foundry, even though another variable is specified over there with useful information.


It would be great if the steps in AI Foundry are updated with the latest state of this repository. Or the repository changed so it matches with the AI Foundry steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions