There is no "delete deployment" verb
In azd there is no verb to delete application deployment while leaving infrastructure bits in place. This useful operation is missing, and it leaves our set of verbs unbalanced:
- we have
upand we havedown - we have
infra createand we haveinfra delete - we have
deploy, but we DO NOT havewithdrawordelete-deployment...
We need to understand what it means to "undeploy" something and I think the answer varies across hosts.
@karolz-ms Can you give a few examples of what undeploy would do?
The conceptual goal is for the app to "stop responding to requests". For example:
- for app service: equivalent
az webapp stop - for container app: AFAIK our "deploy" for containerapps is a bit peculiar in the sense that it only switches the image reference, so I guess we would switch the image reference back to nginx or whatever we use initially
- for static web apps the equivalent of
az swa disconnect(I think)
Also, ideally, from cost perspective, the result of undeploy should leave the user incurring the same costs as if they did provision, but no deploy.
I'd like to have one of the following:
azd down --service dashboard
Or, this...
azd undeploy --service dashboard
Loving AZD, tho!