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
5
votes
2 answers

Is it possible to edit an Azure Automation Schedule?

I have created a schedule for an Azure Automation Runbook, and linked the schedule to the Runbook. However I notice that one cannot edit the schedule, or even delete the schedule. I may be missing something. It seems one can just create Automation…
SamJolly
  • 6,347
  • 13
  • 59
  • 125
5
votes
1 answer

What's the right way to run startup task for Azure Virtual Machine

We are running node application in Azure Virtual Machine, meanwhile we also want to restart VM at some certain time with the help of Azure Automation (or via management portal). But how can we restart the node application after VM restarted? We…
4
votes
1 answer

privateDnsZoneGroups/default has invalid private dns zone ids

I'm getting the below error while creating the Azure Automation account. Can you please assist with this? error { "status": "Failed", "error": { "code": "DeploymentFailed", "message": "At least one resource deployment operation failed. Please list…
4
votes
2 answers

Is it possible to make azure elastic pool scale automatically?

As titled, I am trying to automatically scale my Azure databases. I have found a powershell workflow script for a single database, which works perfectly. I was wondering if it is possible to automatically scale my elastic pool. I have tried to…
4
votes
1 answer

Does Azure Analysis Services support service principal signon to SQL Azure

I have an Azure Analysis Services model reading data out of SQL Azure with this connection string: Data Source=MySQLAzureDB.database.windows.net; Initial Catalog=MyDB;Persist Security Info=true; User…
Nick.Mc
  • 18,304
  • 6
  • 61
  • 91
4
votes
1 answer

Azure CosmosDB AutoScaling Using Code/Automation

Is it possible to autoscale the CosmosDB throughput using either c# or Azure Automation? Please provide a sample example.
scorpion5211
  • 1,020
  • 2
  • 13
  • 33
4
votes
2 answers

How to hide console output from Select-AzureRmSubscription

Does anyone know how to hide output from command Select-AzureRmSubscription inside azure workbook which runs as powershell workflow Thanks
4
votes
0 answers

Invoke-RestMethod InFile from Blob Storage

I need to upload a file to a REST endpoint but my file resides in Blob Storage. My end goal is to run this from Azure Automation so I can have a consistent Runbook to add files to new Azure Web Apps. The challenge I am running into is that InFile…
Kode
  • 3,073
  • 18
  • 74
  • 140
4
votes
1 answer

Azure Automation: The term 'Set-AzureRmAppServicePlan' is not recognized

I am trying to scale up a service plan using Set-AzureRmAppServicePlan. I'm connecting fine, can list all the resources in the account but when calling the app plan method, it isn't found. What is being missed here? Code: $connectionName =…
lucuma
  • 18,247
  • 4
  • 66
  • 91
4
votes
1 answer

Get-AzureRmAppServicePlan and Get-AzureRmWebApp return exceptions in Runbook

I'd like to get all properties with Get-AzureRm* commands in Automation Runbook, but the followings return exception. How to code so as to work these commands properly? Returns exception Get-AzureRmAppServicePlan Get-AzureRmWebApp Returns…
grantaka36
  • 277
  • 1
  • 2
  • 14
4
votes
1 answer

How to launch Spark 2.0 from HDInsight using Azure Automation

I can't figure out how to launch HDInsight Spark 2.0 from an Azure Automation graphical runbook. I have an existing runbook that works with HDInsight using Spark 1.6. Normally, I would update the version string from 3.4 to 3.5, but it appears that…
aaronsteers
  • 2,277
  • 2
  • 21
  • 38
4
votes
1 answer

Object incompatibility between Get-AzureRmAutomationCredential & Add-AzureAccount -Credential

TL;DR How does one get an Azure Automation Credential and use it to work as that user within a runbook? Ideally, the answer should work within an Azure Automation Runbook with a workflow structure, targeting objects under the Resource Manager…
Steph Locke
  • 5,951
  • 4
  • 39
  • 77
4
votes
3 answers

ADAL and Azure automation

I'm trying to call Azure REST Api from Azure Automation so i need to acquire auth header. I use ADAL for it but in Azure Automation it fails with the following. So the question is - how to use ADAL in Azure Automation? ERROR: Exception calling…
Eosfor
  • 81
  • 9
4
votes
2 answers

Azure storage incremental copy by modified date

I need to copy one storage account into another. I have created a Runbook and schedule it to run daily. This is an incremental copy. What I am doing is list the blobs in source storage container Check the blobs in destination storage container If…
Sami
  • 3,926
  • 1
  • 29
  • 42
4
votes
1 answer

Cannot find the 'Connect-Azure' command

I have created a runbook to "Copy Files From Azure Storage to AzureVM". While testing i got the below exception stating that "Cannot find the 'Connect-Azure' command". Can any one from the other end, please look into this and help me out. Here is…
praveen gogula
  • 599
  • 3
  • 6
  • 22
1
2
3
60 61