Skip to content

Commit 8fce4e6

Browse files
Merge pull request #276435 from KimForss/main
Update the script
2 parents bbb533a + 92c6dbb commit 8fce4e6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/sap/automation/configure-devops.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Open PowerShell ISE and copy the following script and update the parameters to m
4444
az login --output none --only-show-errors --scope https://graph.microsoft.com//.default
4545
}
4646
else {
47-
az login --output none --tenant $ARM_TENANT_ID --only-show-errors --scope https://graph.microsoft.com//.default
47+
az login --output none --tenant $Env:ARM_TENANT_ID --only-show-errors --scope https://graph.microsoft.com//.default
4848
}
4949
5050
az config set extension.use_dynamic_install=yes_without_prompt --only-show-errors
@@ -55,7 +55,7 @@ Open PowerShell ISE and copy the following script and update the parameters to m
5555
if ($differentTenant -eq 'y') {
5656
$env:AZURE_DEVOPS_EXT_PAT = Read-Host "Please enter your Personal Access Token (PAT) with permissions to add new projects, manage agent pools to the Azure DevOps organization $Env:ADO_Organization"
5757
try {
58-
az devops login --organization $Env:ADO_Organization
58+
az devops project list
5959
}
6060
catch {
6161
$_
@@ -171,14 +171,16 @@ Open PowerShell ISE and copy the following script and update the parameters to m
171171
New-Item -Path $sdaf_path -Type Directory
172172
}
173173
}
174+
175+
$branchName = "main"
174176
175177
Set-Location -Path $sdaf_path
176178
177179
if ( Test-Path "New-SDAFDevopsWorkloadZone.ps1") {
178180
remove-item .\New-SDAFDevopsWorkloadZone.ps1
179181
}
180182
181-
Invoke-WebRequest -Uri https://raw.githubusercontent.com/Azure/sap-automation/main/deploy/scripts/New-SDAFDevopsWorkloadZone.ps1 -OutFile .\New-SDAFDevopsWorkloadZone.ps1 ; .\New-SDAFDevopsWorkloadZone.ps1
183+
Invoke-WebRequest -Uri https://raw.githubusercontent.com/Azure/sap-automation/$branchName/deploy/scripts/New-SDAFDevopsWorkloadZone.ps1 -OutFile .\New-SDAFDevopsWorkloadZone.ps1 ; .\New-SDAFDevopsWorkloadZone.ps1
182184
183185
```
184186

0 commit comments

Comments
 (0)