Forum Discussion
Medy51730
Feb 01, 2022Copper Contributor
Help scrt powershell Azure devops
Hi all. Sorry for the translation. I have a problem with a script (which was already working), I can't get my data, the script is used to reach Azure development services and returns an array, whic...
Jonathan_Allen
Feb 02, 2022Brass Contributor
This adapted sample
$Capacities += [PSCustomObject]@{
ProjectName = 'project' #$project.name
TeamName = 'team' #$team.name
SprintName = 'sprint' #$sprintteam.name
SprintStartDate = "{0:yyyy-MM-dd}"-f $startDate
}
$Capacities | ConvertTo-Json | Out-File -FilePath "$home\desktop\Capacities.json"
get-content "$home\desktop\Capacities.json"
gives this result
{
"ProjectName": "project",
"TeamName": "team",
"SprintName": "sprint",
"SprintStartDate": ""
}