Open
Description
Task name
AzureResourceGroupDeployment@2
Describe your feature request here
So, as the title suggests I want to be able to define something like this:
- task: AzureResourceGroupDeployment@2
inputs:
azureSubscription: someSubscription
action: someAction
resourceGroupName: someResourceGroupName
templateLocation: someTemplateLocation
deploymentMode: someDeploymentmode
overrideParameters: '
-parameter1 "${{parameters.parameter1}}"
${{ if ne(${{parameters.parameter2}}, '')}}: ###Just example condition could be anything
-parameter2 "${{parameters.parameter2}}" #Conditional parameter
${{endif}}
The purpose of this is to avoid passing "parameter2" depending on the situation (Assuming of course that those parameters are optional in the ARM). Because as for how it is right now if parameter2 it's empty there are issues with the syntaxis ${{parameters.parameter2}} and we need to create a previous tasks that handles that.
Maybe there is another solution to this problem that I'm not seeing right now but I also asked on stackoverflow about this and It seems It's not achievable. Link to the stackoverflow quesiton
Thanks a lot ;)