Microsoft Q&A

Azure Automation

741 questions

An Azure service that is used to automate, configure, and install updates across hybrid environments.

Browse all Azure tags

741 questions with Azure Automation tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2022-08-23T06:26:41.79+00:00
Michael Mican 61 Reputation points
commented 2023-03-21T20:22:50.65+00:00
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
815 questions
asked 2023-03-07T12:46:10.7966667+00:00
WinTechie 191 Reputation points
commented 2023-03-21T16:27:17.0733333+00:00
TP 17,271 Reputation points
1 answer

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
358 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-20T10:28:03.7366667+00:00
JonasD 0 Reputation points
answered 2023-03-21T15:31:28.55+00:00
Limitless Technology 15,101 Reputation points
2 answers

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-16T19:51:09.7133333+00:00
Santiago Gamboa 0 Reputation points
edited an answer 2023-03-21T07:42:37.3466667+00:00
AnuragSingh-MSFT 11,091 Reputation points
0 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
358 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-17T15:29:26.78+00:00
Kazanskyi, Oleg 21 Reputation points
commented 2023-03-21T07:06:43.1166667+00:00
SwathiDhanwada-MSFT 9,566 Reputation points
1 answer

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,809 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
7,506 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
726 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
1,520 questions
asked 2023-03-12T12:52:54.86+00:00
Abdul Qadir 0 Reputation points
commented 2023-03-20T23:20:37.28+00:00
SaiKishor-MSFT 16,416 Reputation points Microsoft Employee
1 answer

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 Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,876 questions
Update management center
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-15T17:59:13.9233333+00:00
michal 161 Reputation points
commented 2023-03-20T18:36:19.7933333+00:00
Prrudram-MSFT 13,451 Reputation points
1 answer

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…

Update management center
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-09T06:58:45.5433333+00:00
Senthilnath 206 Reputation points
commented 2023-03-20T08:24:58.5866667+00:00
Senthilnath 206 Reputation points
0 answers

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 Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-07T16:23:09.7533333+00:00
Indira A 0 Reputation points Microsoft Vendor
commented 2023-03-20T04:21:08.3566667+00:00
SwathiDhanwada-MSFT 9,566 Reputation points
0 answers

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…

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
358 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
Update management center
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
4,731 questions
asked 2023-02-27T06:56:02.0666667+00:00
Azuretech 0 Reputation points
commented 2023-03-20T01:52:50.4733333+00:00
Sedat SALMAN 85 Reputation points
1 answer

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. …

Update management center
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-13T17:06:43.2+00:00
David Walker 0 Reputation points
commented 2023-03-17T07:55:38.9333333+00:00
SwathiDhanwada-MSFT 9,566 Reputation points
1 answer

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
Azure FastTrack
Azure FastTrack
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.FastTrack: A Microsoft program that helps customers adopt Microsoft Cloud solutions and drive user adoption.
68 questions
asked 2023-03-15T09:32:00.68+00:00
Nitin Parmar-Tss consultancy 26 Reputation points
commented 2023-03-17T07:51:21.07+00:00
SwathiDhanwada-MSFT 9,566 Reputation points
0 answers

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-08T16:53:14.6733333+00:00
Kenneth Huddleston 60 Reputation points
commented 2023-03-16T16:58:11.92+00:00
tbgangav-MSFT 8,066 Reputation points
0 answers

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",…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-10T13:55:20.4433333+00:00
Lars Kartevoll 21 Reputation points
commented 2023-03-16T16:39:33.51+00:00
tbgangav-MSFT 8,066 Reputation points
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
358 questions
asked 2023-03-15T02:18:18.2033333+00:00
Nares 0 Reputation points
commented 2023-03-16T13:35:13.9833333+00:00
tbgangav-MSFT 8,066 Reputation points
1 answer

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-15T15:02:10.72+00:00
Nares 0 Reputation points
answered 2023-03-16T13:32:55.0933333+00:00
tbgangav-MSFT 8,066 Reputation points
1 answer

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
548 questions
asked 2023-02-21T05:20:21.97+00:00
Ananthu Subramanian 0 Reputation points
commented 2023-03-16T11:58:57.8+00:00
tbgangav-MSFT 8,066 Reputation points
3 answers

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
357 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
202 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,876 questions
asked 2023-03-06T10:33:05.3566667+00:00
Anaya, Ines 0 Reputation points
commented 2023-03-16T03:48:20.64+00:00
MikeUrnun 5,501 Reputation points
0 answers

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-15T14:57:20.63+00:00
Yim, Sam 121 Reputation points
edited the question 2023-03-15T19:51:14.2933333+00:00
deherman-MSFT 24,911 Reputation points Microsoft Employee
0 answers

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
741 questions
asked 2023-03-14T12:26:29.26+00:00
Naor Shalom 0 Reputation points
commented 2023-03-15T15:04:19.22+00:00
tbgangav-MSFT 8,066 Reputation points