The MDT Toolkit is great! One very useful feature is the “Execute Runbook” Step, which can execute a runbook in Orchestrator. Unfortunately Orchestrator has a little quirk, when moving to new environment, such as moving from Test to Prod. All runbooks get a new GUID, and runbook parameters might get a new GUID. Besides this, the Server names usually needs to be changed too! This can be a trivial task, which an automation guy like me hate to do! Everytime Server name is updated, all parameters has to be setup again. This also makes the task prone to errors! So [...]
My colleague Andreas and me was preparing demos for our Azure Automation – Advanced runbook design session at Experts Live EU More info on the session hereUse thís runbook to support automatic synchronization from visual studio git repositories! (See the session recording for WHY!)It is based on the script provided by MSFT at https://github.com/azureautomation/runbooks/blob/master/Utility/ARM/Sync-VSTS.ps1We will make sure to submit a pull request to get the enchanced code implemented in that version.This version add’s support for multiple branches and pull requests, while the original runbook only supports synchronizing direct commits.To setup the solution, follow the guide described here:https://docs.microsoft.com/en-us/azure/automation/automation-scenario-source-control-integration-with-vstsGood luck! [crayon-5b7ba6ca4ba01630953101/]
This is a base runbook template developed by CT Global. This version was first presented at Experts Live EU 2017. [crayon-5b7ba6ca4c2ca179908350/]
Watch out when using $PSModuleAutoLoadingPreference = “none” in a PS Remote Session in Windows Server 2016
Recently I discovered a change in the default behavior of PSRemoting Sessions in Windows Server 2012 R2 vs. Server 2016. I was migrating a script from 2012R2 to 2016 and surprisingly, I got this error: The term 'Get-Date' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included , verify that the path is correct and try again. + CategoryInfo : ObjectNotFound: (Get-Date:String) , CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException + PSComputerName : ctaa01 When I vestigated the issue I found that [...]
Azure Functions is a great new, cheap and easy way to publish simple web services. Functions can be written in multiple languages such as C#, PowerShell or even Batch! You can read more about them here: https://azure.microsoft.com/en-us/services/functions/ This Azure Function is based on PowerShell and I have used it in multiple session on conferences such as MMS 2016 (was in a C# version though) and System Center Universe Europe 2016 About the function: When using subscriptions in Microsoft Graph API, you have to Validate your webhook by returning a verification code which Graph API sends to the webhook. Unfortunately Azure [...]
Currently we are doing Demos upon demos, POC upon POC of OMS. Everybody seems keen to get into to it! One of the function of OMS Log Search is Alerts. These alerts can be setup to trigger a runbook in Automation when the alerts trigger. Here is a simple template to use for getting the content of the data sent from OMS: [crayon-5b7ba6ca4dea0174889638/] Thats it !
The Azure Stack POC is up and running again. With a new updates to make installation easier If you haven’t tried it yet! Get started! https://azure.microsoft.com/en-us/overview/azure-stack/try/ Read much more in the documentation (you can even help contribute since the docs are open source!) https://azure.microsoft.com/en-us/documentation/articles/azure-stack-overview/
Welcome to my first Azure Stack blog. Recently I have been exploring the Azure Stack POC TP1 which is available for everyone at https://azure.microsoft.com/en-us/overview/azure-stack/ So far I am very impressed, of cause always bear in mind that this is the first technical preview POC. Today I made a small tool for helping me to have a good overview of my Azure Stack tenant VMs. In Azure Stack the VMs are named by their GUID in Hyper-V. This makes perfect sense, since multiple tenants could easily name their VMs the same name. But when administrating your hyper-v host, It can be [...]
I had this question from a customer recently, and when I searched the net I wouldn’t find any specific examples. This example assigns a user as a Contributor to the subscription. When you assign roles to resources, all you need is the URL for the resource and provide it to this cmdlet. Here you go: [crayon-5b7ba6ca4f2a8255645136/] That’s all for today!
If you havent heard about it, the future of automation is here! In the form of “Azure Automation”. also known as “OMS Automation” when it is part of the Operational Management Suite (OMS). This cloud service can control our automation, just as System center Orchestrator has done for years. It works in a very similar way, but has been extended to support more features, for instance it supports what is known as Webhooks. A webhook enables us to trigger a runbook using a standard HTTP call, making it easier to integrate from other tools (could for instance be used [...]
I just want to post a little new feature I found a couple of days ago as a small NYE treat! It is now possible to set a “global” Run As account on a hybrid worker group! This feature removes any difference between SMA and AA Hybrid Workers, meaning that you can transfer any runbooks directly! (Contact me if you need help) By Default the Hybrid Workers run as “LocalSystem”, while SMA runbook workers run as a specified service account. It is possible to change the service account for the Microsoft Monitoring Agent, but that is not best practice and [...]
December 1st: Azure Automation: Triggering a webhook from a SharePoint workflow using Out-of-the-box Activities
Welcome to this year Coretech December Calendar! Today is the 1st of december and we have a great little christmas treat for you! This is the first post in a series of posts, published every day in December. Today's subject is Triggering Webhooks from SharePoint! One of the great new features in Azure Automation is Webhooks! Webhooks is everywhere! More and more cloud services support them. Basically it is a simple HTTP Post sent to a web service that starts the runbooks. We can then send a bunch of data with the post and have the runbook receive these dato. [...]
Azure automation: Start-AutomationRunbook – New simple way to start runbook jobs from within a runbook!
Microsoft has just released a new cmdlet in the realm of Azure automation. Start-AutomationRunbook The cmdlet is designed to start runbook jobs in the same account as the current running runbook, without having to define any endpoints/credentials/etc. Syntax is: [crayon-5b7ba6ca50509185641106/]
Azure Automation Introduction SCUE15 - Azure Automation Introduction from itnetX AG on Vimeo. Azure Automation Deep Dive SCUE15 - Azure Automation Deep Dive from itnetX AG on Vimeo. Get runbooks from the AA sessions here: http://blog.ctglobalservices.com/jgs/azure-automation-samples-from-sessions/ Service Management Automation - Automating System Center SCUE15 - Automating System Center from itnetX AG on Vimeo. Here another cool Azure Automation session from SCU: SCUE15 - Migrating from Orchestrator to Azure Automation from itnetX AG on Vimeo. Thanks for a great time at SCUE 2015! .. hopefully see you next year!
Tech Days.se 2015 – SCO & SCSM–Lessons learned from the real world–Slides, Examples, Tools, Template / How to use runbook template
Thanks for being a great audience! and for so many showing up! As promised I have uploaded the runbooks and management packs I demonstrated in the session including my SCO Template for runbooks Content Examples Tools Runbook Template Slides Download here: Links: Best practices book: https://t.co/pOHfdmSJra Coretech MP Transfer tool http://blog.ctglobalservices.com/jgs/scsm-sco-management-pack-transfer-tool-beta-3-freeware/ SCSM Extension Integraiton Pack http://blog.ctglobalservices.com/jgs/scoscsm-2012-create-objects-with-activities-with-coretech-integration-pack-for-scsm-2012-extension-beta-2 Parse Export https://scorch.codeplex.com/releases/view/104915 Sanitize Export + Custom Runbook Activity Type + Lots of other stuff https://scorch.codeplex.com/ How to use the runbook template: Import runbooks. this includes folders and shared runbooks. But, to be able to create another stage that points to [...]
Update from MSFT: 2/22/2016: To respond to a common user question, right now there is no timeline on when additional modules / new versions of modules will be shipped out of box in the Automation service. If you have additional requirements besides what we currently ship globally, these modules / module versions will have to be imported as user modules. Please note the new guidance is that if the latest version of any Azure/AzureRM module is imported as a user module to an automation account, the latest versions of ALL Azure/AzureRM modules (not just the ones that ship out of [...]
One of the recently added features, Webhooks, enables you to trigger/execute a runbook from other cloud services / scripts / etc. […]
Today at the PowerShell summit in Stockholm, Joe Levy and Anatoli Beliaev of Microsoft announced a bunch of new features that is publicly available in Azure Automation! Unfortunately I was not able to be there in person, but luckily multiple people tweeted about this stuff! (Thanks @vNiklas + @skillriver + more!! ) Some of the features is what I have demoed at multiple session within the last month. (SCU + User groups). Here is the list: Gallery Support Gallery has been expanded and has a nice button for it the gallery now also includes powershell scripts. PowerShell Script Runbooks Use [...]
Hey everyone! Last week at I speaking at System center Universe europe 2015, this week a Danish PowerShell user group event! I have collected all my runbooks and scripts in a zip and uploaded it here:
Beta 4 has been uploaded. a bug was fixed: In some cases not all runbooks in the MP was found. Fixed the issue. Unfortunately there was a problem with the source code, which meant having to re-do the fixes from beta 2 and 3. Please report back if there is any problems! thanks! see changelog in the gallery. Get the new version here: https://gallery.technet.microsoft.com/Service-Manager-Orchestrato-3d9b3960
One of the new features of Azure Automation is still somewhat hidden. It needs to be enabled before you see it in the GUI This blog post gives a quick overview of what is needed to use it. Step 1: Enable the extension in your Azure Account [crayon-5b7ba6ca53a5d497192835/] The command registers the azure automation dsv extension on your account. This shows the DSC Nodes tile in your automation account: Step 2: Select subscription and default values Before you can run any command you will need to select your subscription. additionally each of the command needs 2 values [...]
In our geek club aka The Danish PowerShell user group, we always do a lottery in the end, for books or similar. To draw the correct winner we have been using a script that I have developed. I have for a long time, promised to release the script so that other user groups or other interested people can use it for fun! It has amazing ascii graphics and colors!!! It will take you straight back to your C64 loading screen! The script is a lottery script that takes a file from www.eventbrite.com containing all attendees. The script need a LEAP [...]
In WAP VM Clouds provider, we are able to set trigger on different actions. Yesterday, in a new test environment, I had a problem that some of them would not trigger. When I tested Subscription trigger, it worked fine, but none of the others worked. Luckily I asked my MVP network for help, and fellow CDM MVP Stan showed me the path to the fix! (Check his blog here: http://www.systemcentercentral.com/author/slavizh/) He said some actions are handled directly by WAP, and some are handled by SPF. The SMA Web service has to use a valid certificate that is [...]
One of the great new features of Azure Automation is the Web hooks, which can be added to runbooks. A web hook is a way for an external system to trigger the runbook with specific input values. You can read more about how to trigger web hooks here: http://azure.microsoft.com/en-us/documentation/articles/automation-webhooks/ This article describes how easy it is to use the Azure Scheduler to actually trigger the runbook. There is already a scheduler built in, but there can be reasons that one would use Azure Scheduler instead Azure Automation scheduler is not very advanced so far, it can only trigger [...]