Blog

Part 2: SCOM 2012 monitoring Windows Azure

In Part 1, we covered Installation of SCOM 2012 in Windows Azure. Now we will configure SCOM to Monitoring Windows Azure Environment.

  1. Windows Azure Virtual Machines
  2. Windows Azure Storage
  3. Windows Azure SQL Database.

Pre-requisite:

SCOM 2012 Management Server

Windows Azure Subscription (Active)

Certification for secure connection.

Management Packs

Environment: In my test environment, I have 2 VMs running in Windows Azure.

SCOMDC1- running Contoso.com domain controller

Opsmgr2012r2 – System Center operation manager 2012 R2. We covered the VM and SCOM installation process in Part1.

monitoring Windows Azure 1

Let’s get Started

  1. Create Self Sign Certificates: In our scenario, we will use Self Sign Certificate from IIS Server.

Go to Run and Type “inetmgr”

Select on the Server name and Click on “Server Certificate”

monitoring Windows Azure 2

From Server Certificate console, Click on “Create Self-Signed Certificate”

monitoring Windows Azure 3

Enter Friendly Name for the certificate and Click on OK.

monitoring Windows Azure 4

New Self Signed Certificate will be listed in the Server Certificates Console.

monitoring Windows Azure 5

Now Export the certificate with and without Private key from Cert Mgr Console:

Go to Run – type “certmgr.msc”

Locate the certificate under “Trusted Root Certification Authorities/Certificate”

Select the certificate, Right Click–>All Tasks –>Export

monitoring Windows Azure 6

Certificate Export Wizard click on Next.

Select “No, do not export the Private Key”, Click on Next.

monitoring Windows Azure 7

Choose the default setting and click on Next.

Click on Browse and Specific the name and location where you want to save (*.cer) the file.

Repeat the same step again to export the same Certificate with Private Key.

Select “Yes, export the private key”, Click on Next.

monitoring Windows Azure 8

Choose the default setting and click on Next.

Check Password and Enter Secret Password

monitoring Windows Azure 9

Click on Browse and Specific the name and location where you want to save (*.pfx) the file.

Finally we have Self Signed Certificate with (.pfx) ad without (.cer) private key.

  1. Download management packs:
    • System Center Management Pack for Windows Azure

http://www.microsoft.com/en-in/download/details.aspx?id=38414

  • Windows Azure SQL Database Management Pack for System Center 2012

http://www.microsoft.com/en-in/download/details.aspx?id=38829

Download and Save it on SCOM Server.

  1.  Extract and Import Management Pack

Extract both MPs (.msi) on local server. Default location is C:\Program Files (x86)\System Center Management Packs

monitoring Windows Azure 10

After extracting, you can locate MPs file with (.mpb) in destination folders;

monitoring Windows Azure 11

Now Import following MP files in SCOM 2012:

Microsoft.SystemCenter.WindowsAzure.mpb

Microsoft.SystemCenter.WindowsAzure.SLA.mpb

Microsoft.SqlServer.Azure.mpb

Launch SCOM Console. Go to Administration panel–> Right Click Management Packs –> Select Import Management Packs.

monitoring Windows Azure 12

From Select Management Packs — Click and Add and Add from Disk.

monitoring Windows Azure 13

Browse and Add Windows Azure Management Packs. Then Install.

monitoring Windows Azure 14

Successful Imported MP listed under Management Packs.

monitoring Windows Azure 15

Windows Azure and Windows Azure SQL Database will be listed under Monitoring Panel.

monitoring Windows Azure 16

  1.  Import Self Signed Certification in Windows Azure Subscription

Logon to Windows Azure Portalhttps://manage.windowsazure.com/

Go to SETTINGS and Click on Management Certificates

Click on UPLOAD.

monitoring Windows Azure 17

** Upload Self Sign Certificated (.cer) created in Step 1.

monitoring Windows Azure 18

  1. Add Windows Azure Subscription in SCOM Server

Now let’s addWindows Azure Subscription in SCOM Server to monitoring Windows Azure.

Open SCOM Console. Go to Administration Panel and Click on Windows Azure.

monitoring Windows Azure 19

Click on Add Subscription.

monitoring Windows Azure 20

Input required

Windows Azure Subscription ID.

Certificate: Browse Self Signed certificate (.pfx) created in Step 1.

Password: Enter Password provided at the time of export.

Click on Next and select Management pool.

Click on Add Subscription.

View added Windows Azure Subscription.

monitoring Windows Azure 21

  1. Create Windows Azure and Windows Azure SQL Database custom Management Packs

After Adding Windows Azure Subscription in SCOM. Now we will focus on Monitoring Windows Azure.

In SCOM Console. Go to Authoring and locate Windows Azure Monitoring and Windows Azure SQL Database under Management Pack templates.

monitoring Windows Azure 22

First, start with Windows Azure Monitoring.

Right click on Window Azure Monitoring –> Add Monitoring Wizard… —> From Select the monitoring type

Select Windows Azure Monitoring and click Next

monitoring Windows Azure 23

Specify Friendly Name and Select or Create new Management group. Click on Next

monitoring Windows Azure 24

Select Added Subscription for dropdown and click on Next

monitoring Windows Azure 25

On Cloud Services, click on search and select listed Cloud Services that need to monitor. NEXT

On Virtual Machine, Click on Search and Select listed Virtual Machine. Click on OK and Next

monitoring Windows Azure 26

On Storage, Click on Search and Select listed Storage account. Click on OK and Next.

Click on Finished.

Repeat the same steps for Windows Azure SQL Database.

Right click on Window Azure Monitoring –> Add Monitoring Wizard… —> From Select the monitoring type. Select Windows Azure SQL Database Monitoring and click Next

monitoring Windows Azure 27

Specify Friendly Name and Select or Create new Management group. Click on Next

On Server details, Enter Windows Azure SQL database name and credential.

monitoring Windows Azure 28

I have already created Run as Account with Azure SQL database credentials.

Select Proxy Agent: Server that has access to internet and able to communicate with Windows Azure SQL database.   Click on create..

  1. Discover and Monitor Windows Azure and Windows Azure SQL database.

After Management Pack for Window Azure is created.

It will discovery WA resources like Cloud Services, Virtual Machine and Storage..

monitoring Windows Azure 29

        Discover Windows Azure SQL database Server:

monitoring Windows Azure 30

It will take few min to sync with WA and display health status and metrics.

monitoring Windows Azure 31

Finally System Center will start monitoring Windows Azure Environment.

Happy reading!

Puneet





Azure Managed Services