New-MachineGroupByTag

1.1

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

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

1.1
5/29/2018
-- EDITED BY Jenny Hunter
-- fixed bugs (null error and misspelled variable)
1.0
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 (current version) 186 5/29/2018
1.0 27 5/2/2018