azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

There is no "delete deployment" verb

Open karolz-ms opened this issue 3 years ago • 4 comments

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 up and we have down
  • we have infra create and we have infra delete
  • we have deploy, but we DO NOT have withdraw or delete-deployment...

karolz-ms avatar May 27 '22 23:05 karolz-ms

We need to understand what it means to "undeploy" something and I think the answer varies across hosts.

ellismg avatar May 31 '22 20:05 ellismg

@karolz-ms Can you give a few examples of what undeploy would do?

jongio avatar Jul 27 '22 17:07 jongio

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.

karolz-ms avatar Jul 30 '22 00:07 karolz-ms

I'd like to have one of the following:

azd down --service dashboard

Or, this...

azd undeploy --service dashboard

Loving AZD, tho!

bradygaster avatar Aug 25 '22 18:08 bradygaster