Skip to content
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

Merged
merged 7 commits into from
Feb 4, 2020

Conversation

aksm-ms
Copy link
Contributor

@aksm-ms aksm-ms commented Jan 17, 2020

No description provided.

@aksm-ms aksm-ms requested a review from arjgupta January 17, 2020 06:38
@aksm-ms aksm-ms changed the title Added additional logs to identify script errors Added additional logs to identify script errors in AzurePowerShellV4 Jan 17, 2020
}
Write-Host "## Stage 3: Running script Complete"
Copy link
Contributor

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

@aksm-ms aksm-ms requested a review from 20shivangi February 3, 2020 09:00

Write-Host "## Initializing Azure"
Copy link
Contributor

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"
Copy link
Contributor

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"
Copy link
Contributor

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"

@aksm-ms aksm-ms requested a review from 20shivangi February 4, 2020 06:14
@aksm-ms aksm-ms merged commit 140ac55 into master Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants