Reputation: 3783
I'm not sure if it's an off topic for SO but I really need help here. Now in my project we are running load test on weekly basic and we are taking the advantage of ARM and azure CLI for making it fully automated test framework, starting from vm spinning to report gen.
But after the test, for now we are terminating the resource group manually and we have few though to make it automatic e.g by running a cron job. So just I'm curious if there is a better approach to do a graceful termination/destroy(not stop) automatically using azure cli based on a time window.
Upvotes: 0
Views: 50
Reputation: 72211
No, there is no such a way, but if everything is automated, you can run az group delete xxx
at the end of your script\automation routine.
On top of that, take a look at Event Grid. Its a new service that can create actions in response to events.
Upvotes: 1