@@ -349,17 +349,12 @@ jobs:
349
349
targetType : ' inline'
350
350
script : ' Install-Module -Name Az.Storage -RequiredVersion 1.11.0 -Scope CurrentUser -Force -AllowClobber'
351
351
352
- - task : AzureKeyVault@1
353
- inputs :
354
- # Note: This is actually a Service Connection in DevOps, not an Azure subscription name
355
- azureSubscription : ' Azure-Functions-Host-CI'
356
- keyVaultName : ' azure-functions-host-ci'
357
- secretsFilter : ' *'
358
- - task : PowerShell@2
352
+ - task : AzurePowerShell@5
359
353
displayName : ' Checkout secrets'
360
354
inputs :
361
- filePath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
362
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' '
355
+ azureSubscription : Azure-Functions-Host-CI
356
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
357
+ azurePowerShellVersion : ' LatestVersion'
363
358
- task : AzureKeyVault@1
364
359
inputs :
365
360
# Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -382,12 +377,14 @@ jobs:
382
377
AzureWebJobsEventHubReceiver : $(EventHub)
383
378
AzureWebJobsSecretStorageKeyVaultConnectionString : $(KeyVaultConnectionString)
384
379
AzureWebJobsSecretStorageKeyVaultName : $(KeyVaultName)
385
- - task : PowerShell@2
380
+ - task : AzurePowerShell@5
386
381
condition : always()
387
382
displayName : ' Checkin secrets'
388
383
inputs :
389
- filePath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
390
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
384
+ azureSubscription : Azure-Functions-Host-CI
385
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
386
+ ScriptArguments : ' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
387
+ azurePowerShellVersion : ' LatestVersion'
391
388
392
389
- job : RunIntegrationTests
393
390
pool :
@@ -425,11 +422,12 @@ jobs:
425
422
azureSubscription : ' Azure-Functions-Host-CI'
426
423
keyVaultName : ' azure-functions-host-ci'
427
424
secretsFilter : ' *'
428
- - task : PowerShell@2
425
+ - task : AzurePowerShell@5
429
426
displayName : ' Checkout secrets'
430
427
inputs :
431
- filePath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
432
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' '
428
+ azureSubscription : Azure-Functions-Host-CI
429
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
430
+ azurePowerShellVersion : ' LatestVersion'
433
431
- task : AzureKeyVault@1
434
432
inputs :
435
433
# Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -574,9 +572,11 @@ jobs:
574
572
arguments : ' --filter "Group=ReleaseTests" --no-build'
575
573
projects : |
576
574
**\WebJobs.Script.Tests.Integration.csproj
577
- - task : PowerShell@2
575
+ - task : AzurePowerShell@5
578
576
condition : always()
579
577
displayName : ' Checkin secrets'
580
578
inputs :
581
- filePath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
582
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
579
+ azureSubscription : Azure-Functions-Host-CI
580
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
581
+ ScriptArguments : ' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
582
+ azurePowerShellVersion : ' LatestVersion'
0 commit comments