New-MachineGroupByTag

1.0

This sample runbook creates a Log Analytics machine group based off an Azure VM tag and Update management Log Analytics data.

The major steps of the script are outlined below:

1) Connect to the Azure account
2) Set the subscription context
3) Return the list of Azure VM resource IDs for the provided tag
4) Generate the query for the Log Analytics group creation
5)
This sample runbook creates a Log Analytics machine group based off an Azure VM tag and Update management Log Analytics data.

The major steps of the script are outlined below:

1) Connect to the Azure account
2) Set the subscription context
3) Return the list of Azure VM resource IDs for the provided tag
4) Generate the query for the Log Analytics group creation
5) Remove the saved search if it already exists
6) Create the machine group (saved search)


Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name New-MachineGroupByTag -RequiredVersion 1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

Microsoft Corporation. All rights reserved.

Package Details

Author(s)

  • Azure Automation Team

Tags

Azure Automation Tags VM Update management Machine groups Computer group Saved search

Dependencies

Release Notes

4/25/2018
-- CREATED BY Jenny Hunter
-- added sample script to create a Log Analytics machine group based off of a Azure VM tag

FileList

Version History

Version Downloads Last updated
1.1 186 5/29/2018
1.0 (current version) 27 5/2/2018