STDOUT in AZurePowershell

Support Testing 0 Reputation points
2025-02-21T12:30:42.58+00:00

Hi Team,

I am using the CData PowerShell connector in an Azure PowerShell runbook and attempting to generate logs with the -logfile "STDOUT://" option. However, I am unable to see any logs in the console. When I try the same configuration in PowerShell on my local machine, the logs appear in the console as expected.

Could you please assist me in figuring out how to generate logs within Azure PowerShell runbooks? Is this functionality supported? If so, please let me know the proper way to enable it.

Import the Salesforce module

Import-Module SalesforceCmdlets

Define Salesforce connection parameters

$user = "******@gmail.com"

$password = "****"

$securitytoken = "****"

$rtk="**"

$authscheme="Basic"

$logfile=""STDOUT://"

$verbosity="5"

$conn=Connect-Salesforce -User $user -Password $password -SecurityToken $securitytoken -RTK $rtk -AuthScheme $authscheme -logfile $logfile -Verbosity $verbosity

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

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.