Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions cli/azd/extensions/azure.ai.agents/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
# Azure Developer CLI (azd) Agents Extension

<!-- cspell:ignore strconv -->
## Project monitoring

New Foundry projects created for agents automatically provision and connect
Application Insights through the normal Project infrastructure graph.
Existing projects are not opted in automatically. Optional BYO and opt-out
settings belong to the `host: azure.ai.project` service, not the agent
definition or a separate Connection service. Provisioning outputs are
configuration, not a trace-ingestion readiness guarantee; deploying an agent
does not repair monitoring.

See [Project Application Insights configuration](../azure.ai.projects/README.md#application-insights)
for costs and data handling, existing-connection preservation, policy
requirements, and Bicep/Terraform ejection and cleanup semantics.

## Preview feature switches

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The `azure.ai.projects` extension owns the project service and the `microsoft.fo

When `network:` is present, azd always provisions an **account private endpoint** and disables public data-plane access. Without `agentHosting:`, dependent stores (Cosmos DB, AI Search, Storage) stay platform-managed.

Automatic Application Insights monitoring does not configure private-network ingestion yet. A project with `network:` therefore skips automatic monitoring, whether `monitoring:` is omitted, empty, or names a component, so provisioning is never blocked, and azd prints a warning when it skips monitoring. Set up monitoring for such projects outside azd.

For **existing AKS hosting**, set `agentHosting.clusterResourceId` on the project service. Without `network:`, the Foundry account uses public networking; with it, the account uses the private-networking configuration below. Hosting creates a Storage account and two separate managed identities. The native azd registry, its Project connection and image-pull grants are created only when an Agent requires building a container image, including with private account networking. Storage and any automatically created ACR expose public authenticated endpoints. See [Existing AKS hosting](../../azure.ai.projects/README.md#existing-aks-hosting) for cluster prerequisites and standard Foundry teardown behavior.

Legacy `network.mode`, `network.byo`, and `network.managed` fields are no
Expand Down
4 changes: 4 additions & 0 deletions cli/azd/extensions/azure.ai.agents/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,7 @@ require (
golang.org/x/text v0.43.0 // indirect
golang.org/x/time v0.16.0 // indirect
)

require azure.ai.projects/synthesis v0.0.0

replace azure.ai.projects/synthesis => ../azure.ai.projects/synthesis
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"strings"
"testing"

"azureaiagent/internal/synthesis"
"azure.ai.projects/synthesis"
"azureaiagent/internal/testutil"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"azureaiagent/internal/synthesis"
"azure.ai.projects/synthesis"
)

// environmentReference and findEnvironmentReferences are this package's view of
Expand Down
7 changes: 1 addition & 6 deletions cli/azd/extensions/azure.ai.agents/internal/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -982,12 +982,7 @@ from code-deploy ZIP packaging (uses .gitignore syntax).`,
return err
}
endValidation()
env, err := readInfraEjectEnvironment(ctx, azdClient)
if err != nil {
return err
}
defer inittelemetry.Start(ctx, inittelemetry.InfraGeneration)()
return ejectInfra(gate.projectRoot, infraProvider, env)
return ejectInfraAfterInit(ctx, infraProvider, azdClient)
}
}
endValidation()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"path/filepath"
"strings"

"azure.ai.projects/synthesis"
"azureaiagent/internal/exterrors"
"azureaiagent/internal/pkg/paths"
"azureaiagent/internal/project"
"azureaiagent/internal/synthesis"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
"github.com/azure/azure-dev/cli/azd/pkg/config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"testing"
"time"

"azure.ai.projects/synthesis"
"azureaiagent/internal/exterrors"
"azureaiagent/internal/synthesis"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
"github.com/spf13/cobra"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"strings"
"testing"

"azureaiagent/internal/synthesis"
"azure.ai.projects/synthesis"
"azureaiagent/internal/testutil"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"strconv"
"strings"

"azure.ai.projects/synthesis"
"azureaiagent/internal/exterrors"
"azureaiagent/internal/project"
"azureaiagent/internal/synthesis"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
"google.golang.org/protobuf/types/known/structpb"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"strconv"
"testing"

"azure.ai.projects/synthesis"
"azureaiagent/internal/exterrors"
"azureaiagent/internal/project"
"azureaiagent/internal/synthesis"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
"github.com/stretchr/testify/require"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
package cmd

import (
"azure.ai.projects/synthesis"
"azureaiagent/internal/cmd/nextstep"
"azureaiagent/internal/exterrors"
"azureaiagent/internal/featureflags"
"azureaiagent/internal/inittelemetry"
"azureaiagent/internal/pkg/agents/agent_yaml"
"azureaiagent/internal/project"
"azureaiagent/internal/synthesis"
"context"
"errors"
"fmt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
"strings"
"testing"

"azure.ai.projects/synthesis"
"azureaiagent/internal/exterrors"
"azureaiagent/internal/featureflags"
"azureaiagent/internal/pkg/agents/agent_yaml"
"azureaiagent/internal/project"
"azureaiagent/internal/synthesis"

"github.com/azure/azure-dev/cli/azd/pkg/azdext"
"github.com/stretchr/testify/require"
Expand Down
Loading
Loading