SOLVED

Monitoring creation of costly vms

%3CLINGO-SUB%20id%3D%22lingo-sub-3255826%22%20slang%3D%22en-US%22%3EMonitoring%20creation%20of%20costly%20vms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3255826%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20grappling%20with%20an%20issue%20-%20i%20want%20to%20create%20an%20analytics%20rule%20in%20sentinel%20to%20monitor%20the%20creation%20of%20anomalous%20-%20more%20expensive%20than%20usual%20-%20virtual%20machines.%26nbsp%3B%3C%2FP%3E%3CP%3EHowever%2C%20I%20cant%20seem%20to%20find%20any%20cost%20data%20that%20i%20can%20feed%20into%20the%20sentinel's%20log%20analytics%20workspace.%3C%2FP%3E%3CP%3EHow%20can%20I%20monitor%20for%20such%20things%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3255826%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAlerts%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELog%20Data%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESIEM%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3257967%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20creation%20of%20costly%20vms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3257967%22%20slang%3D%22en-US%22%3EHello%20Daniel%2C%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20can%20use%20this%20rule%20from%20GitHub%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel%2Fblob%2Fmaster%2FDetections%2FAzureActivity%2FCreation_of_Expensive_Computes_in_Azure.yaml%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FAzure%2FAzure-Sentinel%2Fblob%2Fmaster%2FDetections%2FAzureActivity%2FCreation_of_Expensive_Computes_in_Azure.yaml%3C%2FA%3E%3CBR%20%2F%3Eto%20monitor%20creation%20of%20expensive%20VMs.%20The%20%22tokens%22%20array%20contains%20VM%20types%20that%20you%20can%20define%20and%20get%20alerts%20based%20on%20creation%20of%20them.%3CBR%20%2F%3EYou%20can%20take%20examples%20of%20the%20array%20parameters%20from%20here%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fvm-naming-conventions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fvm-naming-conventions%3C%2FA%3E%20or%20from%20the%20link%20that%20Clive_Watson%20sent.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3257221%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20creation%20of%20costly%20vms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3257221%22%20slang%3D%22en-US%22%3EHmm%20that%20might%20be%20an%20option%2C%20I'll%20look%20into%20it%2C%20thanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3257220%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20creation%20of%20costly%20vms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3257220%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1331105%22%20target%3D%22_blank%22%3E%40Phil007%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20specifically%20want%20to%20have%20in%20the%20logs%20so%20that%20i'll%20be%20able%20to%20create%20an%20analytics%20rule%20to%20monitor%20the%20spin%20up%20of%20expensive%20vms.%3C%2FP%3E%3CP%3Epreventing%20it%20is%20the%20next%20step.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3256023%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20creation%20of%20costly%20vms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3256023%22%20slang%3D%22en-US%22%3EAre%20you%20specifically%20wanting%20it%20in%20logs%20or%20are%20you%20wanting%20to%20prevent%20someone%20from%20being%20able%20to%20spin%20up%20a%20expensive%20machine%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-3255977%22%20slang%3D%22en-US%22%3ERe%3A%20Monitoring%20creation%20of%20costly%20vms%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3255977%22%20slang%3D%22en-US%22%3EI've%20used%20this%20in%20the%20past%20%3CA%20href%3D%22https%3A%2F%2Fazureprice.net%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazureprice.net%2F%3C%2FA%3E%20you%20can%20download%20a%20CSV%20file%2C%20so%20it%20could%20be%20a%20watchlist%20or%20something%20to%20access%20with%20the%20externaldata%20operator%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi, 

I'm grappling with an issue - i want to create an analytics rule in sentinel to monitor the creation of anomalous - more expensive than usual - virtual machines. 

However, I cant seem to find any cost data that i can feed into the sentinel's log analytics workspace.

How can I monitor for such things?

5 Replies
I've used this in the past https://azureprice.net/ you can download a CSV file, so it could be a watchlist or something to access with the externaldata operator?
Are you specifically wanting it in logs or are you wanting to prevent someone from being able to spin up a expensive machine?

@Phil007 

I specifically want to have in the logs so that i'll be able to create an analytics rule to monitor the spin up of expensive vms.

preventing it is the next step.

Hmm that might be an option, I'll look into it, thanks.
best response confirmed by Daniel_Iten (Occasional Contributor)
Solution
Hello Daniel,

You can use this rule from GitHub https://github.com/Azure/Azure-Sentinel/blob/master/Detections/AzureActivity/Creation_of_Expensive_C...
to monitor creation of expensive VMs. The "tokens" array contains VM types that you can define and get alerts based on creation of them.
You can take examples of the array parameters from here: https://docs.microsoft.com/en-us/azure/virtual-machines/vm-naming-conventions or from the link that Clive_Watson sent.