Exchange Online Managed-Identity Authentication - Failed to Manage Distribution Lists
I've migrated the Automation Account runbooks to authenticate with managed identity to Exchange Online with the API permission Exchange.ManageAsApp, and I'm receiving the following error: You don't have sufficient permissions. This operation can only…
Get-CsOnlineApplicationInstance
Hi, I have a runbook with managed identity to run within an automation account. I have this script: Connect-MicrosoftTeams -Identity Get-CsOnlineApplicationInstance but it always returns me access denied. The managed identity is already teams…
is it even possible to use Microsoft.PowerApps.Administration.PowerShell in an Azure Runbook?
Import-Module Microsoft.PowerApps.Administration.PowerShell Import-Module Microsoft.PowerApps.PowerShell #Add-PowerAppsAccount #Use for desktop..[desktop works. It returns the filtered environment] #Use for Azure Automation…
Configuring Azure Automation Hybrid Worker on an offline VM
I want to configure Azure Automation Hybrid Worker on a VM that is not connected to the internet. In this case, I plan to move the installed path of PowerShell 7 from another PC. To install Azure PowerShell, I will use the command Install-Module -Name…
Azure Automation Service Charges
I have automation set up in 2 different tenant, both are for database scale up and scale down i.e. between S2 and S4 which is scheduled at 7 AM to scale up and 7 PM to scale down., but still the execution time is very different for both of them, 1 takes…
Are you able to share the PowerShell Script/YAML File codes from a specific YouTube video?
Hello, I recently watched the YouTube video titled "Integrating Power BI Deployment Pipelines into Azure DevOps and Azure Pipelines | OD29" by Microsoft Developer. In the video, the presenter demonstrates two methods for automating Azure…
Storing Azure Metrics in Private Storage Account Using Azure Automation
I want to retrieve metric values using Get-AzMetric in Azure Automation and store the daily updated values in an Azure Storage Account. However, the Storage Account is configured with a private link and can only be accessed through a specified network,…
How to get Job Details when executing an Azure Automation Runbook
Hi, I am running a PowerShell based Runbook in Azure Automation on a Hybrid Worker and I would like to retrieve the curent job details like the JobId, JobName for ex. I am trying to record the job details and health to a SQL table to help me track stale…
Display Name and Sign-In-Name are empty
I am working on azure automation and the RunBook Type is PowerShell. The requirement is to get the list of role assignments at subscription or resource group levels. Output should be like RoleDefinitionName, Scope, DisplayName and SignInName etc.. I…
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.
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…
Is there any way to scale up the azure webapp vertically (change app service plan) automatically?
Is there a way to automatically scale up an Azure Web App vertically (by changing the App Service Plan)? Has this functionality been completely removed by Azure? I attempted to use an Azure Automation Account with a PowerShell Runbook, but encountered…
Runbook Error when trying to read table with VM power states, stoped VMs that are recorded as stop and deleting the rows after the fact.
This is an after updates update manager post-script to shut down vms after they are started for updates if they were off before pre-script. Thus, keeping the environment as it was before processing updates. This is also run on a portal.azure.com…
We have also the same issue runbook run and later on got suspended due to internal error. Can anyone have any solution for this.
We have also the same issue runbook run and later on got suspended due to internal error. Can anyone have any solution for this.
Automating Daily Metric Collection and Storage in Private Azure Environment
I want to extract the metric values of VMs configured in the Azure environment and automatically save them as CSV files to a Storage Account on a daily basis. While my PowerShell script is working, I am facing difficulties in saving the data to the…
print('Error - ' ) is not working as expected in azure python runbook
Hi , I am referring below link for printing error message in Error tab of Azure Python Runbook. https://learn.microsoft.com/en-us/azure/automation/learn/automation-tutorial-runbook-textual-python-3 Below is the print statement used by me …
Azure Terraform Export
Hi, I logged into https://preview.portal.azure.com/ today and was looking for the Terraform export part but wasn't able to find it, has it been removed from the Preview Portal or not? Please let me know. Thanks.
How to get Variable stored in automation account in python runbook (v 3.10) running on hybrid worker
I need to get the variable(encrypted string) stored in automation account into python runbook v 3.10. in documentation it is asked to import automationassests package but it is not available in pypi.org for targeted version. Is there any other way to…
Azure Bicep: Is the Export Template Preview Feature Removed or Relocated?
Recently, I was using the Azure Bicep preview feature to export templates from the automation section, but it's no longer visible. Has the feature been removed, moved to another location, or do I need to enable it from a specific setting? I’ve checked…
Query on Azure Update manager
Does Azure Update Manager support CIS-hardened images (Windows 2016/2019/2022)? I have deployed Windows Server operating systems from the Azure Marketplace and hardened these images using CIS Benchmark policies downloaded from…