How to run a batch file without connecting to virtual machine?
Hi All, I have a batch file within azure virtual machine. When I'm connected to the VM using RDP I can use a task scheduler to run the batch file. (For context, the .bat file runs various python and R files) I want this batch file to run without…
Automation runbook for start/stop VM using Storage account blob
Hi, I am trying to deploy a powershell runbook in automation account which should read contents of CSV stored in storage account blob using system assigned managed identity of automation account. Looking for a piece of code as I don't want to use sas…
How to setup Azure Automation account to restore database on SQL MI ?
Hello, I have a PowerShell script (see below) that I currently run daily from a task scheduler on a VM to restore a production database (SQL Managed Instance) to a secondary instance (SQL Managed Instance). I am planning to move this process to an Azure…
Automating switch between Standard HDD and Premium Disk on VMs
How can we have an automation that changes our VM's disk type to Standard HDD when we turn them off and then changes them to Premium before turning the VM back on? Is there any ready-to-use method available?
![](https://techprofile.blob.core.windows.net/images/ZuCGjNGWaEiWnbswF6AtpA.png?8DA64C)
Getting an error when trying to setup Exchange Online ForwardingAddress in Azure Runbook
Hello, I am trying to setup an Azure Automation Runbook in which I convert a User Mailbox to a Shared Mailbox and setup a ForwardingAddress. I setup all the permissions and converting the mailbox is working, setting a forwarding address throws the…
[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…
![](https://techprofile.blob.core.windows.net/images/6zoZhv5_BgAAAAAAAAAAAA.png?8DABC3)
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?…
Getting warning: Can't find loc string for key: Info_GotAndMaskAuth
Getting warning "Can't find loc string for key: Info_GotAndMaskAuth" when running npm custom on pipeline agent
![](https://techprofile.blob.core.windows.net/images/nangnqqNAkuWTT7031X8vg.png?8DCA0F)
How to disable local authentication in Azure Automation account
Hi experts, Does anyone know how to disable the local authentication in Azure Automation Account? This documentation is related to the topic, but it doesn't provide actual steps to disable the local authentication in Azure Automation Accounts.…
How to run az.automation cmdlets from inside a runbook?
From within an Azure runbook I want to run get-azautomationjob to find out information about jobs. I ran a get-command from within the runbook, and it says I have that cmdlet available. But when I run it, there is no data returned(variable is null), but…
![](https://techprofile.blob.core.windows.net/images/d2tvFBHkuECHIdJFwoOShw.png?8DB3F8)
An optimized solution for installing Wiz Runtime Sensor in all Virtual machines across our organizations Subscriptions.
Hi Team, I am currently working on an objective to install the 'Wiz Runtime Sensor' across all Virtual Machines in our organization's Azure subscriptions. I have compiled a list of active VMs that are potential candidates for this installation. As I am…
![](https://techprofile.blob.core.windows.net/images/Nw9OZIzCZUiYqD_eTMTQaA.png?8D812F)
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…
Azue runbook - Exchange PowerShell
We are trying to automate mail flow reporting via Azure runbooks using an app registration (service principal) to authenticate. The runbook will query Exhchange Online powershell modules for mailflow data. The only Entra permissions that seem to allow…
New-AzureADApplicationKeyCredential - Thumbprint not available issue
Hi, We have noticed that when we try to upload azure self signed certificate to Azure AD App registration from powershell using the cmdlet New-AzureADApplicationKeyCredential, we are not able to see the certificate thumbprint in the portal, App…
![](https://techprofile.blob.core.windows.net/images/a1395d6d60e64acc8c1bfc104037f1aa.png)
Webhook payload runon Azure vs Hybrid worker
I am working with azure automation, triggered by webhooks. Typically this runs directly on Azure and works fine, the webhook data payload is received and handled as a PSCustomObject. I now need to run the same on a Hybrid Worker because of a OnPrem…
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…
Auto restart the evicted VM
We have a spot virtual machine that gets deallocated or switched off when the eviction policy is triggered. I would like to automate the restart of the evicted virtual machine based on the trigger i receive . Is there any way i can acheive this…
![](https://techprofile.blob.core.windows.net/images/hAFzqf2_AwAAAAAAAAAAAA.png?8DB62B)
Convert text to speech and export to audio file Power Automate Flow
I'm trying to get the Azure Text to Speech Service in Power Automate to output to a audio file. Flow saving successfully and file is created, but the encoding must be incorrect:
![](https://techprofile.blob.core.windows.net/images/k3pGvNqV6k28ggaVHaTPrQ.png?8D803E)
Azure Automation Hybrid Worker "Failed to set folder access"
Hello, I am quite new to Azure Automation. At the moment I am trying to get a Hybrid Worker running my runbooks locally. I have set up the hybrid worker group inside my automation account and also added the desired server to the group via the…