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

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