@@ -313,17 +313,12 @@ jobs:
313313 targetType : ' inline'
314314 script : ' Install-Module -Name Az.Storage -RequiredVersion 1.11.0 -Scope CurrentUser -Force -AllowClobber'
315315
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
323317 displayName : ' Checkout secrets'
324318 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'
327322 - task : AzureKeyVault@1
328323 inputs :
329324 # Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -348,12 +343,14 @@ jobs:
348343 AzureWebJobsSecretStorageKeyVaultTenantId : $(AzureTenantId)
349344 AzureWebJobsSecretStorageKeyVaultClientId : $(AzureClientId)
350345 AzureWebJobsSecretStorageKeyVaultClientSecret : $(AzureClientSecret)
351- - task : PowerShell@2
346+ - task : AzurePowerShell@5
352347 condition : always()
353348 displayName : ' Checkin secrets'
354349 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'
357354
358355- job : RunIntegrationTests
359356 pool :
@@ -385,11 +382,12 @@ jobs:
385382 azureSubscription : ' Azure-Functions-Host-CI'
386383 keyVaultName : ' azure-functions-host-ci'
387384 secretsFilter : ' *'
388- - task : PowerShell@2
385+ - task : AzurePowerShell@5
389386 displayName : ' Checkout secrets'
390387 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'
393391 - task : AzureKeyVault@1
394392 inputs :
395393 # Note: This is actually a Service Connection in DevOps, not an Azure subscription name
@@ -535,9 +533,11 @@ jobs:
535533 arguments : ' --filter "Group=ReleaseTests" --no-build'
536534 projects : |
537535 **\WebJobs.Script.Tests.Integration.csproj
538- - task : PowerShell@2
536+ - task : AzurePowerShell@5
539537 condition : always()
540538 displayName : ' Checkin secrets'
541539 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