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
-1
votes
1 answer

Webhook Data Input Parameter Syntax in Azure's Runbook

I have 5 parameters {[string]$VMName, [string]$ResourceGroupName, [string]$UserName, [string]$Paswd, [string]$UserDirectory, [string]$RequestType} in my runbook code what will be Webhookdata input parameter(json) syntax in Azure ?
-1
votes
1 answer

In Azure DevOps, I'm trying to create a pipeline in order to create a test plan and upload the test case stored in csv file to the test plan

How to automate the creation and upload of test cases to test plans using Azure DevOps pipelines Steps: create a pipeline store excel sheet containing test case create a test plan upload test case from excel sheet to test plan
-1
votes
1 answer

How to execute a DMV query in SSAS through a powershell runbook from Azure Automation?

I am trying to open a connection with a ssas server and execute a dmv query in order to extract table metadata, through a powershell runbook from an Azure Automation Account. I have already written and tested a powershell script that seems to work…
-1
votes
2 answers

New-AzureADApplicationKeyCredential throwing Authorization_RequestDenied

while executing New-AzureADApplicationKeyCredential from Azure Automation runbook its throwing error : Error occurred while executing SetApplication Code: Authorization_RequestDenied Message: Insufficient privileges to complete the operation.…
-1
votes
1 answer

downloading file from a SFTP server using Azure Runbook Powershell

How can I install Posh-SSH in a Runbook Powershell? I need to download files from a SFTP server to Azure Disk using a Runbook Powershll. However there is no Powershell mothod for this and I need to install Posh-ssh module. When I execute…
user217648
  • 3,338
  • 9
  • 37
  • 61
-1
votes
1 answer

How much Azure Automation account will cost if we use for few minutes daily?

We are thinking to enable Azure automation account. We have 2 VMs and account will be used only to start(at 9AM) and stop(at 6PM) two VMs daily. Assuming we have 2VMs, can you please estimate monthly cost for this automation account? I checked…
Koushik Roy
  • 6,868
  • 2
  • 12
  • 33
-1
votes
1 answer

Azure Automation | Runbook | Powershell | Get-AzRoleAssignment | Microsoft.Rest.Azure.CloudException

I have an Automation account and I have set up the Run-As-Account for non-classic resources. In my automation Account I have imported Az.Resources, Az.Account, Az.Storage and Az.KeyVault. I have a script that does not work under the Automation…
GettingItDone
  • 523
  • 8
  • 26
-1
votes
1 answer

Azure Start/Stop VMs during off-hours Solution - Selecting VMs by Tags

I've been using the Start/Stop VMs during off-hours Solution for a while now and I wanted to know if there's a way to re-select affected VMs by a tag and not by Resource Group, maybe throughout recreation of the Solution even. I tried looking that…
teamdever
  • 309
  • 6
  • 21
-1
votes
1 answer

Is there a Way to stop an Azure virtual Machine after two hours?

I already have written a PowerShell Script, which starts an Azure Virtual Machine over a POST request to Azure Automation. For cost reasons, those Machines should automatically stop after two hours. Is there a Way/Function to do this easily?
-1
votes
1 answer

Use Azure Runbook to upload files from local machine or network drive to Azure file share or blob storage

So I am trying to create a PowerShell runbook to automate the upload of files from local machine and network drives to an Azure storage account. I have tried doing this with Set-AzureStorageFileContent however get the error that the directory does…
-1
votes
1 answer

Run SSH commands on Azure Linux VM via Azure Automation

I'm trying to use azure automation to run SSH commands on a Linux VM on Azure but failing to establish a connection. I've tried a couple of SSH modules. Error is: GraphTrace:{ Activity:"New-SshSession", Event:"ActivityOutput", …
tomridges
  • 47
  • 6
-1
votes
2 answers

Unable to connect to local machine FTP server from Azure Automation Powershell script

I am new to FTP and Powershell. I have setup an FTP server on my local machine as mentioned : here .. I'm trying to upload files to it from a Powershell script and I have succeeded from my local machine. But when I try to run the script from Azure…
Payal
  • 73
  • 2
  • 13
-1
votes
1 answer

Powershell Runbook - The term 'Get-AzureRMWebAppSlot' is not recognized as the name of a cmdlet

I'm trying to switch connection strings of a website to perform DB Failover, as part of HighAvailability. Please suggest if there are any suitable workarounds for the current requirement. However, the same script which ran on my local machine is not…
NikhilGoud
  • 574
  • 1
  • 5
  • 21
-1
votes
1 answer

Azure DSC error on initial sync generating mof

I have a custom DSC module which is class based. During the initial sync process the target machine tried to generate a MOF in C:\Windows\System32\dsc which results in an error - this causes the initial sync to report as failed, even though all the…
Richard Hauer
  • 1,298
  • 9
  • 22
-1
votes
1 answer

HTTP Post request from a ASP.NET button

I'm trying to call an Azure Automation Runbook from a simple ASP.NET website, to call this runbook I have to make a simple HTTP POST from my website. My idea is to create a simple button that onclick sends this HTTP request. How can I do this?
1 2 3
60
61