dsccommunity / AzureDevOpsDsc

This module contains DSC resources for deployment and configuration of initially Azure DevOps Services and later Azure DevOps Server.
MIT License
3 stars 5 forks source link

AzDevOpsProject: Missing descriptive messages when run in verbose mode #19

Open johlju opened 3 years ago

johlju commented 3 years ago

Details of the scenario you tried and the problem that is occurring

When running the resource in verbose mode there are no descriptive messages what actions are taken by the resource. There are only a lot of non-descriptive api calls.

Verbose logs showing the problem

VERBOSE: [WIN-2TKBNCAMUG8]: LCM:  [ Start  Test     ]  [[AzDevOpsProject]Integration_Test_EnsureGitProjectAbsent1]
VERBOSE: [WIN-2TKBNCAMUG8]:                            [[AzDevOpsProject]Integration_Test_EnsureGitProjectAbsent1] GET 
https://dev.azure.com/azuredevopsdsc/_apis/projects?includeCapabilities=true&api-version=6.0 with 0-byte payload
VERBOSE: [WIN-2TKBNCAMUG8]:                            [[AzDevOpsProject]Integration_Test_EnsureGitProjectAbsent1] 
received 22-byte response of content type application/json; charset=utf-8; api-version=6.0
VERBOSE: [WIN-2TKBNCAMUG8]:                            [[AzDevOpsProject]Integration_Test_EnsureGitProjectAbsent1] 
DscActionRequired='None'
VERBOSE: [WIN-2TKBNCAMUG8]: LCM:  [ End    Test     ]  [[AzDevOpsProject]Integration_Test_EnsureGitProjectAbsent1]  in 
5.3240 seconds.

Suggested solution to the issue

The DSC configuration that is used to reproduce the issue (as detailed as possible)

AzDevOpsProject Integration_Test_EnsureGitProjectAbsent1
{
    ApiUri      = $Node.ApiUri
    Pat         = $Node.Pat
    ProjectName = 'TestGitProjectName'
    Ensure      = 'Absent'
}

Azure DevOps Server version the target node is running

Azure DevOps Services

VSTeam PowerShell modules present on the target node

n/a

The operating system the target node is running

Azure Pipelines - Microsoft Hosted Agent

Version and build of PowerShell the target node is running

n/a

Version of the DSC module that was used

Latest in main branch