Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
400 stars 192 forks source link

Running `azd up` on an existing ai studio resource fails #4302

Closed cassiebreviu closed 1 week ago

cassiebreviu commented 1 week ago

Describe the bug Running azd up on an existing ai studio resource fails

To Reproduce

  1. run azd up on this template https://github.com/Azure-Samples/contoso-creative-writer
  2. once it completes, run azd up again
  3. it will fail on creating ai endpoints in ai studio.

Expected behavior it skips creation of existing endpoints and moves to next step

vhvb1989 commented 1 week ago

azd version? @cassiebreviu

nitya commented 1 week ago

Tracking this - seeing similar error in Contoso Chat sample (aitour-fy25 branch) which worked previously. Currently using azd 1.10.x from Codespaces.

Deployment details indicates Status was "BadGateway" Status message was:

{
    "status": "Failed",
    "error": {
        "code": "UserError",
        "message": "Create workspace connection failed.",
        "details": []
    }
}
wbreza commented 1 week ago

I believe the errors you are referring to are related to the Connections created for AI services such as the following:

The error message returned from the ARM/Bicep deployment are the following:

{
    "status": "Failed",
    "error": {
        "code": "UserError",
        "message": "Create workspace connection failed.",
        "details": []
    }
}

This point to an issue with the AI services resource provider and not an azd issue. If the connection metadata requirements have introduced a breaking change then the templates will need to be updated.

cassiebreviu commented 1 week ago

Following up on the AI Services side. Closing here. Thanks!