azure-search-openai-demo icon indicating copy to clipboard operation
azure-search-openai-demo copied to clipboard

How to deploy to a certain deployment slot of a web app using azd deploy ?

Open bassaml opened this issue 1 year ago • 2 comments

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

using azd deploy, the project seems to be deployed directly to the slot that contains the tag : azd-service-name : backend.

Any log messages given by the failure

ERROR: failed deploying service 'backend': failing invoking action 'deploy', validating target resource: resource 'app-backend-XXXXX/staging' with type 'Microsoft.Web/sites/slots' does not match expected resource type 'Microsoft.Web/sites'

Expected/desired behavior

Possibility to chose between staging or production when azd deploy

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

azd version?

run azd version and copy paste here.

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

bassaml avatar Feb 16 '24 13:02 bassaml

Unfortunately, the azd CLI does not yet have support for deployment slots. I believe this is the relevant issue to star, I'll follow-up on that issue: https://github.com/Azure/azure-dev/issues/2373

pamelafox avatar Feb 16 '24 22:02 pamelafox

Are there any plans to implement this in the future? Our organization needs to know so we can decide whether to switch to ARM instead of Bicep.

giulio-utf avatar Jun 25 '24 11:06 giulio-utf