Skip to content

Agent mode failed to automatically resolve resource name conflict for PR#6313 #6325

Description

@Menghua1

Describe the issue:
While testing the Key Vault resource name conflict scenario, executing the azd provision command resulted in a conflict error indicating that the Key Vault name already exists, as shown in the image below.
Image
Image

At this point, agent mode offered three solutions. Selecting Yes. Choose a new, globally unique Key Vault name for deployment. only updated the .azure/mh8/.env file; the hard-coded name in the main.bicep file remained unchanged, causing the deployment to fail with the same VaultAlreadyExists error.
Image
Image
Image

Subsequently, selecting Yes, let agent mode choose the best approach also failed to resolve the issue, and the process ultimately exited as shown in the image below.
Image
Image

Repro Steps:

  1. Run git clone https://github.com/Azure/azure-dev.git -b errorhandlingUpdates.
  2. Run cd cli/azd
  3. Run go build command to build a azd.exe file.
  4. Run ./azd config set ai.agent.model.type github-copilot and ./azd config set alpha.llm on
  5. Create a new folder named todo-nodejs-mogno and cd todo-nodejs-mogno, then run azd init -t todo-nodejs-mongo.
  6. Modify the value of name in the keyVault module file within the main.bicep folder to an existing KeyVault name.
  7. Copy the azd.exe file just built to the current directory, then run ./azd provision.

Environment:

  • OS: Windows

Expected behavior:
The agent mode should be able to automatically resolve resource name conflicts.

@hemarina for notification.

Metadata

Metadata

Assignees

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