Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Commit 4697aa1

Browse files
authored
Get Azure token to run integration tests during release
Follow-up for #59
1 parent fa0e585 commit 4697aa1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

build/nuget-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ stages:
6262
inputs:
6363
artifact: 'Build'
6464
path: '$(Build.SourcesDirectory)'
65+
- task: AzureCLI@2
66+
displayName: 'Get Token for Azure Management API'
67+
inputs:
68+
azureSubscription: 'Invictus - Azure'
69+
scriptType: pscore
70+
scriptLocation: inlineScript
71+
inlineScript: |
72+
$token= & az account get-access-token --resource="https://management.azure.com/" --query accessToken
73+
Write-Host "##vso[task.setvariable variable=Azure.ManagementApi.AccessToken]$token"
6574
- template: test/run-integration-tests.yml@templates
6675
parameters:
6776
dotnetSdkVersion: '$(DotNet.Sdk.Version)'

0 commit comments

Comments
 (0)