@@ -313,17 +313,12 @@ jobs:
313
313
targetType : ' inline'
314
314
script : ' Install-Module -Name Az.Storage -RequiredVersion 1.11.0 -Scope CurrentUser -Force -AllowClobber'
315
315
316
- - task : AzureKeyVault@1
317
- inputs :
318
- # Note: This is actually a Service Connection in DevOps, not an Azure subscription name
319
- azureSubscription : ' Azure-Functions-Host-CI'
320
- keyVaultName : ' azure-functions-host-ci'
321
- secretsFilter : ' *'
322
- - task : PowerShell@2
316
+ - task : AzurePowerShell@5
323
317
displayName : ' Checkout secrets'
324
318
inputs :
325
- filePath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
326
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' '
319
+ azureSubscription : Azure-Functions-Host-CI
320
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
321
+ azurePowerShellVersion : ' LatestVersion'
327
322
- task : AzureKeyVault@1
328
323
inputs :
329
324
# Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -348,12 +343,14 @@ jobs:
348
343
AzureWebJobsSecretStorageKeyVaultTenantId : $(AzureTenantId)
349
344
AzureWebJobsSecretStorageKeyVaultClientId : $(AzureClientId)
350
345
AzureWebJobsSecretStorageKeyVaultClientSecret : $(AzureClientSecret)
351
- - task : PowerShell@2
346
+ - task : AzurePowerShell@5
352
347
condition : always()
353
348
displayName : ' Checkin secrets'
354
349
inputs :
355
- filePath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
356
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
350
+ azureSubscription : Azure-Functions-Host-CI
351
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
352
+ arguments : ' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
353
+ azurePowerShellVersion : ' LatestVersion'
357
354
358
355
- job : RunIntegrationTests
359
356
pool :
@@ -385,11 +382,12 @@ jobs:
385
382
azureSubscription : ' Azure-Functions-Host-CI'
386
383
keyVaultName : ' azure-functions-host-ci'
387
384
secretsFilter : ' *'
388
- - task : PowerShell@2
385
+ - task : AzurePowerShell@5
389
386
displayName : ' Checkout secrets'
390
387
inputs :
391
- filePath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
392
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' '
388
+ azureSubscription : Azure-Functions-Host-CI
389
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkout-secrets.ps1'
390
+ azurePowerShellVersion : ' LatestVersion'
393
391
- task : AzureKeyVault@1
394
392
inputs :
395
393
# Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -535,9 +533,11 @@ jobs:
535
533
arguments : ' --filter "Group=ReleaseTests" --no-build'
536
534
projects : |
537
535
**\WebJobs.Script.Tests.Integration.csproj
538
- - task : PowerShell@2
536
+ - task : AzurePowerShell@5
539
537
condition : always()
540
538
displayName : ' Checkin secrets'
541
539
inputs :
542
- filePath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
543
- arguments : ' -connectionString '' $(Storage-azurefunctionshostci0)'' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
540
+ azureSubscription : Azure-Functions-Host-CI
541
+ ScriptPath : ' $(Build.Repository.LocalPath)\build\checkin-secrets.ps1'
542
+ arguments : ' -leaseBlob $(LeaseBlob) -leaseToken $(LeaseToken)'
543
+ azurePowerShellVersion : ' LatestVersion'
0 commit comments