This commit is contained in:
fabiohaifa 2022-01-20 16:18:48 -03:00
Родитель b9f86bac38
Коммит 2d3d7c2357
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -189,7 +189,7 @@ function CreateAzDevOpsRepoEnviorment {
Write-Host "Creating enviorment on branch $Branch" -ForegroundColor Green
Write-Host "Project " $RepoConfiguration.AzureDevOpsProject -ForegroundColor Green
Write-Host "Organization " $RepoConfiguration.AzureDevOpsOrganizationURI
Write-Host "Organization " $RepoConfiguration.AzureDevOpsOrganization -ForegroundColor Green
$envBody = @{
name = $env
@ -199,7 +199,7 @@ function CreateAzDevOpsRepoEnviorment {
Set-Content -Path $infile -Value ($envBody | ConvertTo-Json)
az devops invoke `
--area distributedtask --resource environments `
--route-parameters project=$RepoConfiguration.AzureDevOpsProject --org $RepoConfiguration.AzureDevOpsOrganizationURI `
--route-parameters project=$RepoConfiguration.AzureDevOpsProject --org $RepoConfiguration.AzureDevOpsOrganization `
--http-method POST --in-file $infile `
--api-version "6.0-preview"
rm $infile -f