Skip to content

azd init fail when using existing project-id #6991

@ferronsw

Description

@ferronsw
  • Make sure you've installed the latest version using instructions

Output from azd version
Run azd version and copy and paste the output here:

azd version 1.23.7 (commit 302d696)

Describe the bug
az init fails when running azd ai agent init --project-id "/subscriptions/<subGuid>/resourceGroups/rg-ai-lab-foundry-vnet-integrated-test/providers/Microsoft.CognitiveServices/accounts/<account>/projects/<project>"

To Reproduce
Create a foundry with vnet integration use the terraform sample: https://github.com/microsoft-foundry/foundry-samples/tree/main/infrastructure/infrastructure-setup-terraform/15b-private-network-standard-agent-setup-byovnet

Expected behavior
Run azd init successfully without an error.

Environment
Information on your environment:
.Net 9
VS Code 1.109.5

ERROR message
ERROR: failed to create definition from local agent: failed to list Foundry projects: failed to list accounts: unmarshalling type *armcognitiveservices.AccountListResult: unmarshalling type *armcognitiveservices.AccountListResult: struct field Value: unmarshalling type *armcognitiveservices.Account: struct field Properties: unmarshalling type *armcognitiveservices.AccountProperties: struct field NetworkInjections: unmarshalling type *armcognitiveservices.NetworkInjections: json: cannot unmarshal array into Go value of type map[string]json.RawMessage

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions