1,160 questions with Azure Automation tags

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

Send Azure Runbook Job Output

Hello i would like to send an email or at least write a log entry with a "Runbook Job Output" (not an Error)" where i could at least create a alert. Is this possible?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-22T00:33:11.367+00:00
Alexander 266 Reputation points
accepted 2021-04-28T18:53:09.047+00:00
Alexander 266 Reputation points
1 answer One of the answers was accepted by the question author.

Is there an azure api support for checking update agent readiness in azure automation

we want to dynamically get the update agent readiness status for every vm in azure automation update management, does MS have any OOB rest apis, poweshell scripts or SDK get these ? all we need is to periodically check the the "update agent…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-27T09:46:46.9+00:00
jillam 21 Reputation points
accepted 2021-04-27T13:28:09.677+00:00
jillam 21 Reputation points
1 answer One of the answers was accepted by the question author.

Invoke-AzVMRunCommand Force Powershell Version?

Is there a way to force the powershell version on a script ran with the invoke-azvmruncommand to be powershell version 7? I have it installed on the server as I have tested running the script with it and it runs fine, but some of the syntaxes like for…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
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.
5,433 questions
asked 2021-04-15T22:07:52.823+00:00
Luke Uhren 191 Reputation points
accepted 2021-04-26T18:56:20.54+00:00
Luke Uhren 191 Reputation points
1 answer One of the answers was accepted by the question author.

Azure Automation Runbooks

I'm looking to setup a series of Runbooks to perform support actions within our environment and delegate execution permission to the level 1 and 2 support teams. I've created the runbooks and assigned the relevant roles. Runbooks need to run on a…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-19T14:22:33.983+00:00
Marc Roberts 21 Reputation points
commented 2021-04-23T08:33:44.777+00:00
tbgangav-MSFT 10,411 Reputation points
1 answer One of the answers was accepted by the question author.

Stop runbook if found any output

I have runbook which is checking scheduler of my report server and give us output in email if any scheduler is not running. I want a SMS if any scheduler is not running. What i am thinking is that any way that my runbook stop whenever the output is that…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-13T13:09:45.237+00:00
Sharma, Sarita 21 Reputation points
accepted 2021-04-21T20:02:52.347+00:00
Sharma, Sarita 21 Reputation points
1 answer

Unable to add O365 credentials to Azure automation account . Need asistance

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-19T12:02:59.587+00:00
KIRAN T 1 Reputation point
commented 2021-04-20T12:26:04.033+00:00
tbgangav-MSFT 10,411 Reputation points
1 answer

Importing SCCM cmblet Module into Azure Automation

I'm looking for information on how to accomplish importing SCCM Cmdlet module into Azure Automation so I can use the SCCM cmdlets inside of a powershell runbook.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-15T22:11:58.453+00:00
Jonathan (Jon) Johnson 1 Reputation point
commented 2021-04-20T08:07:15.457+00:00
SwathiDhanwada-MSFT 18,136 Reputation points
1 answer

Error passing Azure File Share to Set-Location cmdlet

I am attempting to automate a copy file process using an Azure Runbook. Here's the code: ]1 What am I doing wrong here?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,203 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-04-14T17:22:28.467+00:00
Charlotte Watson 21 Reputation points
answered 2021-04-15T14:13:04.157+00:00
tbgangav-MSFT 10,411 Reputation points
1 answer One of the answers was accepted by the question author.

Azure Autimation - Powershell script failing

Hi all, I have the following PS script, that I want schedule using Azure Automation, is failing saying that "Set-AzureRmAppServicePlan" is not correct. That I dont understand as it works geat when running it in Azure Cloud Shell …

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
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.
5,433 questions
asked 2021-03-31T05:14:07.11+00:00
Nibbler 616 Reputation points
commented 2021-04-14T11:53:01.483+00:00
Nibbler 616 Reputation points
2 answers One of the answers was accepted by the question author.

Set-AzureADUserThumbnailPhoto in Automation Runbook

Hello, I try to create a Azure Automation Runbook which updates the Profile Pictures of Guest Users. As I can not define a File in Azure Automation (or Can I?) I want to use the -ImageByteArray Argument . But I dont find any examples of that. I…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
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.
5,433 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,158 questions
asked 2021-04-08T09:44:52.96+00:00
Sascha Reichhardt 36 Reputation points
accepted 2021-04-08T19:52:16.67+00:00
Sascha Reichhardt 36 Reputation points
1 answer One of the answers was accepted by the question author.

The remote server returned an error: (403) Forbidden when installin extension to Azure VM

Hi, I'm using following line in my Azure Runbook to enable diagnostic settings for Azure vm if ($vm.StorageProfile.OsDisk.OsType -eq 'Windows' -and $vmStatus -match 'VM running') { $extensions = Get-AzVMExtension -ResourceGroupName…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-03-19T07:18:55.247+00:00
Bombbe 1,611 Reputation points
accepted 2021-04-06T06:56:23.357+00:00
Bombbe 1,611 Reputation points
1 answer One of the answers was accepted by the question author.

Problem using Get-AutomationPSCredential for Invoke-Sqlcmd password

Hello I have an Azure Runbook which needs to write data into an Azure SQL database. My password is stored in the automation account's credential object and I use Get-AutomationPSCredential to pull out the .Password property. For some reason the…

Azure SQL Database
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-03-30T14:24:21.967+00:00
David Gray 176 Reputation points
accepted 2021-04-01T13:07:26.263+00:00
David Gray 176 Reputation points
0 answers

Why do scripted steps in Recovery Plans rely on the location of the RG instead of location of the automation account and runbooks?

If you have a Resource Group in the source region and that RG contains an automation account and runbooks in another region. Then you can't use that automation account and runbooks in an ASR recovery plan. The check fails because the region of the RG…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
664 questions
asked 2021-03-21T13:06:57.66+00:00
Lund, Claus 1 Reputation point
commented 2021-03-23T19:23:19.567+00:00
SadiqhAhmed-MSFT 39,826 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Network Security Groups and Update Management

We are attempting to implement Azure Automation for Update Management of a subset of servers that have outbound internet access blocked. We want to open port 443 only for required Azure Public traffic listed in the doc below as: …

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,237 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-03-17T20:15:03.487+00:00
jpcapone 1,376 Reputation points
accepted 2021-03-23T18:53:45.253+00:00
jpcapone 1,376 Reputation points
2 answers

Can I use a runbook to start a VM and run commands in the VM?

I would like to receive a HTTP post request from a web application, and then run a command on the VM (like I would when I SSH into the VM) and return the output. Is this possible using a runbook or any other Azure services?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-03-15T01:30:00.41+00:00
np 11 Reputation points
commented 2021-03-23T08:06:24.997+00:00
tbgangav-MSFT 10,411 Reputation points
1 answer

Error reaching blob container from azure runbooks python 3

Hello, I need to pull a json file from azure blob container using python 3 in azure runbooks. First I added all python packages to the automation account. I ran the following script: from azure.storage.blob import BlobServiceClient import…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-01-06T18:59:09.693+00:00
Luuk van Vliet 276 Reputation points
answered 2021-03-23T06:58:16.04+00:00
Alden 1 Reputation point
0 answers

Azure Powershell Runbook fails randomly without logging errors

I have Azure runbook job which fails randomly without logging any errors. The job calls a DB stored procedure. The job fails totally randomly like couple of times out of 20-30 runs. It just says in Exceptions tab that - I have some errors. (I have some…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
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.
5,433 questions
asked 2021-03-19T04:17:33.827+00:00
Nikhil 1 Reputation point
commented 2021-03-19T05:57:50.78+00:00
tbgangav-MSFT 10,411 Reputation points
1 answer

Azure Update Manager query

In recently we had an issue - where we have setup few scheduled task to do patching of the server for critical and important update using update manager. it failed and we missed to get any information - which caused us many issues. Hence we have decided…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-03-11T10:19:36.083+00:00
Ashish Javiya 1 Reputation point
commented 2021-03-12T05:55:57.363+00:00
SwathiDhanwada-MSFT 18,136 Reputation points
1 answer

Automation account to have permissions only to Update Management

Hi Team, Can we provide RBAC permissions to specific users only on Update Management? how can it be done? Regards, GEEAZ

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-03-09T08:39:15.747+00:00
Geeaz 121 Reputation points
answered 2021-03-11T09:05:37.043+00:00
SwathiDhanwada-MSFT 18,136 Reputation points
0 answers

How to connect to PnPConnect then Get-PnPProvisioningTemplate in Azure Automations Runbook using MFA?

Hi All I have been trying for over a week now to run the below command in a Automations Runbook. But I have hit brick walls with every attempt at authentications. Has anyone successfully managed to automate PnPProvisioningTemplate? # Dynamic…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,160 questions
asked 2021-02-22T22:25:33.787+00:00
Rob at Notebook Publishing 1 Reputation point
commented 2021-03-09T10:59:46.173+00:00
SwathiDhanwada-MSFT 18,136 Reputation points