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
The below is the approach that I am thinking of using for this task.
Progammatically get the list of resource groups that has the suffix matching this pattern rg-sdebeta-ws-
periodically (1 hour interval) poll each resource group to retrieve the VMs it
Check the metrics of each Machine and deallocate any machine that is running below 3 and has been up for at least 1hour
This will help make the solution more robust and flexible by extending its workability to any workspace that would be created in the future as well as the VMs in the RG.
this looks good, thanks. For step 1, is it possible to make the pattern a parameter, with a list of patterns, so we can add multiple SDEs?
Something like "rg-sdebeta-ws-|rg-sdemvp-ws-|rg-sdeprod-ws", so we know how to add items without editing existing code or risking breaking the expression, maybe as an environment variable or something.
It doesn't have to be too fancy, and if it's not easy, ignore it.
No description provided.
The text was updated successfully, but these errors were encountered: