Azure PowerShell Connect-AzAccount Get-AzLocation Get-AzOperationalInsightsIntelligencePacks Get-AzResourceGroup Get-AzSubscription Microsoft Log Analytics Microsoft Azure New-AzOperationalInsightsWorkspace Remove-AzOperationalInsightsWorkspace Select-AzSubscription Set-AzOperationalInsightsIntelligencePack
Recently I attended a very interesting webinar about the new features and capabilities of Azure Monitor Logs also known earlier as Log Analytics, check out this
link. Today I want to show you how to create a Log Analytics workspace using Azure Powershell. Prerequisites
The Az.OperationalInsights module version 1.0.0 or later
This tutorial assumes that you already have a Microsoft Azure account set up.
If you want to know how to install the PowerShell Azure module on your machine, check out this
link. The simplest way to get started is to sign in interactively at the command line.
Connect-AzAccount
This cmdlet will bring up a dialog box prompting you for your email address and password associated with your Azure account. If you have more than one subscription associated with your mail account, you can choose the default subscription. To perform this task we will use the following commands:
Once the workspace is created, you can add solution packs to expand the capabilities of your Workspace in Azure. To obtain a list of the available Intelligence Packs for your Workspace, use the Get-AzOperationalInsightsIntelligencePacks with the following syntax: