997 questions
1
vote
0
answers
74
views
Trigger Adding Automatic Parent Feature by Creation of Custom Work Item Type?
I have a custom work item type which will always have the same parent feature. I'm trying to create a pipeline which is triggered by the creation of the work item type to add that particular feature ...
0
votes
1
answer
185
views
How do I set up powershell Modules to work with Runbooks run on Hybrid Workers?
I have an environment set up with Azure Hybrid Workers (v2) that run some scheduled runbooks. I would like to extend those runbooks with modules without installing all the modules on all the VMs that ...
1
vote
1
answer
209
views
Getting Azure Credentials from Hybrid Worker in Azure Automation with Python
I have an automation account with a bunch of stored credentials. In the past I typically use Powershell and using Get-AutomationPSCredential has worked great in the past. However I need to get some ...
0
votes
1
answer
98
views
Is it possible to automate App Registration in the Azure portal using only a custom template?
I'm attempting to automate Azure App Registration using an ARM template with Azure CLI (AzureCLI) deployment scripts and also used powershell scripts. My goal is to create an app and extract its appId ...
0
votes
1
answer
172
views
How to Monitor Azure Automation Python Runbook Status via Python Code?
I'm looking for a way to monitor the status of an Azure Automation Python runbook through code, so I can create a function to send alerts using a specific template like this:
Azure Automation Runbook ...
0
votes
1
answer
63
views
azure automation Powershell load assembly from Nuget package
How can I load and run the Kusto query in the Powershell runbook using the Kusto client Nuget package? On a local machine I can download the package as a Zip file and then extract in then load the ...
0
votes
1
answer
85
views
Azure automation runbook powershell to run Azure Data Explorer cluster data query
I have to run kusto query for my ADX cluster to get some data from Database from my Runbook. currently rest of the commands/scripts in my runbook are in Powershell, but I am not able to find ...
-1
votes
1
answer
50
views
Error while trying to move a subscription to another management group using an Azure Automation Account
The automation account has owner at the tenant root group as well as management group contributor. I am trying to create a script that moves subscriptions to a management group with the path tenant/...
-1
votes
1
answer
60
views
FailoverClusters Powershell in Azure Runbooks
I wanted to use the FailoverClusters powershell module in Azure runbook.
Need some help or steps to install on this.
https://learn.microsoft.com/en-us/powershell/module/failoverclusters/?view=...
0
votes
1
answer
340
views
VS Code Azure Automation extension doesn't sign in properly
The VS Code Azure Automation extension has five sections: Azure Automation, Resources, Workspace, Accounts & Tenants, and Help and Feedback. The Azure Automation, Resources, and Accounts & ...
0
votes
2
answers
60
views
Dynamic Pipeline for deploying Azure resources with Python
I have 6 different python srcipts. Each script deploys different resource to Azure and accepts different parameters. I would like to achieve this scenario:
I have a pipeline that will do the following:...
0
votes
1
answer
924
views
Why am I getting an 'Unauthorized' error when using Connect-ExchangeOnline with Managed Identity in Azure Automation?
Problem Description
I am trying to use Connect-ExchangeOnline with a managed identity in an Azure Automation account to run unattended scripts. While the command works perfectly on my local machine, ...
0
votes
1
answer
40
views
Properly Define PSDscAllowPlainTextPassword in PowerShell DSC Config with Azure Autoatmion
Can anybody tell me how to properly define 'PSDscAllowPlainTextPassword = $true' in this DSC implementation with Azure Automation. We're getting the following error which we quickly want to work ...
0
votes
0
answers
171
views
Automating Email Notifications for Non-Compliant Resources in Azure Policy
Currently, I have a custom policy that audits Network Security Group (NSG) rules allowing inbound traffic from ANY or Internet (i.e., when the source is ANY or Internet). This policy is assigned at ...
0
votes
1
answer
135
views
Deploy ARM template for a runbook for an existing Automation Account
I'm trying to deploy a simple runbook into existing Automation Account, but it fails saying that this Account is not found
Here is my template:
{
"$schema": "https://schema....
1
vote
1
answer
490
views
Azure Automation Account Runbook Edit in VS Code asks to install Azure Automation again
In the Azure portal I created an Automation Account with a Powershell 7.2 runbook.
From within the runbook, when I click Edit and choose Edit in VS Code I am then presented with an invitation to ...
0
votes
1
answer
174
views
PS script to fetch the list non-compliance resource list with respect to policy from multiple subscriptions
I am trying to fetch a list of non-compliant resources via email for a particular policy across multiple subscriptions. However, I'm currently unable to achieve this. Here's what I've done so far:
...
0
votes
2
answers
307
views
To enable Change Tracking for Azure VM using any Automation?
I have a requirement to monitor all automatic Windows services from Azure VMs using Azure Monitor. The best solution is to enable 'Change Tracking' from the VM's blade, which allows us to query the ...
-1
votes
1
answer
70
views
Update VCore by database in power shell
best regards!
I've this code in powersheel in Runbook from Azure.
Connect-AzAccount -Identity
Get-AzSubscription
Select-AzSubscription -SubscriptionId "xxxxxxxxxxxxxx"
# Definir variáveis
$...
0
votes
1
answer
916
views
Automation Account Importing PowerShell Module Issue
I am having an issue with importing PowerShell modules into a runbook in an automation account. It's a simple script to look at Exchange groups and email a list of matching groups out. It falls down ...
0
votes
1
answer
68
views
MSgraph cannot find string in attachment value using Azure Automation [closed]
So I have a automation that fetches attachments in from Outlook mails and does some conversion on a Virtual Machine.
We recently renewed our MSgraph secret, and since then our code has stopped working ...
0
votes
1
answer
189
views
Need advice to convert XEL file (Extended events file) into XML via Azure automation Runbook using Powershell
I need some advice to convert the XEL file to XML. I am executing a PowerShell script in Azure Automation runbook in Azure portal to store the XEL file from BLOB storage to my local machine, ...
0
votes
1
answer
817
views
Azure Automation Account using a private endpoint experiencing issues communicating with Hybrid Workers
I have an Azure Automation account that uses Hybrid Workers to run PowerShell runbooks. Everything was working perfectly fine until I added a private endpoint to my Automation Account. Since then, my ...
1
vote
1
answer
364
views
Automation Account Script to delete Stale Devices
I am trying to create a runbook in my Automation Account which deletes all stale devices (inactive for >= 180 days) from Entra.
I have an App Registration with the correct API permissions already ...
0
votes
1
answer
169
views
RE: ARM template for deploying a workbook template to Microsoft Sentinel
I am attempting to deploy an ARM Template (execution using PowerShell) for any Analytic Rule to a Microsoft Sentinel instance.
I have been following this link: https://learn.microsoft.com/en-us/azure/...
0
votes
1
answer
275
views
A worker VM in more than one azure automation account hybrid worker group?
I've seen posts and documentation saying that the node to hybrid worker group relationship is one-to-one, but I've managed one-to-two. I actually didn't know about the one-to-one limitation and ...
0
votes
1
answer
131
views
Key vaults keys, secrets, and certificates PS script
I am trying to list all the keys, secrets, and certificates that are either expired or going to be expire in 20 days from multiple key vaults from multiple subscriptions but receiving the PS script ...
0
votes
1
answer
456
views
Trying to list all the certificates and secrets that are expired or going to expire in all applications
Working on obtaining the list of all the secrets and certificates that have either expired or are about to expire across all applications in Azure. However, I'm getting the error message below in the ...
0
votes
1
answer
396
views
Need to set up the e-mail notification for PowerShell runbook to send its output periodically/daily to the mail
I'm trying to get the list of all secrets and keys in the key vault that are expired and are going to expire in 7 days to my mail.
I have created the automation account and published the runbook with ...
-1
votes
1
answer
114
views
Multiple recurring 'Get Azure SQL Database(s) List' operations in 1 Azure Runbook
I have 1 runbook automatically scaling my Azure SQL Database. I noticed the operation is taking longer and longer taking over 45 minutes, while scaling manually takes only a few minutes.
Upon ...
0
votes
0
answers
124
views
Azure Automation Scheduled Jobs Silently Failing
Last week all of the scheduled jobs in one of our Azure Automation Accounts stopped working, then the next day started working again.
When the scheduled jobs stopped working:
there was no error ...
0
votes
1
answer
213
views
Azure Modules Fail to Import in Azure Automation Runbooks - Import-Module: Cannot access Azure\PSConfig.json
Import-Module: The process cannot access the file C:\Users\username\.Azure\PSConfig.json because it is being used by another process. At C:\Program Files\WindowsPowerShell\Modules\AZ.Accounts\2.8.0\Az....
0
votes
1
answer
410
views
Unable to retrieve key vault certificates in azure runbook
I am trying to access key vault certificates inside of Azure runbook, in a new Runtime environment experience. But for some reason, it is not allowing me to list the same.
This is the command that is ...
0
votes
1
answer
156
views
How to change from manual scaling to rule based scalling in azure?
Is there a way to update from manual scaling to rule based scaling using runbooks ?
I tried getting the json and running it but it didn't work, I gave permissions to my automation-account so it can ...
1
vote
1
answer
260
views
How can I add email recipients to a Graph API request programmatically?
I have some runbooks running in Azure Automation. I am adding email notifications to the runbooks. I've configured a simple runbook to send emails. Rather than adding an email "section" to ...
0
votes
1
answer
74
views
Check resource reference dependency in ARM template
I have the template below where I am checking whether database exist before assignment the principals, but I am still having problems with ADF doesn't exist, I assume this is happening in the ...
0
votes
1
answer
160
views
Check whether a resource exists in ARM template condition
I have an ARM template that I am trying to check whether a given database exist in a condition, if doesn't exist those principals will not be added, my template was validated but my deployment failed ...
0
votes
1
answer
361
views
Azure PowerShell Runbook to export Exchange Online configuration and store it in a Blob
I have an extremely specific requirement. I am developing a Customized desired state configuration system. The solution will use Azure Runbooks to export Exchange Online configurations and save it as ...
0
votes
1
answer
539
views
How can I automatically add a user to a Microsoft Teams group or channel using their email address without using the Graph API?
I'm working on an automation task where I need to automatically add a user to a Microsoft Teams group or channel as soon as I retrieve their email address. I want to write a script or use a tool to ...
0
votes
2
answers
158
views
how to create a scrip in Automation Account to fetch Quotas and Used Capacity for every fileshare
I have been trying to write script in Powershell for Azure Automation Aaccount.
It should be able to:
Get lists of Fileshares in Storage Account
Get total Quota used for every Fileshare
Get Used ...
0
votes
1
answer
232
views
Azure Automation - How to invoke functions or variables defined in other runbooks with runtime Powershell 7.2
What I have:
I have two simple runbooks, init and main in Powershell runtime 7.2
init runbook, which contains some simple variables and funtions
$var1 = "hello"
$var2 = "world"
...
0
votes
1
answer
129
views
Azure automation error on azure.storage.blob
from azure.storage.blob import BlobServiceClient, ContentSettings
ImportError: cannot import name 'BlobServiceClient' from 'azure.storage.blob'
In azure automation I deployed my code and test pane ...
1
vote
1
answer
245
views
Cannot get New-AzAutomationSchedule to set the correct timezone
I'm writing a PowerShell Runbook that will schedule the execution of a Runbook using the New-AzAutomationSchedule call. However, no matter how I enter the time, it still adjusts it to UTC.
Here's ...
1
vote
3
answers
769
views
How to get the Azure Automation Runbook Job Id in a Python Runbook?
Powershell Runbooks allow you to get the Job ID with $PSPrivateMetadata.JobId.Guid
How do we get it if the runbook is Python?
1
vote
1
answer
185
views
Powershell Script in Azure Automation issue
I have a logic app that is passing input parameters to a PowerShell Azure Automation job the job keeps failing. The input parameters are in this format:
The PowerShell script I have is as follows:
...
0
votes
1
answer
309
views
Azure Devops pipeline throwing error while running powershell script - The string is missing the terminator: "
I'm trying to register schedule for Azure automation runbook by using below PS command
Register-AzureRmAutomationScheduledRunbook -AutomationAccountName $automationAccount -ResourceGroupName $...
0
votes
1
answer
154
views
Azure Webapp kudu file access
I am trying to access Azure WebApp kudu files from the Azure automation account runbook.
The condition from Azure App services is, that it has to Deny all public IP access rule for the Advanced tool ...
0
votes
1
answer
210
views
How can I get the UPN of the person who is activating a EntraID Identity Governance Lifecycle Workflow?
I have written an offboarding Workflow for immediate terminations. The sequence of events is as follows:
Authorized HR user logs into EntraID Identity Governance Lifecycle Workflows and triggers the &...
1
vote
1
answer
153
views
Microsoft Flow Graph API Call to Assign License to New User
I am trying to use a Graph API call in a Flow that will assign a license when a new user is created. I am trying to build out the license assignment, and I am getting the error "error": { &...
0
votes
0
answers
69
views
Azure automation failed when starting stream analytics
I have set up an automation app to stop and start a stream analytics job, following a guide from this doc
I have tried the code, yet it is struggling to pull a value from the stopped log in azure ...