From 4071a7552b3078d5029cf8bb408d2f4fe002411f Mon Sep 17 00:00:00 2001 From: fabiohaifa <61516935+fabiohaifa@users.noreply.github.com> Date: Thu, 20 Jan 2022 16:21:33 -0300 Subject: [PATCH] fix: add slash --- quickstart/scripts/modules/AzureDevOps.psm1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quickstart/scripts/modules/AzureDevOps.psm1 b/quickstart/scripts/modules/AzureDevOps.psm1 index 5e4ead4..ea5d3b6 100644 --- a/quickstart/scripts/modules/AzureDevOps.psm1 +++ b/quickstart/scripts/modules/AzureDevOps.psm1 @@ -187,9 +187,11 @@ function CreateAzDevOpsRepoEnviorment { [Argument]::AssertIsNotNull("RepoConfiguration", $RepoConfiguration) + $orgURI = $RepoConfiguration.AzureDevOpsOrganizationURI + "/" + Write-Host "Creating enviorment on branch $Branch" -ForegroundColor Green Write-Host "Project " $RepoConfiguration.AzureDevOpsProject -ForegroundColor Green - Write-Host "Organization " $RepoConfiguration.AzureDevOpsOrganization -ForegroundColor Green + Write-Host "Organization " $orgURI -ForegroundColor Green $envBody = @{ name = $env @@ -199,7 +201,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.AzureDevOpsOrganization ` + --route-parameters project=$RepoConfiguration.AzureDevOpsProject --org $orgURI ` --http-method POST --in-file $infile ` --api-version "6.0-preview" rm $infile -f