azure-automation

Does Azure Analysis Services support service principal signon to SQL Azure

痞子三分冷 提交于 2019-12-19 09:37:45
问题 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 ID=MyUser;Password=MyPWD; Encrypt=True;Authentication=Sql Password This uses a SQL User to connect to SQL Azure. This means I need to define user/password in two seperate places: in SQL Azure as well as in this connection string. I would like to use a service principal instead rather than a SQL

Use Automation RunAs service principal to connect to Azure Analysis Services and process

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-18 09:28:28
问题 TL;DR In summary the steps are: Use the correct code (the last code in this post) Manually add your app id in SSMS as either a server administrator or a database administrator and then you can process an Azure Analysis Services cube from an Azure Automation Account without needing to create another seperate service account Actual Question: I am trying to process an Azure Analysis Services cube using the Azure Automation RunAs Service Principal. This is run within an Azure automation account

New-PSSession in an Azure-runbook (ARM)

雨燕双飞 提交于 2019-12-14 03:54:17
问题 For an Azure VM in the classic portal (ASM) I was able to obtain the required credentials with Get-AutomationPSCredential and the -ConnectionURI with Connect-AzureVM.ps1. With these two parameters I was able to successfully execute a New-PSSession in an Azure-runbook. Q What am I supposed to do to open a PS-Session in an Azure-runbook to an Azure-VM (ARM)? Update command in runbook (ARM) $vmSession = New-PSSession -ConnectionUri 'https://xxx.yyy.cloudapp.azure.com:5985' -Credential $creds

Azure Automation Graphical Runbook - Can't Execute other Runbooks in Automation Account as distinct canvas Activities?

こ雲淡風輕ζ 提交于 2019-12-12 06:42:29
问题 The graphical editor UI appears to allow adding Workflow Runbooks (only; Native PS do not appear), however, this breaks the GraphRunbook definition/execution. When I try to either Test or Publish the runbook, I receive the error in the image. (Also strange, this error message has been rendering in a combination of Spanish for the first part, and English for the second half.) Are other runbooks in the Automation Account technically not supported.. yet? testtwo code: workflow testtwo {

How to execute PowerShell script as Azure Automation Runbook from InlineScript inside PSWorkflow runbook?

为君一笑 提交于 2019-12-12 05:48:19
问题 In a PowerShell Workflow activity, I can call a native PowerShell script using InlineScript: workflow test { InlineScript { .\script.ps1 } } But in Azure Automation, the dot-path (at least in my tests) was returning c:\windows\system32 , and the script-as-runbook in Azure Automation did not exist there (or rather, it failed to execute because it could not find the script). Is it possible to execute a native PS runbook stored in AAuto like this? If so, how do I specify the path to the file? Is

Azure Automation Powershell runbook silently fails to LoadAssembly

浪子不回头ぞ 提交于 2019-12-12 03:34:18
问题 I'm new to Powershell Runbook, so forgive me if I'm missing something obvious. I'm trying to log an Application Insights request from my script, but can't even get the DLL to load, though I've seen other code out there that does something very similar. NOTE that this is a Powershell Runbook, not a Powershell Workflow Runbook. Here's my code: Write-Output "Starting" $assemblyPath = "C:\Modules\Global\Azure\Compute\Microsoft.ApplicationInsights.dll" dir $assemblyPath Write-Output "1" [System

Azure Automation: Calling a URL

我们两清 提交于 2019-12-11 23:53:27
问题 I am new to Azure Automation. I want to call a URL and get its HTML once every weekday morning. This is what I have written so far. workflow Wakeup-Url { Param ( [parameter(Mandatory=$true)] [String] $Url ) $day = (Get-Date).DayOfWeek if ($day -eq 'Saturday' -or $day -eq 'Sunday'){ exit } $output = "" InlineScript {"$Using:output = (New-Object System.Net.WebClient).DownloadString(`"$Using:Url`");"} write-output $output } Its not giving me the HTML in the output when I test the runbook.

Azure Automation: Parse WEBHOOKDATA with a python runbook

送分小仙女□ 提交于 2019-12-11 18:46:27
问题 In azure automation, when you define a webhook for a runbook the headers of the request are passed to the runbook via the WEBHOOKDATA input parameter. For python workbooks, the parameter is passed as first argument to the script. For example, here is a runbook: import json import sys print(sys.argv) if len(sys.argv) > 1 : test = json.loads(sys.argv[1]) print(test) Here is the input parameter WEBHOOKDATA {"WebhookName":"python-Test-Arguments","RequestBody":"","RequestHeader":{"Cache-Control":

Azure runbook for docker container

我是研究僧i 提交于 2019-12-11 18:43:22
问题 writing azure runbook for pushing docker image to acr. When i am running script i am getting error docker is not recognized as internal or external command. Simplified runbook as below. Import-Module hosts Import-Module docker Invoke-dockercommand -v docker -v When i run above nunbook i am getting below error. Docker.exe : The term 'Docker.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,

Runbook test pane is not showing Write-Output

邮差的信 提交于 2019-12-11 16:22:38
问题 I'm brand new to automation, and pretty new to Powershell as well, so I'm hoping this is a simple fix. :) I'm trying to get some code to run. And for all I know, it does run, but the test pane doesn't show anything. Based on this thread: Azure powershell runbook don't show any output, I did try republishing the code and clearing my browser cache, but that didn't help in my case, so I'm thinking there's an issue with the code? Here's my (genericized) code): workflow DB_DailyTasks { Write