Skip to content

Latest commit

 

History

History
86 lines (58 loc) · 2.95 KB

README.md

File metadata and controls

86 lines (58 loc) · 2.95 KB

gablogo

Goal

Deploy Log Analytics (OMS) artifacts using an ARM template that we'll use throughout the day using the Azure Portal.

Requirements

In an Administrator PowerShell console window, type:

Install-Module -Name AzureRM -RequiredVersion 5.2.0 -Force

Let's code!

Clone repository

Ensure you have Git for Windows installed.

Open a PowerShell console and type the following:

git clone https://github.com/MSDEVMTL/GlobalAzureBootcamp2018.git c:\gab2018\

Set-Location c:\gab2018\step1\

git-clone-repository

Provision OMS

Still in the PowerShell console, type the following:

Login-AzureRmAccount

Enter your credentials

Select the desired subscription using:

Set-AzureRmContext -Subscription 'MySubscriptionName'

Invoke the provisioning by typing:

& .\Invoke-Provisioning.ps1

Presenter: While provisioning is running (~1min), you can show the scripts/templates around...

NOTE: Log Analytics changed his pricing model in April 2018. If you encounter an error in the step above saying:

Pricing tier doesn't match the subscription billing model

Browse to the file template-oms.parameters.json and change the value of the Sku parameter from Free to PerGB2018 (or the opposite) and run the provisioning again. log-analyics-new-pricing-model-error

After provisioning is finished, navigate to the Azure portal

In the search bar type gab2018-dev-oms-all, click the related Log Analytics resource

search-oms-in-portal

Once in the resource, scroll down the left pane to Azure Activity Log then click the desired subscription

browse-to-subscription-to-connect

A new pane will open, click the Connect button

connect-subscription-to-log-analytics

Reference

Log Analytics Documentation

End

Previous Step Next Step