Content
Automation Account Runbook Powershell 7.2 LTS Versio
As since the beginning of this year Powershell received a new LTS Version with Powershell 7.2. In the Automation Accounts there is Powershell 7.1 as a preview feature since last year. When will this be updated to 7.2? Many Modules including…


Az copy available for Automation account runbook
Hi, I want to leverage Automation account runbook to initiate sync between two storage account file shares, for which I would be using Az copy. Is AzCopy available to use in Automation account runbooks? OR will I have to deploy a windows based VM with…
Azure Automation - Source Control - PAT - Powershell
I have created an azure automation account and wish to setup a source control connection with github using a PAT. The PAT has been created with the correct permissions but when I try to run the powershell command I get the following…


How can I join a VM to the Update Manager (automation account) as a post provisioning step from PowerShell?
I'm trying to automate the onboarding process of a VM in the Update Manager (automation account) as a post-provisioning step from PowerShell. Make the test with 4 VMs. I onboarded 2 of them manually from the azure portal and for the other 2 I used the…


Azure Automation PowerShell Error "Assembly with same name is already loaded"
Hello, I have a script that runs locally but I can't make it run on Azure Automation cloud. This script records data to the Azure blob and the error is related to the Az module that is the default in Azure Automation. Here are the error messages: The…


C# code to real time scan and threat detection through Azure defender while uploading file on blob store through web api
Hi All, I have an web api 6 c# code running for uploading files on azure blob and it is deployed on Azure App service and it is working as expected. Now, i have added azure defender on blob storage and it has detected some file as security threat…


How to prevent VM Window Server from rebooting after updates
Hi all, could you please help me understand why my win server has rebooted even when configured as "do not reboot"? My scenario: Windows Server 2019 running in Azure In "UPDATE" section directly under the VM, there was no…


Azure Cli for software-update-configuration
I am automating the Update management via Azure CLI using the command "az automation software-update-configuration create". When trying to included-update-classifications "Critical, Security", there is always error thrown as mentioned…


Issues with Migrating Automation Account from RunAsAccount to Managed identity
Facing authentication issue with below powershell command when authenticating with managed identity. Have also added the app:{appid}@{tenantid} as admin in analysis server. Previously when using below RunAsAccount authentication no issue was there…


azure VM patching using powershell script Update management center
we have to patch multiple azure VM parallelly using updatemanagment center. we are trying to use below https://learn.microsoft.com/en-us/azure/update-center/manage-vms-programmatically?tabs=cli%2Cazurepowershell if we use one time update , then it will…


Update-management pre/post scripts: Unable to see/select powershell 7.1 runbooks
I migrated my runbooks to managed identities and powershell 7.1 (preview) and they are working, but when i edit a deployment schedule in order to add them to the pre/post script configuration section, my only options are the powershell 5.1 runbooks. …


Automation Account
Hi Team, I have an automation account in one subscription, and auto-start powershell is setup in the runbook on the same subscription virtual machine. My question is that I have another virtual machine that is in a different subscription, so do I need to…


How to deploy an Automation Account with Python Packages through Terraform?
I am deploying a Terraform managed Azure Automation resource. In that resource, I have Python Runbooks that require non-default Python Packages to run. I can provide these packages through the UI, but how do I implement them with Terraform? Looking at…


Automation Account for Powershell7.1 Does not support array input in Web
When inputting an array in Web-Azure. The array is not parsed as expected: Runbook code: param( [System.String[]]$TestParameter ) foreach($Entry in $TestParameter){ $Entry } Input when starting runbook: ["does",…


I am running automation powershell runbook to get VM details in CSV file and export that CSV file to azure blob storage, but I am unable to capture the VM details through Azure automation powershell runbook
//I am running this code to get the VM details in CSV file and store it to blob storage//this code working for me in Azure CLI powershell but getting errors in Azure automation powershell// can someone help me//thanks// Connect-AzAccount…


Azure automation - How to use export-csv in azure automation runbook powershell
I am running automation powershell runbook to get VM details in CSV file and export that CSV file to azure blob storage, but I am unable to capture the VM details through Azure automation powershell runbook //I am running this code to get the VM details…


Review : Agent Installation/Policy In Azure Landscape
I would like to review, get suggestions on one of the solutions which we had for running script/installing agent in a huge number of subscriptions. Runbook which loops over subscriptions and get VM details and then create a webhook to another runbook…


How to trigger python script on an Azure windows VM using event or messaganing azure services ( event grid , service bus .. )
Hello, I need to trigger a python script execution on an Azure windows VM after receiving a message or an event ( maybe event from event grid or a message from service bus ) How to send event or messages to a VM and trigger with it the script execution…


Registration of DSC Agent with the server error RegistrationKey empty string
One of my nodes for my State configuration (DSC) in my automation account has been have sporadic status changes between Compliant and Failed as you can see in the pic. This is the error it gives me: Registration of the Dsc Agent with the server…


409 ReasonPhrase: Conflict OperationID
HI I try to run a runbook that will run script on azure VM first questions: is the powershell code is correct? (I used manage identity) I have problem when I try to execute the runbook, the runbook is not finish and when i try again i get the error…

