1,368 questions with Azure Automation tags

Sort by: Updated
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,368 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,368 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,368 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,368 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,368 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 34,336 Reputation points Volunteer Moderator
2 answers

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2025-05-23T14:29:40.4+00:00
Hugo 20 Reputation points
edited a comment 2025-05-30T06:46:46.3433333+00:00
Ashok Gandhi Kotnana 10,430 Reputation points Microsoft External Staff Moderator
2 answers

[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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft Security | Microsoft Graph
asked 2024-07-19T08:40:56.4166667+00:00
kinedy 0 Reputation points
commented 2025-05-28T18:50:55+00:00
Sanskar Tiwari 0 Reputation points
1 answer

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 Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,453 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
asked 2024-08-27T16:57:51.41+00:00
Subhash Kumar Mahato 265 Reputation points
commented 2025-05-28T10:35:30.78+00:00
Lovely Joy Orola 0 Reputation points
1 answer One of the answers was accepted by the question author.

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
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2025-05-17T19:06:44.91+00:00
Simon Taylor 20 Reputation points
accepted 2025-05-28T10:05:10.9333333+00:00
Simon Taylor 20 Reputation points
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2024-09-13T15:27:40.9466667+00:00
computerpaul2 21 Reputation points
edited an answer 2025-05-27T18:27:43.7066667+00:00
Amira Bedhiafi 34,336 Reputation points Volunteer Moderator
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft 365 and Office | SharePoint | For business | Windows
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph
asked 2023-06-27T18:55:35.22+00:00
Khushboo Kumari 107 Reputation points
commented 2025-05-21T17:02:05.1633333+00:00
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft Security | Microsoft Graph
asked 2023-06-26T13:29:37.64+00:00
martin 16 Reputation points
edited a comment 2025-05-15T16:28:02.4633333+00:00
Rachael Singleton 0 Reputation points
1 answer

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 Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,559 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2025-02-12T05:59:25.84+00:00
Azure Subscription 0 Reputation points
commented 2025-05-13T20:43:30.12+00:00
deLiKeith 0 Reputation points
1 answer One of the answers was accepted by the question author.

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft Security | Microsoft Defender | Microsoft Defender for Cloud
Microsoft Security | Microsoft Entra | Microsoft Entra ID
asked 2025-01-08T13:11:15.56+00:00
SS97 40 Reputation points
edited an answer 2025-05-13T14:06:42.6166667+00:00
Ryan Hill 30,281 Reputation points Microsoft Employee Moderator
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2025-04-17T20:30:29.19+00:00
Matthew Dowst 0 Reputation points MVP
answered 2025-05-12T11:10:03.8433333+00:00
Madugula Jahnavi 495 Reputation points Microsoft External Staff Moderator
2 answers One of the answers was accepted by the question author.

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
asked 2022-04-14T17:12:28.343+00:00
Jesus Chao 156 Reputation points
commented 2025-05-07T14:29:14.8066667+00:00
Jesus Chao 156 Reputation points
3 answers One of the answers was accepted by the question author.

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
asked 2023-05-11T09:10:40.96+00:00
Yashas Manjunath 96 Reputation points
answered 2025-05-06T02:35:04.9166667+00:00
Omar Teodoro Oropeza 0 Reputation points
2 answers

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2025-04-04T09:52:28.35+00:00
Grant McGregor 0 Reputation points
answered 2025-05-05T12:02:09.1566667+00:00
Blaise Sculier 5 Reputation points
1 answer

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
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2024-10-16T22:58:19.99+00:00
Arun M K 0 Reputation points
commented 2025-05-01T23:33:50.36+00:00
Satish Naidi 0 Reputation points Microsoft Employee
3 answers One of the answers was accepted by the question author.

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…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,368 questions
asked 2025-04-12T14:32:33.16+00:00
Tabish Ahmed Shaikh 20 Reputation points
accepted 2025-04-30T15:06:30.9566667+00:00
Tabish Ahmed Shaikh 20 Reputation points