How to build a Request Body when the MS Docs fail you Azure REST API

Or when you fail yourself… | Intro I was creating schedules in Azure Automation and creating job schedules with parameters via the Azure REST API. Strangely enough, it looked like the JSON from the example was wrong. But unfortunately it turned out to be less true and I made a mistake myself. However, it has … Continue reading How to build a Request Body when the MS Docs fail you Azure REST API

How to start a Runbook on specific Hybrid Worker Azure Automation

Disclaimer: this is a work around that is not always useful I am currently hired by a client who has one Hybrid Worker Group (and to whom we are not allowed to make any adjustments). There are runbooks that have to work with the data from other runbooks, but because the data is so much … Continue reading How to start a Runbook on specific Hybrid Worker Azure Automation

FIX: Job Suspended in Azure Automation Import-PSSession

Different cmdlet same error? I get the error message Job suspended in Azure Automation with cmdlet Import-PSSession. The solution I offer in this blog post may also be the solution for another cmdlet.If this does not solve the problem for ‘Job was suspended’ , see if there is a connection with the Hybrid Worker. Let’s … Continue reading FIX: Job Suspended in Azure Automation Import-PSSession

How to run scripts on a system Hybrid Worker in Azure Automation

Hybrid Workers in Azure Automation When Update Management in Azure Automation was released, you could (and still) add a system Hybrid Worker to Azure Automation via the Log Analytics agent. Only you could no longer use it as a User Hybrid Worker in the User Hybrid Worker Groups and you therefore no longer see it … Continue reading How to run scripts on a system Hybrid Worker in Azure Automation

FIX: Import module failed New-AzureStorageContext is not recognized Az

Importing of module failed. –> Azure Automation. I was working on a function that would automatically update outdated modules in Azure Automation. I used my own Microsoft Graph module as a test. During the automatic upload I got a message that Automation was importing the module, but after a while the status was set to … Continue reading FIX: Import module failed New-AzureStorageContext is not recognized Az

FIX: Cannot enable Update Management because VM reports to other Workspace(OMS)

Are we talking about the same thing? Hereby a small summary of the error message, so that we know for sure that we are talking about the same thing. I want to add new servers in Azure Automation – Update Management. I get one of these error messages while adding to Update Management: 1. The … Continue reading FIX: Cannot enable Update Management because VM reports to other Workspace(OMS)

FIX: The certificate for the Classic Run As account has expired

In short The tutorial is about “The certificate for the Classic Run As account has expired. Click here to renew the certificate(s).“ But when you try to re-new the certificate, it’s grayed out. This is a certificate used for classic Azure. Under the tutorial itself I will explain more about this. Let’s get rid of … Continue reading FIX: The certificate for the Classic Run As account has expired

Bulk update OMS Workspace Key with PowerShell by Bas Wijdenes

Azure Log Analytics and “The agent could not authenticate with the Microsoft Operations Management Suite service. Please check that the Workspace Key is correct.” We have a new developer environment at work as a showcase for new customers. A colleague was given the task to use Azure Automation for Update management, because we also use SCOM … Continue reading Bulk update OMS Workspace Key with PowerShell by Bas Wijdenes

FIX: Please set stopOnMultipleConnections to false in public settings

Azure Automation the basics. Within Azure Automation an option has been added to update your servers. You can find this under Update Management. Because there is an option to add servers that are not in Azure, this may replace WSUS servers in the future, but for now I only use it for servers within Azure. … Continue reading FIX: Please set stopOnMultipleConnections to false in public settings

FIX: HybridWorker Machine is already registered to different account

HybridWorker’s in Azure Automation the basics. From one Azure Automation tenant, we push maintenance scripts that run at different customers at the same amount of time. At my work, we changed our managed Services department to a different operations management suite (OMS) in order to better divide our network from that of our customers. I … Continue reading FIX: HybridWorker Machine is already registered to different account