lambodar
lambodar

Reputation: 3783

Terminate resource group automatically based on a time window

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

Answers (1)

4c74356b41
4c74356b41

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

Related Questions