-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added additional logs to identify script errors in AzurePowerShellV4 #12167
Conversation
} | ||
Write-Host "## Stage 3: Running script Complete" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write these logs even in azurepowershell.ts file as it is for linux
|
||
Write-Host "## Initializing Azure" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Write "Initializing Az module"
try | ||
{ | ||
# Initialize Azure. | ||
Import-Module $PSScriptRoot\ps_modules\VstsAzureHelpers_ | ||
Initialize-AzModule -Endpoint $endpoint -azVersion $targetAzurePs | ||
|
||
Write-Host "## Initializing Azure Complete" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Az module initialization completed"
} | ||
finally { | ||
if (!$success) { | ||
Write-VstsTaskError "Initialize Azure failed: For troubleshooting, refer: $troubleshoot" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Initializing Az module failed. For troubleshooting, refer: $troubleshoot"
No description provided.