Using Automation account source control syncing from Azure DevOps, how do you specify or change runbook runtime version?
We have source control set up in Automation account to automatically update runbooks from Azure DevOps. There is no option to specify runtime version, they are all 5.1. How can we specify a different runtime version, like 7.x, for runbooks that are…
PowerShell Commands to Disable Public Access and Enable Private Access for Managed Disk
What are the PowerShell commands to "disable public access and enable private access" for a managed disk instead of doing it manually? @Ashok Gandhi Kotnana would really appreciate support on this. Thanks!
Automation Account Powershell - The request was aborted: Could not create SSL/TLS secure channel.
An Azure automation account PowerShell script began failing suddenly with the error = The request was aborted: Could not create SSL/TLS secure channel. The below code was added but the issue persists, is there some way to set this property or update…
how to let automation account get information in another tenant
we registered an application A in tenant A and we have an automation account in tenant B now, we would like to use this automation account to create a cron job to monitor the application A client’s secret expiration, so we would like to know how we…
Wrong tenant ID in Task to shut down Ubuntu Server
Hello. I created a task to shut down my Ubuntu server at 4:05pm every day. However, I get the message that the tenant ID is incorrect, and it references the correct tenant ID, which is, indeed, the account I'm logged in to. When I "Authorize"…
Azure Automation Accounts
Hello, I tried to deploy Automation Account using bicep. Since this is first time to deploy AA so I deleted existing one and re-deploy it for multiple times. I suddently received following message: "code": "BadRequest", …
We have received a service alert from Microsoft regarding upcoming maintenance:
Maintenance Details: The maintenance will affect virtual machines in East US. Schedule: From 24 February 2025, 07:30 UTC, to 28 February 2025, 07:30 UTC. During this window, IaaS virtual machines will be migrated to newer network hardware. Each virtual…
Azure Update Management - Updates not showing in Update History on On-Premise servers.
Good morning, I am wondering why updates managed by Azure Update Management do not show in the Update History when installed to our on-premise servers? Some of them show in Programs and Features > View Installed Updates but not all. Thanks Mat
How to Find Unused Resources and Resources with Duplicate Names in Azure Using Code and Automatically Delete Them?
Hello, I am trying to automate the process of identifying and deleting unused resources, as well as finding resources with duplicate names, in my Azure environment. Specifically, I want to: Find unused resources in my Azure subscription (e.g., orphaned…
Encountering anomalies when deploying azure update manager dynamic scopes across multiple subscriptions
I'm facing multiple anomolies when deploying azure update manager dynamic scopes linked to maintenance configurations across multiple subscriptions; with the below script (personal details removed) : # Define a hashtable of subscriptions with their…
How to auto-authenticate AML compute instance to start on a regular schedule?
Hi, I am trying to use Azure ML workspace to run Python notebooks on a regular basis to query Kusto data and conduct data processing. I created a Compute instance in AML, set up the starter shell script, and configured the Startup schedule of the compute…
Azure Automation Hybrid Workers stuck in Queue
Okay, please someone explain something to me. I have been working with PowerShell runbooks for over 5 years now and running into this issue has always eluded me. The only real way to monitor how PS runbooks work on a Hybrid worker is to stumble on the…
Insufficient Permissions on Azure Automation account when Owner
Hi, I've had this problem occurring a few times now and it is rather frustrating. I escalate permissions through PIM to be Owner of a sub where the Automation Account is located. When trying to do anything in the aa I only get this message. This is the…
Support for Inline Child Scripts in PowerShell 7.2 Runbooks
What is the current status of support for inline scripts in Powershell 7.2 runbooks? The current documentation lists inline scripts as "not supported", but it is unclear whether this will change or when it might change. We have several scripts…
Starting runbook with webhook through data factory
Hi, I've recently created a pipeline in ADF that is using webhook to start a runbook in the Azure automation. When I run the webhook in ADF it stays in progress until it times out (even though when I look at the status of the runbook it clearly was…
Connect-ExchangeOnline in Azure Automation account gives Unable to find type (EXO 3.5.1 PS7.2)
I have setup an Azure Automation account and loaded the EXO 3.5.1 module along with PackageManagement V1.4.8.1 and PowerShellGet v2.2.5. I open a new PowerShell runbook and just posted a Connect-ExchangeOnline -ManagedIdentity - Organisation…
How to Fix Runbook Error
I have an error which occasionally appears on my azure automation account runbook. This has only happened twice in the last month, and i'm unable to determine the cause of the error. Any help would be much appreciated. The error I get is "The SSL…
System-assigned Managed Identities fails to remove a KeyVault Access policies on a user
Hi everyone, please help me with a problem that is driving me crazy and I've been chasing it for 2 days without understanding where the problem lies, so I configured a : KeyVault in which I saved a test secret. I created a runbook inside a test…
Unable to Import AIP and PnP Modules in Azure Automation Runbook
I'm encountering issues while attempting to write scripts in an Azure Automation Runbook for decrypting files encrypted by IRM. The following errors occur when trying to import the required modules: Import-Module -Name PnP.PowerShell Import-Module -Name…
How do setup automated tasks for my VM
I would to automate the power on and off of my VM on a daily basis to save costs