1,366 questions with Azure Automation tags

Sort by: Updated
0 answers

Tying to connect to MsGraph in a 7.2 Runbook

I have created a App registration to use to connect to MsGraph and created a self-signed certificate I created in a key vault. I also added the certificate to the Azure Automation account. When I run this Runbook: $TenantId = Get-AutomationVariable…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-27T16:06:45.1133333+00:00
Dave Richardson 26 Reputation points
0 answers

How can I migrate from Azure Automation State Configuration to Azure Machine Configuration while key feature such as reboot handling and using credentials in DSC configuration blocks remain unsupported?

I currently use Azure Automation State Configuration to deploy DSC configurations to resources in-cloud, using the ActiveDirectoryDsc and DFSDsc modules (amongst others) We received a notification that it will be retired on September 30, 2027, and to…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-26T13:03:45.23+00:00
Chris Hill 206 Reputation points
edited the question 2025-06-26T13:06:30.38+00:00
Chris Hill 206 Reputation points
3 answers One of the answers was accepted by the question author.

azure automation runbook cannot read properties of azure policy definition or assignment

I have an Azure Automation Account. In my Runbook, I want to read the properties of a certain Policy Definition. Unfortunately, when the AA runs the PowerShell Runbook, it can only read the definition name, not its description or policy rule. My…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-23T16:15:17.77+00:00
Seekell, Roger 66 Reputation points
accepted 2025-06-25T14:27:54.4966667+00:00
Seekell, Roger 66 Reputation points
0 answers

Azure Automation Runbook: Get-Date Formatting to 'yyyy-MM-ddTHH:mm:ss' does not work properly

Dear folks, For an API I need a DateTime string in the format "yyyy-MM-ddTHH:mm:ss, or at least just the date, the time can be zero. It seems this specific string does cause issues in a runbook. It will default to the default locale DateTime. So…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-18T08:25:51.57+00:00
Dustin 0 Reputation points
edited a comment 2025-06-25T08:38:54.99+00:00
Dustin 0 Reputation points
1 answer One of the answers was accepted by the question author.

How do I purge old automation accounts?

We have several Azure Automation Accounts that were originally created via Azure DevOps pipelines during earlier infrastructure deployments. Can someone please confirm: What is the best way to permanently delete/purge these Automation Accounts (via CLI,…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-19T03:45:04.73+00:00
co 20 Reputation points
accepted 2025-06-24T06:58:49.0366667+00:00
co 20 Reputation points
1 answer

automate some reports from Azure portal weekly basis

Hello , how can i automate some tasks in azure portal that will be exported as csv files Example of tasks : Navigate to Business Continuity Center > Jobs Change time range from default “Last 6 hours” to “Last 2 weeks” Export to CSV Thank you

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-19T18:26:58.13+00:00
Mostafa 45 Reputation points
commented 2025-06-23T02:49:07.8766667+00:00
Naveena Patlolla 3,605 Reputation points Microsoft External Staff Moderator
1 answer

Azure Automation fails with error "module could not be loaded"

Hi, We have an azure automation that was running smoothly but is now failing regularly with the following error: Get-AzAnalysisServicesServer: Line | 48 | $myAzureAnalysisServer = Get-AzAnalysisServicesServer -ResourceGroupN … |…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-18T12:17:22.3666667+00:00
AurelienBAUX-1854 0 Reputation points
edited a comment 2025-06-23T02:44:19.0833333+00:00
Naveena Patlolla 3,605 Reputation points Microsoft External Staff Moderator
1 answer

Status of Automation runbook goes immediately to 'Stopped', nothing runs

I have an automation account with a runbook that runs each day at 6 PM. The runbook worked flawlessly until May 21st. That day, I created another automation account with a runbook for some tryouts and tests, but nothing was scheduled. Since then, the…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-06-16T08:13:48.8566667+00:00
Kevin De Laet 0 Reputation points
commented 2025-06-19T08:40:09.18+00:00
Alex Burlachenko 9,780 Reputation points
1 answer

Support for Inline Child Scripts in PowerShell 7.2 Runbooks

What is the current status of support for inline scripts in Powershell 7.2 runbooks? The current documentation lists inline scripts as "not supported", but it is unclear whether this will change or when it might change. We have several scripts…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
Windows for business Windows Server User experience PowerShell
asked 2024-04-16T07:32:25.3133333+00:00
Guilherme Noronha 20 Reputation points
commented 2025-06-17T08:30:15.08+00:00
Guilherme Noronha 20 Reputation points
2 answers

Runbook Not Processing Emails Correctly

The runbook is not processing all emails as expected, even when the volume of emails is lower than usual. What steps can be taken to troubleshoot this issue?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-05-07T09:12:31.7766667+00:00
Abdulaziz Yassin 0 Reputation points
commented 2025-06-11T08:02:08.3533333+00:00
Vinay B 500 Reputation points Microsoft External Staff Moderator
1 answer

Getting method not found exception in azure runbook

I have PowerShell script written in azure runbook. I have installed PnP PowerShell module version 1.12.0 in Azure automation account. I am using some PnP PowerShell commands to access SharePoint resources. I am getting below error while accessing…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
Microsoft 365 and Office SharePoint For business Windows
asked 2024-09-04T12:47:24.1566667+00:00
Dattatraya Kamthe, Anita 60 Reputation points
answered 2025-06-10T07:03:11.2066667+00:00
Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
1 answer

Cannot backup SQL server db with private endpoint link to azure blob storage

Hello, As I have mentioned on above title, we are trying to backup our database to blob storage using publicly available Runbook from run book gallery (Backup Azure SQL Databases to Blob storage Runbook ). We were able to get the backup up and running…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2024-09-10T06:11:59.83+00:00
Kanishka Perera 0 Reputation points
answered 2025-06-09T20:31:35.21+00:00
Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
1 answer

Azure Automation runbook with custom Python classes in multiple files

I am developing multiple Python classes (in separate files) to be used in a runbook. Azure DevOps (git) is used as version control with runbooks automatically syncing to Azure Automation. I know there is a way to include the classes as modules in the…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2024-09-03T07:24:18.7166667+00:00
Antti-Jussi Korjonen 25 Reputation points
answered 2025-06-09T19:54:24.0366667+00:00
Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
1 answer One of the answers was accepted by the question author.

File Access Error – 'azure\core\rest_init_.py' Locked by Another Process

I am encountering an error when trying to run a process involving the Azure SDK for Python. The system returns the following error message: Please fix this issue. The process cannot access the file 'C:\userenv\Lib\site-packages\azure\core\rest_init_.py'…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-05-27T14:58:54.6566667+00:00
M. Yasir 20 Reputation points
accepted 2025-06-09T16:37:03.79+00:00
M. Yasir 20 Reputation points
0 answers

import-pnponline error in azure automation runbook

Hi, I am new with Azure automations. I have created one runbook in an azure automation account. The runbook is using PowerShell 7.2. I have added the pnp module from the "Browse Gallery". Set it for PowerShell 7.2. When running a simple…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-05-13T10:46:12.0066667+00:00
Adri 0 Reputation points
commented 2025-06-09T13:14:59.5933333+00:00
Naveena Patlolla 3,605 Reputation points Microsoft External Staff Moderator
3 answers

How to link automation account to Log Analytics workspace

I a have created a new automation account and Log Analytics workspace, but there is no way to link them. I have found some steps, but the option from update management is not availible anymore.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2024-10-16T14:05:35.87+00:00
Userss12 0 Reputation points
commented 2025-06-09T07:57:40.5366667+00:00
Karni Gupta (MSFT) 95 Reputation points Microsoft Employee
2 answers

How to check permissions assigned to Managed Identity Access Token?

Hi, I have an automation account on which system-assigned managed identity is enabled. In Powershell, I can fetch the access token for this MI (by running run-job and during which fetching the MI's token) and later do actions on behalf of the identity…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-05-14T07:32:35.1033333+00:00
Najam ul Saqib 400 Reputation points
commented 2025-06-05T07:19:46.7566667+00:00
Najam ul Saqib 400 Reputation points
1 answer One of the answers was accepted by the question author.

Azure automation account custom powershell module: Cannot import the module of name ModuleName, as the module structure was invalid

Im trying to add a custom powershell module, but I get this error: Orchestrator.Shared.AsyncModuleImport.ModuleImportException: Cannot import the module of name ModuleName, as the module structure was invalid. at…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2024-09-19T12:29:34.4066667+00:00
Bjørn Langeland 25 Reputation points
edited a comment 2025-06-04T08:46:37.8933333+00:00
Bjørn Langeland 25 Reputation points
1 answer One of the answers was accepted by the question author.

Getting failure with Connect-MgGraph.

Get-MgApplication_List: Line | 5 | $appList = Get-MgApplication -All | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Authentication needed. Please call Connect-MgGraph.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2025-05-22T20:57:29.8833333+00:00
Anil Kumar Saripadi 40 Reputation points
accepted 2025-05-30T13:22:18.59+00:00
Anil Kumar Saripadi 40 Reputation points
1 answer One of the answers was accepted by the question author.

Azure Automation runbook with multiple Python classes in separate files

I am developing multiple Python classes (in separate files) to be used in a runbook using Azure DevOps (git) as version control with runbooks automatically syncing to Azure Automation. I know there is a way to include the modules in the environment but I…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,366 questions
asked 2024-09-03T07:27:43.4566667+00:00
Antti-Jussi Korjonen 25 Reputation points
edited an answer 2025-05-30T10:36:08.5966667+00:00
Amira Bedhiafi 33,071 Reputation points Volunteer Moderator