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


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

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
Windows for business Windows Server User experience PowerShell
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
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
Microsoft 365 and Office SharePoint For business Windows

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

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

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 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
Getting failure with Connect-MgGraph.
Get-MgApplication_List: Line | 5 | $appList = Get-MgApplication -All | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Authentication needed. Please call Connect-MgGraph.
Azure Automation
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
