- task: PowerShell@2
inputs:
targetType: 'filepath'
filePath: $(System.DefaultWorkingDirectory)/psscript.ps1
arguments: >
-ContainerName $(ContainerName
**-Url $(Url) + '&sub-key=' + $(SubscriptionKey)**
displayName: 'Uploading files'
-URL is not working
error | You must provide a value expression following the '+' operator.
Please try this:
jobs:
- job:
variables:
a: $[format('{0}"&"sub-key={1}', variables.Url, variables.SubscriptionKey)]
steps:
- task: PowerShell@2
inputs:
targetType: 'filepath'
filePath: $(System.DefaultWorkingDirectory)/psscript.ps1
arguments: >
-ContainerName $(ContainerName)
-Url $(a)
displayName: 'Uploading files'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With