Questions tagged [azure-automation]

Azure Automation handles the creation, deployment, monitoring, and maintenance of Azure resources and third-party applications. It uses uses Windows PowerShell scripts or Azure Runbooks to achieve this.

In Azure Automation, Windows PowerShell scripts or Azure Runbooks can handle the creation, deployment, monitoring, and maintenance of Azure resources and third-party applications. These scripts can run in the cloud, on-premises, or on Azure/AWS/Google VMs.

908 questions
4
votes
1 answer

Failed to get credential with name [somename.onmicrosoft.com] Exiting runbook due to error?

Here I'm working with Azure Automation and i'm trying to schedule the auto start and auto stop of Virtual Machines.I have taken a runbook "Scheduled Virtual Machine ShutDown/StartUp" from the gallery and created a runbook. when i tried to test it,…
4
votes
1 answer

Invoke-WebRequest not working in Azure Automation

Invoke-WebRequest is not working in Azure. I have tested the same code in Powershell ISE and it works. Here is the error: 4/8/2015 9:24:14 AM, Error: Microsoft.PowerShell.Utility\Write-Error : aa00-csmo-t2 - Could not download…
David Klempfner
  • 8,700
  • 20
  • 73
  • 153
3
votes
0 answers

pass parameters to powershell script from azure automation runbook webhook

I'm trying to execute an azure automation powershell runbook using the webhook. But, not sure how to pass the parameters to the powershell script. PoSh to call webhook $webhook =…
pbj
  • 663
  • 1
  • 8
  • 19
3
votes
1 answer

Get-AzRoleAssignment throws Microsoft.Rest.Azure.CloudException in Azure Runbook

I am using runbook in Azure Automation Account. In this runbook, i use "run as account" which has Owner rights on the subscription. When i execute the command Get-AzRoleAssignment, i get: Get-AzRoleAssignment : Exception of type…
MoonHorse
  • 1,966
  • 2
  • 24
  • 46
3
votes
2 answers

How to import automatically Az Powershell modules in azure automation account?

I am trying to install az powershell modules from my automation runbook with powershell script. But i am failing to do that. I have tried the solution in a similar topic which is here but it didn't work for me. The code is below: $AAccName =…
3
votes
3 answers

Auto scale on azure app service command throwing ["UnsupportedMetric"] error

Following az-cli command not supporting metric for auto-scaling instances on azure app services. # Create cpu autoscale rule az monitor autoscale rule create --resource-group $COMMON_RESOURCE_GROUP_NAME \ --subscription $SUBSCRIPTION_ID \ …
3
votes
2 answers

Invoke-ASCmd : Authentication failed: User ID and Password are required when user interface is not available

I am trying to refresh credentials of an (already)deployed Tabular Model via CICD using Azure DevOps. Making use of Invoke-ASCmd in PowerShell to refresh the credentials. The script works fine from local when I provide the Tenant ID, App ID and the…
3
votes
1 answer

Get-AzureBlobContent throwing error when run from Azure Automation account

I am receiving a failure while trying to download blob (JSON file) from Azure storage account from my Azure Automation account. It looks like an authorization issue. This works on my local laptop, but does not work on Azure Automation Account. Does…
3
votes
1 answer

Trigger next step in data factory after Tabular model refresh is complete

I have setup an Azure automation account and Web hook to process my analysis services database. I am calling that using Web activity (POST method) in Azure Data Factory to trigger the cube refresh. Web activity method is working fine but it returns…
3
votes
3 answers

Azure Automation Runbook unable to parse the webhookdata as a JSON object

I am badly struck by this problem. I request you to answer or give a hint. I am running out of options. I am calling an azure runbook upon high CPU utilization via a WebHook. My problem is inside runbook data is not getting decoded properly. For…
3
votes
1 answer

Azure Portal Custom Tiles - Markdown tile

Is it possible to show custom information in azure dashboards? I was searching on how to add custom content in azure dashboards but did not find anything. The only thing close was the markdown tile which allows html to be displayed.
Dash
  • 401
  • 5
  • 14
3
votes
3 answers

Select-AzureRmSubscription : Please provide a valid tenant or a valid subscription

I have created the Powershell Runbook, and added all the required details and valid values. Still I am facing the error for Select-AzureRmSubscription command. The error I am getting all the time is Select-AzureRmSubscription : Please provide a…
3
votes
3 answers

How to get list of users who are having owner access for a azure subscription using python

I am trying to get the list of users who are having owner access for a subscription. I tried checking for python azure sdk. But am not getting any api which does this functionality. Subscription list api is available but it is not providing details…
3
votes
2 answers

Create Azure Automation Start/Stop solution through Terraform

I'm trying to set up machines to be automatically start/stopped using the newish Azure Automation add-in (https://learn.microsoft.com/en-us/azure/automation/automation-solution-vm-management) with this being set up by Terraform. I can create the…
Stu
  • 2,426
  • 2
  • 26
  • 42
3
votes
0 answers

Azure Update Management missing updates

I have started to use Azure Update Management, but I am finding that it is missing updates, which show up when I go into the VM I am running it against, then to Windows Updates. For Example, in Azure Update Management, for VM1 I can see the…
Jeffrey
  • 2,095
  • 3
  • 20
  • 36
1 2
3
60 61