Share via

STDOUT in AZurePowershell

Support Testing 5 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

Windows for business | Windows Server | User experience | PowerShell

Your answer

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