Tag Archives: SCSMA

Automating OpsMgr Part 15: Creating 2-State Event Monitors

Introduction This is the 15th instalment of the Automating OpsMgr series. Previously on this series: Automating OpsMgr Part 1: Introducing OpsMgrExtended PowerShell / SMA Module Automating OpsMgr Part 2: SMA Runbook for Creating ConfigMgr Log Collection Rules Automating OpsMgr Part 3: New Management Pack Runbook via SMA and Azure Automation Automating OpsMgr Part 4:Creating New […]

Azure Automation – Hybrid Worker Setup

It is May 4th which marks the start of Microsoft Ignite 2015 and of course new Azure features start to appear. So first Azure Automation is now available in the preview portal: This new experience also gives you the option to create graphical runbooks: Although this looks great I think I will still prefer writing […]

Azure Automation is Faster Than Me

The original title of this post was suppose to be “Strategy on Running Runbooks in Azure Automation” and wanted to write it for more than a month. Why the title changed during this period? Simple – there was some limitation on running runbooks in Azure Automation and that limitation was significantly  increased which pushed me […]

Fix Non-Compliant Virtual Network Adapters in VMM with SMA Runbook

Many do not know but besides keeping the compliance of vSwitches on Hyper-V hosts VMM also keeps compliance of the Virtual Network Adapters on VMs. You can easily find that information by opening the VMM console –> Fabric Pane –> Networking –> Logical Networks and in the ribbon menu instead of Fabric Resources choose Virtual […]

Using SMA to Building Your Own Microsoft OpsMgr Management Pack Catalog On SharePoint 2013

Background Over the years that I’ve been working with OpsMgr, for me, the Microsoft Pinpoint MP Catalog was a one stop shop for getting Microsoft management packs. More information about the Pinpoint MP Catalog can be found in Marnix’s post: http://thoughtsonopsmgr.blogspot.com.au/2010/07/pinpoint-management-pack-catalog.html Based on the information came out in TechEd Europe 2014, looks like there will […]

Error on Starting SMA Runbook from Third Party System

We’ve trying to use the SMA Web Service to start SMA runbooks from another system. There is good sample of code for this and we’ve managed to get it working. Unfortunately when we’ve started to start more runbooks some of them were failing with the following error: Exception The values provided for the root activity’s […]

Creating Azure-like Windows Server Images with System Center

Update —————————————————————————— A small update on this topic. If you do not want your customers to face error 0x800F0906 when they try to install .NET Fraemwork 3.5 on Windows Server 2012 or 2012 R2 I would suggest you to install and disable .net FRamework 3.5 feature with DISM prior syspreping your images. The following commands […]

Tips From the Field: Applying Update Rollup 3 to System Center 2012 R2 and Windows Azure Pack

SCSMWhile I was on vacation UR3 for System Center 2012 R2 and Windows Azure Pack was released. In this release the following components were up for update: SCDPM SCOM SCSMA SCSM SCVMM WAP As always there are some important fixes and feature in this updated so I recommend to apply it. Of course first in […]

Using VMM Cmdlets locally on SMA Worker Server in SMA Runbooks

If you are working with SMA and VMM you are probably familiar with the following sample Runbook for connecting to VMM:

workflow Get-VM{ $VmmConnection = Get-AutomationConnection -Name ‘VmmConnection’$VmmServerName = $VmmConnection.ComputerName  $SecurePassword = ConvertTo-SecureString -AsPlainText -String $VmmConnection.Password -Force  $VmmCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $VmmConnection.Username, $SecurePassword  $VMMobject=Get-SCVMMServer -ComputerName $VmmServerName -Credential $VmmCredential $VMS=Get-SCVirtualMachine -VMMServer $VmmServerName | select […]