Skip to content

Commit

Permalink
Fix ondemand test (Azure#19040)
Browse files Browse the repository at this point in the history
  • Loading branch information
yiliuTo authored Feb 8, 2021
1 parent affa051 commit 43924ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sdk/spring/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ stages:
displayName: 'Create On-demand test user'
PostSteps:
- powershell: |
az login --allow-no-subscriptions --tenant $(java-spring-aad-tenant-id-1) --service-principal -u $(java-spring-aad-service-principal-client-id) -p $(java-spring-aad-service-principal-client-secret)
az ad user delete --id "${{ parameters.AadOnDemandUserName }}"
az ad user create --user-principal-name "${{ parameters.AadOnDemandUserName }}" --display-name "${{ parameters.AadOnDemandUserDisplayName }}" --password "$(java-spring-aad-user-password-1)" --force-change-password-next-login false
az logout
condition: always()
displayName: 'Delete On-demand test user and create again'
- script: |
python --version
python -m pip install setuptools termcolor in_place
Expand Down

0 comments on commit 43924ca

Please sign in to comment.