IF statement not functioning in Azure runbook
I have a runbook with a PowerShell if statement to check if the input value of a received MAC address is in a valid format. If the format is not valid I am running a cmdlet which calls a function to update the MAC address and use the updated MAC. Else if…
Trying to deploy storage account and a lifecycle policy with ARM fails with Internal Server Error on policy
Hello, I am trying to deploy a storage account with an ARM template (generated from Bicep) with lifecycle management policy and the policy rule fails with Internal Server Error, without of course any details, so it is not possible to know if I am…
![](https://techprofile.blob.core.windows.net/images/b1ec4471f4c840e7994dcdeda51ccfdd.png)
![](https://techprofile.blob.core.windows.net/images/b1ec4471f4c840e7994dcdeda51ccfdd.png)
How to restart a VM in Automation State Configuration with latest configuration?
Hi. Let's say I've connected to a VM and enabled Azure Automation State Configuration. Then the VM stopped (for whatever reason). What should I do to restart the VM from the latest configurations? Can I just start it again or do I need to restore its…
Issue with Automation Account SourceControl autoSync
Hi, Has anyone else faced this issue with source control in Automation Accounts? From one day to the next, the auto-sync feature just stopped working, and when we try to enable it, we get the following error: We have a lot of source control configured…
Creating azure automation run book with PShell to deploy new instance of cloud compute solution and delete with other script
is it possible to azure automation run book using powershell to deploy new instance of cloud compute solution? and I want to run another run book to delete all the resources created by the first script with out any back up ? how do we do these 2, please…
How to set up a automate rule to delete SharePoint site contact when it is expired.
Hi all, May I ask if there a way to create a Automate Flow to delete a site contact depends on the expire date? For example, I have added a column called Expire: Is there any way to get this file deleted when it is expired and send a notification out?…
Azure Automation Account Source Control Error
Hi there, I'm getting an error when using the Source Control for one of my runbooks. I'm getting the following error log everytime I try to turn on the 'Auto Sync' setting. Currently, I only have 1 runbook so I can't really test this out on another…
Receiving an error when trying to deploy ARM template
I created a runbook within an Automation Account to go out and grab logic app templates and send them to a blob storage container. Here is the powershell script that gets the templates # Ensure modules are imported, should already be imported via…
Unable to create automation account with customer-managed key
Hi, I am trying to deploy an automation account with a customer-managed key via Bicep but it keeps resulting in an Internal Server Error (HTTP Status Code: 500). I am using the bicep…
Azure Synapse LinkConnection template json
We have created a LinkConnection in Azure synapse, the source database is MS SQL Server and target database is Dedicated SQL Pool. We are trying to create powershell script to automate the creation of this LinkConnection for each environment - Testing,…
Azure Automation PowerShell - While trying to connect to AzureAD using 'Connect-AzureAD' it give me issue of cmdlet not recognized.
I am trying to get all the users in AD using PowerShell automation runbook. The modules are installed in the shared resources. Still when executing line : 'Connect-AzureAD' throws error of : I have tried options like : Importing the modules…
ExchangeOnlineManagement authentication broken in Azure Automation Runbook
Since the morning of Thursday 9 Feb 2023, I've not been able to successfully authenticate with ExchangeOnlineManagement via an Azure Automation runbook using either a credential flow or Managed Identity. I can replicate this issue across three different…
Help getting python runbook (azure automation) to access microsoft graph (sharepoint files)
Hi all, I would love some help trying to get my python runbook to access my microsoft graph. I have followed this tutorial (https://learn.microsoft.com/en-us/entra/id-governance/identity-governance-automation) and have tested my certificates with a…
Getting error and warning while executing runbook automation account
We are using kusto query with powershell in Azure automation account. We are getting below error and warning while executing runbook. It will generate csv with kusto query result and sent mail to recipients . We are getting even though getting below…
Run a Python Runbook on a Linux virtual machine during Azure Recovery Site failover
Hello everyone, I'm currently trying Azure Site Recovery to replicate a VMware virtual machine into Azure. I've done the test failover successfully but now I'm trying to execute a Python script onto my replicate VM during the failover phase. I tried to…
Unable to enable autosync option under sourcecontrol in Azure Automation
Hi All, I'm trying to set up source control for Azure automation account, but when I click EnableAutoSync I'm seeing below error. An error occurred while updating the source control named 'SCReposGit'. Error details: SourceControl autoSync setup failed…
How to split RI cost ?
Hello, We have bought RIs at resource group level and we want to split the RI cost among various application owners based on RI discount their resources got in billing for that hour. Let's assume there are three equal size VMs in an RG and we have…
How many Schedule job can create an single automation account? Any limit is available?
We need to create 50000 schedule with azure automation is it possible or not.
Issue: Deployment Failed When Creating an Automation Account on Azure (400 Bad Request)
Hi, When attempting to create an automation account on Azure, either via Terraform (API) or through the Azure dashboard, I got the following error message: Your deployment failed unexpected status 400 (400 Bad Request) with response:…
unable to create vm using ARM Template, throws error "The value of parameter linuxConfiguration.ssh.publicKeys.keyData is invalid"
unable to create vm using ARM Template, throws error "The value of parameter linuxConfiguration.ssh.publicKeys.keyData is invalid" I have declared the parameter everything seems to be fine.