AZURE LogicApps: How to get the connection as runbook and use it for other runbooks

Damaschke, Michael 20 Reputation points
2025-02-26T11:55:03.58+00:00

Hello

I have created multiple Runbooks and I don't want to create always the same connection string include variables in each Runbook.

So I have tried to use Start-AzAutomationRunbook but it makes no sense as I need to use always a connection (Connect-AzAccount) for using Start-AzAutomationRunbook.

Is there a way to use a simple function call to make in each Runbook a connection?

I am using a LogicApp with multiple Runbooks.

It looks like that each Runbook is like a service request where I need to connect for each request.

Is that true, no way around, no workaround...?

Thanks in advance.

Cheers

Michael

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,830 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.