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

Issue with running an Automation Account Runbook
Hi. I'm following this article to rotate a secret that's about to expire, and the example works fine.I've made the following changes: param ( [Parameter (Mandatory = $false)] [object] $WebhookData ) if ($WebhookData) { $vaultName = $null …
Azure Automation
[Unauthorized] : Insufficient privileges to perform requested operation by the application '00000003-0000-0000-c000-000000000000'
Hi, I am using azure automation with identity system-assigned for authentication and MS Graph with the permissions in the Screenshot to invite external users. But I have this code error: [Unauthorized] : Insufficient privileges to perform requested…
Azure Automation
Microsoft Security | Microsoft Graph
Automating Entra ID App Registration Secret Renewal with Azure Runbook
I have a scenario where I want to renew the Entra ID App registration secret value every 365 days and store it in Azure Key Vault. To achieve this, I have deployed a Key Vault to store the Entra ID App registration details as a secret. Additionally, I…
Azure Key Vault
Azure Automation
Microsoft Security | Microsoft Entra | Microsoft Entra ID
I need to delete an orphaned automation account
I deleted a log analytics workspace before unlinking an automation account. I have exhausted options trying to delete the resource so now I think I need microsoft to delete it in the backend. PS C:\Windows\system32> Remove-AzAutomationAccount -Name…
Azure Automation
Azure Automation Version Control with PS7
We've been trying to migrate our runbooks to runtime 7.2, but there's still a few hangups that are making the migration hard to justify. One of them is that version control with ADO is not officially supported per MS documentation. That being said, I…
Azure Automation

How to connect SharePoint online using certificate?
Hi I want to execute my code using azure runbook. I am trying to connect the SharePoint using below command $application = "" $certificateThumbprint = "" Connect-PnPOnline -ClientId $application -Thumbprint $certificateThumbprint…
Microsoft 365 and Office | SharePoint Server | For business

Azure Automation
Microsoft 365 and Office | SharePoint | For business | Windows

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
Managed Identity with Sites.Selected permission
Hello, is it possibile to use a system assigned managed identity with the Sites.Selected permission? I was not able to find a clear answer for this and all my tests failed with an 401 error. What I have tested so far: Environment Azure Automation…
Azure Automation
Microsoft 365 and Office | SharePoint | For business | Windows

Microsoft Security | Microsoft Graph
Exporting Power BI Reports as PDFs and Sending to Recipients Using Logic Apps
How can I use Logic Apps to export Power BI reports as PDFs and send them to different recipients? Specifically, I need to export the reports based on specific dimensions (such as filters or categories) and automate the process of emailing the PDFs to…
Azure Logic Apps
Azure Automation
Defender for Cloud - Disabled accounts with read and write permissions on Azure resources should be removed - removing permissions from accounts automatically
Hello, To complete recommendation from DfC "Disabled accounts with read and write permissions on Azure resources should be removed", I'd like to set autoschedule to remove permissions assigned to disabled accounts, which sign-ins aren't logged…
Azure Automation
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
Microsoft Security | Microsoft Entra | Microsoft Entra ID
TLS 1.3 Support in Azure Automation Sandbox
I was wondering if anyone has any insight on when Azure Automation Sandboxes will support TLS 1.3 for PowerShell runbooks. Microsoft and by extension Defender are pushing TLS 1.3 across all Azure resources, but I can’t connect to them using runbooks…
Azure Automation
Connect-AzureAD using Managed Identity without Azure AD Graph Token
Recently, we received an email in regards to the retirement of Azure AD Graph. We understand that the retirement has been postponed to December 31, 2022. I use connect-azuread powershell cmdlet to connect to AzureAD in Azure Automation using the…
Azure Automation
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Strange auto-generated resources appeared in Azure
This week in one of the tenants we manage something strange happened. On Tuesday on 5:40 am (CET) suddenly all subscriptions got resources deployed. The resource groups which were deployed are attached as a screenshot. One of the resource groups is…
Azure Automation
Microsoft Security | Microsoft Entra | Microsoft Entra ID

Unable to delete automation account
We have an automation account that we cant delete because it says "Automation account is linked to a workspace". But when we go to "unlink workspace" this fails with "failed to delete workspace because couldnt not be found".…
Azure Automation
How to pass parameter from webhook to a python runbook.
Hi I have a python script which i want to run using Azure automation. I have added a webhook for this runbook and i am able to run the scipt using webhook url from ADF. The problem is I want to pass a parameter to the script. Could someone help on…
Azure Automation
PowerShell script at azure storage account getting failed
Hello everyone, I've developed a PowerShell script that copies appended blocks into a block blob in a new container. It worked well in my POC environment and even ran successfully from a local PowerShell client in production. However, when I tried it on…