Az.Resourcegraph module not working. Couldn't be loaded while uding Search-AzGraph in runbook
Getting below error in Runbook while running Search-AzGraph query. Although the Az.ResourceGraph module is imported and uploaded both options tried but still runbook is failing. Module is availabe
One VM as hosts for multiple automation accounts hybrid workers
Can a one Azure VM be a hosts for two or more extension based hybrid workers, each for different automation account? I have selected same VM as hybrid worker for two different Automation Accounts, and one is working fine, the other one shows that in…

Creating AKS from ARM template
I have created AKS manually, I saved the template below. I will delete this AKS in a while, but I need to create after few days. so I just want to use template to avoid manual process. I think only need to change the AKS name, thats it. { …
Creating Resource Group, ACR and Keyvault using automation
I have Resource group created, and in that i create ACR, VNet, and Key value, and do this for every 2 days and use it for few days and then I will delete. so when I am trying to create next time, I dont want create manually every time, I want to use…
Using Automation Account I want to delete unattached Azure Managed Disks across all Azure subscriptions.
Can anyone help me with this? I need to delete all unattached Azure Managed Disks across all Azure subscriptions.
Unable to delete automation account
We have an automation account that we cant delete because it says "Automation account is linked to a workspace". But when we go to "unlink workspace" this fails with "failed to delete workspace because couldnt not be found".…

How to enforce IaC in production? are there some references of custom policies that accepts only deployments made by service principles?
I am learning about enforcing IaC in our cloud environments and I am looking for some best practices and references on this.

Unable to See Links Between Azure Resources in Resource Visualizer After Deploying with Bicep
I'm deploying a stack using Bicep and GitHub Actions. The deployment process involves using the azure/bicep-deploy@v2 GitHub Action with whatif first and then the actual deployment. However, after the deployment, I am unable to see the links between…

Not able to create Resources using ARM template
I am using following ARM template, to create RG , ACR and Key vault but failing . and when I execute below command coming up with following error PS I:\ARMTemplates\DevOps> az deployment group create --resource-group testrg --template-file…

Problems uploading certain python packages to Automation Account
Certain python packages fail to upload to an Automation Account. I am trying to upload wheels for: azure-mgmt-authorizationn version 3.0.0 or 4.0.0 For 4.0.0, I checked the setup.py file and found these dependencies: install_requires=[ …
Azure Automation Account for Powershell Runbook - Insufficient Privileges to Run Operation
I have an Azure Automation Account that is running some simple powershell code via a runbook. I have granted rights to the subscription for this account. When I call any of these commands I get an insufficient privileges error Connect-AzAccount…
Azure VM Reboot Schedule
Is it possible to schedule an Azure VM to reboot on a specific day of the month that is recurring based on which day of the week it is? Or do they have to be scheduled Example: I'd like my server to reboot on the 3rd Tuesday of each month,…
Using Azure CLI to run a Bicep file
I am using powerhell to run a Bicep file. I already have the Azure CLI installed on my computer and am logged in to my Azure account. However, when I try to run the following command, I get an error. I need help with this. Thank you very much. PS…
Content-Type Header not being sent from azure workbook arm action
I am trying to create a runbook job using an ARM action in azure workbook, I have included Content-Type Header, but the REST API call fails, please refer the below images Error Content-Type Header
Unable to connect to Microsoftgraph across tenants using clinet secret in Azure automation runbook
I'm trying to connect to microsoft graph using a client secret in an azure automation runbook,but I'm encountering several errors. I am using power shell script, I've tried diiferent ways to login. Below are the different errors: 1)Invalid JWT Access…
Best way to import the existing infrastructure on Azure to Terraform
We have a huge azure infrastructure of nearly 6000 components in place, which were created through az cli / powershell. We want to import all of this in terraform and start using terraform for automation. What should be the best way to do that?
Azure automation account Hybrid Worker - failed to connect to MSI
Hi, I want to convert my PS runbook to Azure CLI and it has to run on a Hybrid Worker. The PS login is like this $AzureContext = (Connect-AzAccount -Identity).context Now, with Azure CLI, i suppose it's the following... $AzureContextcli = (az login…
No Automation account created, and showing error of the only one automation account is allowed in the subscription
No Automation account created, and showing error of the only one automation account is allowed in the subscription
How to setup automation task and alerts
Hi all, I currently have an app service plan with 3 instances and a few web apps running on it. I want to setup a process so that if an instance of a web app becomes unhealthy or degraded, that instance is restarted. After restarting this instance, it…
Automation Account
I have created my automation account where I created a runbook now I am unable to find it and in monitor log there is no data of deletion of automation book. Can someone help me with this?