You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a newcomer, after running ie execute [markdown file] --do-not-delete=false (the --do-not-delete flag could have been skipped as it is false by default), I was expecting that the Azure resources created by the scenario would have been deleted. However, it didn't happen because the markdown I used scenarios/ocd/CreateLinuxVMSecureWebServer/README.md doesn't contain the az group delete --name $MY_RESOURCE_GROUP_NAME command.
At this point, I would say that the --do-not-delete flag applies only if the the scenario contains the az group delete command, as confirmed by the comments:
// If a scenario has an `az group delete` command and the `--do-not-delete`
// flag is set, we remove it from the steps.
Therefore, I suggest to change the flag name from do-not-delete to skip-delete-cmds or skip-deletion or something similar. IMHO, that would make the flag usage clearer.
The text was updated successfully, but these errors were encountered:
blanquicet
changed the title
The --do-not-delete flag name is misleading
cmd/ie/commands/execute: The --do-not-delete flag name is misleading
Oct 5, 2023
Changing the title of this to "Improved resource deletion actions/guidance" and upping the priority as this is a UX issue that is indeed confusing. We need to consider the behaviour of IE when there is a delete section in the document.
rgardler-msft
changed the title
cmd/ie/commands/execute: The --do-not-delete flag name is misleading
Improved resource deletion actions/guidance
Jan 10, 2025
As a newcomer, after running
ie execute [markdown file] --do-not-delete=false
(the--do-not-delete
flag could have been skipped as it is false by default), I was expecting that the Azure resources created by the scenario would have been deleted. However, it didn't happen because the markdown I usedscenarios/ocd/CreateLinuxVMSecureWebServer/README.md
doesn't contain theaz group delete --name $MY_RESOURCE_GROUP_NAME
command.At this point, I would say that the
--do-not-delete
flag applies only if the the scenario contains theaz group delete
command, as confirmed by the comments:InnovationEngine/internal/engine/execution.go
Lines 37 to 38 in 31f6ea5
Therefore, I suggest to change the flag name from
do-not-delete
toskip-delete-cmds
orskip-deletion
or something similar. IMHO, that would make the flag usage clearer.The text was updated successfully, but these errors were encountered: