dsccommunity / AzureDevOpsDsc

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

AzureDevOpsProject: AzureDevOps identifiying a project has been renamed when it hasn't been #23

Open SphenicPaul opened 3 years ago

SphenicPaul commented 3 years ago

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

As part of the AzDevOpsProject resource, integration tests, AzureDevOps is triggering emails stating...

The team project TestProjectName has been renamed to TestProjectName in the organization

... when the name has, infact, not been updated/amended.

Suspecting it's triggered by the AzDevOpsProject_EnsureProjectUpdated_Config, integration test/config (see links below).

Suggested solution to the issue

I suspect AzureDevOps is registering the update to the Project resource via the API as a change (even though the name has not changed) so it might be worth investigating if this email (and related false-positive, change to ProjectName) can be avoided by ommitting the ProjectName from the update/PUT/PATCH request.

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

The specific intergration test, configurations are:

Suspecting the change is triggered by the AzDevOpsProject_EnsureProjectUpdated_Config, integration test - This would be triggering a call to the AzureDevOps API to make a change to an existing project.

All of the integration test configurations are located here and the respective, integration tests are here