1,344 questions with Azure Automation tags

Sort by: Updated
0 answers

Az.Resourcegraph module not working. Couldn't be loaded while uding Search-AzGraph in runbook

Getting below error in Runbook while running Search-AzGraph query. Although the Az.ResourceGraph module is imported and uploaded both options tried but still runbook is failing. Module is availabe

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 5, 2025, 5:12 PM
ChiragAggarwal-4011 0 Reputation points
1 answer

One VM as hosts for multiple automation accounts hybrid workers

Can a one Azure VM be a hosts for two or more extension based hybrid workers, each for different automation account? I have selected same VM as hybrid worker for two different Automation Accounts, and one is working fine, the other one shows that in…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 4, 2025, 11:07 AM
Sławomir Swat 0 Reputation points
answered Apr 5, 2025, 10:41 AM
Vinodh247 31,516 Reputation points MVP
1 answer

Creating AKS from ARM template

I have created AKS manually, I saved the template below. I will delete this AKS in a while, but I need to create after few days. so I just want to use template to avoid manual process. I think only need to change the AKS name, thats it. { …

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 5, 2025, 4:56 AM
Varma 1,410 Reputation points
commented Apr 5, 2025, 5:16 AM
Varma 1,410 Reputation points
0 answers

Creating Resource Group, ACR and Keyvault using automation

I have Resource group created, and in that i create ACR, VNet, and Key value, and do this for every 2 days and use it for few days and then I will delete. so when I am trying to create next time, I dont want create manually every time, I want to use…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 3, 2025, 3:31 PM
Varma 1,410 Reputation points
edited a comment Apr 4, 2025, 3:24 PM
Varma 1,410 Reputation points
1 answer

Using Automation Account I want to delete unattached Azure Managed Disks across all Azure subscriptions.

Can anyone help me with this? I need to delete all unattached Azure Managed Disks across all Azure subscriptions.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 4, 2025, 2:25 PM
jeff peterson 0 Reputation points
answered Apr 4, 2025, 2:34 PM
Ashok Gandhi Kotnana 5,040 Reputation points Microsoft External Staff
0 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,344 questions
asked Apr 4, 2025, 9:52 AM
Grant McGregor 0 Reputation points
commented Apr 4, 2025, 10:32 AM
Alex Burlachenko 3,595 Reputation points
1 answer One of the answers was accepted by the question author.

How to enforce IaC in production? are there some references of custom policies that accepts only deployments made by service principles?

I am learning about enforcing IaC in our cloud environments and I am looking for some best practices and references on this.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 2, 2025, 8:43 PM
SrVish 20 Reputation points
commented Apr 4, 2025, 9:20 AM
Stanislav Zhelyazkov 27,091 Reputation points MVP
0 answers

Unable to See Links Between Azure Resources in Resource Visualizer After Deploying with Bicep

I'm deploying a stack using Bicep and GitHub Actions. The deployment process involves using the azure/bicep-deploy@v2 GitHub Action with whatif first and then the actual deployment. However, after the deployment, I am unable to see the links between…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 25, 2025, 1:26 PM
Hiten Samalia 20 Reputation points
commented Apr 4, 2025, 8:38 AM
Srinivasa Reddy Jaggavarapu 190 Reputation points Microsoft External Staff
1 answer

Not able to create Resources using ARM template

I am using following ARM template, to create RG , ACR and Key vault but failing . and when I execute below command coming up with following error PS I:\ARMTemplates\DevOps> az deployment group create --resource-group testrg --template-file…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 4, 2025, 5:05 AM
Diptesh Kumar 101 Reputation points
commented Apr 4, 2025, 5:56 AM
Stanislav Zhelyazkov 27,091 Reputation points MVP
1 answer

Problems uploading certain python packages to Automation Account

Certain python packages fail to upload to an Automation Account. I am trying to upload wheels for: azure-mgmt-authorizationn version 3.0.0 or 4.0.0 For 4.0.0, I checked the setup.py file and found these dependencies: install_requires=[ …

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Apr 2, 2025, 11:29 PM
j lo 1 Reputation point
answered Apr 3, 2025, 4:27 PM
Sina Salam 18,881 Reputation points
0 answers

Azure Automation Account for Powershell Runbook - Insufficient Privileges to Run Operation

I have an Azure Automation Account that is running some simple powershell code via a runbook. I have granted rights to the subscription for this account. When I call any of these commands I get an insufficient privileges error Connect-AzAccount…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 25, 2025, 8:15 PM
Greg Thomas 121 Reputation points
commented Mar 31, 2025, 2:30 PM
Naveena Patlolla 1,310 Reputation points Microsoft External Staff
3 answers

Azure VM Reboot Schedule

Is it possible to schedule an Azure VM to reboot on a specific day of the month that is recurring based on which day of the week it is? Or do they have to be scheduled Example: I'd like my server to reboot on the 3rd Tuesday of each month,…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Jan 5, 2023, 9:55 PM
Martin Leather 6 Reputation points
commented Mar 29, 2025, 10:28 PM
Benjamin Billups 1 Reputation point
0 answers

Using Azure CLI to run a Bicep file

I am using powerhell to run a Bicep file. I already have the Azure CLI installed on my computer and am logged in to my Azure account. However, when I try to run the following command, I get an error. I need help with this. Thank you very much. PS…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 25, 2025, 3:59 PM
Isaac Fernandez 0 Reputation points
commented Mar 28, 2025, 5:45 AM
Vinod Pittala 1,165 Reputation points Microsoft External Staff
1 answer

Content-Type Header not being sent from azure workbook arm action

I am trying to create a runbook job using an ARM action in azure workbook, I have included Content-Type Header, but the REST API call fails, please refer the below images Error Content-Type Header

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 25, 2025, 6:40 AM
Bhanuteja Chintha 0 Reputation points
commented Mar 27, 2025, 1:55 AM
Ashok Gandhi Kotnana 5,040 Reputation points Microsoft External Staff
0 answers

Unable to connect to Microsoftgraph across tenants using clinet secret in Azure automation runbook

I'm trying to connect to microsoft graph using a client secret in an azure automation runbook,but I'm encountering several errors. I am using power shell script, I've tried diiferent ways to login. Below are the different errors: 1)Invalid JWT Access…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 11, 2025, 3:30 AM
Shri Gowtham Tharun Reddy Abbireddy 146 Reputation points
commented Mar 26, 2025, 6:56 AM
Vinod Pittala 1,165 Reputation points Microsoft External Staff
2 answers

Best way to import the existing infrastructure on Azure to Terraform

We have a huge azure infrastructure of nearly 6000 components in place, which were created through az cli / powershell. We want to import all of this in terraform and start using terraform for automation. What should be the best way to do that?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Oct 19, 2023, 7:00 PM
Srishti Gawande 0 Reputation points
answered Mar 25, 2025, 11:16 PM
Stu Mace 0 Reputation points MVP
0 answers

Azure automation account Hybrid Worker - failed to connect to MSI

Hi, I want to convert my PS runbook to Azure CLI and it has to run on a Hybrid Worker. The PS login is like this $AzureContext = (Connect-AzAccount -Identity).context Now, with Azure CLI, i suppose it's the following... $AzureContextcli = (az login…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Feb 27, 2025, 4:25 PM
Charles Thivierge 4,161 Reputation points
commented Mar 24, 2025, 3:40 PM
Hannes Skoglund 25 Reputation points
0 answers

No Automation account created, and showing error of the only one automation account is allowed in the subscription

No Automation account created, and showing error of the only one automation account is allowed in the subscription

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 21, 2025, 12:00 PM
Shivam Maurya 0 Reputation points
commented Mar 21, 2025, 12:11 PM
Ashok Gandhi Kotnana 5,040 Reputation points Microsoft External Staff
1 answer

How to setup automation task and alerts

Hi all, I currently have an app service plan with 3 instances and a few web apps running on it. I want to setup a process so that if an instance of a web app becomes unhealthy or degraded, that instance is restarted. After restarting this instance, it…

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 21, 2025, 10:48 AM
Arun Pun 0 Reputation points
answered Mar 21, 2025, 11:57 AM
Marcin Policht 41,620 Reputation points MVP
0 answers

Automation Account

I have created my automation account where I created a runbook now I am unable to find it and in monitor log there is no data of deletion of automation book. Can someone help me with this?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,344 questions
asked Mar 20, 2025, 12:33 PM
Avi Natani 0 Reputation points
commented Mar 21, 2025, 10:11 AM
Ashok Gandhi Kotnana 5,040 Reputation points Microsoft External Staff