FIX: Parameter input shown as not recognized as a cmdlet in Azure Automation

My Parameter input is not recognized as a cmdlet in Azure Automation Nowadays, we roll out Azure and workplace features via a WebApp, such as Conditional Access or Privileged Identity Management for customers that need them. This speeds up the process of onboarding customers. We have adapted our WebApp in such a way that you … Continue reading FIX: Parameter input shown as not recognized as a cmdlet in Azure Automation

How to import a custom PS module in a VM or Azure Automation

Keep your PowerShell modules updated! We will do all of this with Azure Automation and PowerShell, you can also do this in a ci / cd pipeline, but that’s up to you. Disclaimer: Everything will be simplified, these are steps you can follow, but you must modify before it works in your own environment. What … Continue reading How to import a custom PS module in a VM or Azure Automation

How to fix ‘CliXml’ in parameter input Azure Automation

Azure Automation, Start-AutomationRunbook, parameters, & CliXml… I’m not going to explain what Clixml is, or what it means, nor am I going to explain exactly why this issue is happening (mainly because I don’t have a clear answer for you). I’ll give you the solution and a possible way to make this easier for you. … Continue reading How to fix ‘CliXml’ in parameter input Azure Automation

How to use Azure Managed Identities with Graph API or other Resources

Microsoft API’s or API permissions for Managed Identities But you can only add Azure RBAC roles to a Managed Identity, right? That’s not true, in the blog post below I explain how you can add resource permissions to a Managed Identity. In my work I mainly use this for Azure Automation. By using Managed Identities … Continue reading How to use Azure Managed Identities with Graph API or other Resources

How to use Key Vault Secrets in Azure Automation PowerShell

Azure Key Vault > Azure Automation Credential Manager Azure Automation has its own Credential Manager.This is the easiest to use, but has no history or version control.So you can’t see when the value was last changed, or who made the change within the portal (this can be done via Log Analytics). The Azure Key Vault … Continue reading How to use Key Vault Secrets in Azure Automation PowerShell

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: Import-PSSession Job Suspended Cannot be run Azure Automation

Different cmdlet same error? I get this error message 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 fix: Job was suspended Your … Continue reading FIX: Import-PSSession Job Suspended Cannot be run Azure Automation

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