@@ -349,17 +349,12 @@ jobs:
349349 targetType : ' inline'
350350 script : ' Install-Module -Name Az.Storage -RequiredVersion 1.11.0 -Scope CurrentUser -Force -AllowClobber'
351351
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
359353 displayName : ' Checkout secrets'
360354 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'
363358 - task : AzureKeyVault@1
364359 inputs :
365360 # Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -382,12 +377,14 @@ jobs:
382377 AzureWebJobsEventHubReceiver : $(EventHub)
383378 AzureWebJobsSecretStorageKeyVaultConnectionString : $(KeyVaultConnectionString)
384379 AzureWebJobsSecretStorageKeyVaultName : $(KeyVaultName)
385- - task : PowerShell@2
380+ - task : AzurePowerShell@5
386381 condition : always()
387382 displayName : ' Checkin secrets'
388383 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'
391388
392389- job : RunIntegrationTests
393390 pool :
@@ -425,11 +422,12 @@ jobs:
425422 azureSubscription : ' Azure-Functions-Host-CI'
426423 keyVaultName : ' azure-functions-host-ci'
427424 secretsFilter : ' *'
428- - task : PowerShell@2
425+ - task : AzurePowerShell@5
429426 displayName : ' Checkout secrets'
430427 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'
433431 - task : AzureKeyVault@1
434432 inputs :
435433 # Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -574,9 +572,11 @@ jobs:
574572 arguments : ' --filter "Group=ReleaseTests" --no-build'
575573 projects : |
576574 **\WebJobs.Script.Tests.Integration.csproj
577- - task : PowerShell@2
575+ - task : AzurePowerShell@5
578576 condition : always()
579577 displayName : ' Checkin secrets'
580578 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