-
Notifications
You must be signed in to change notification settings - Fork 730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional adding logic app steps #14192
Comments
Can you please share with us the error you are receiving when deploying this file? |
If the problem is that Something like the following change: @allowed([
'DEV'
'PROD'
])
param TargetEnvironment string = 'DEV'
resource resource 'Microsoft.Logic/workflows@2019-05-01' = {
name: 'TEST'
location: 'polandcentral'
properties: {
state: 'Enabled'
(...)
actions: {
(...)
- Delete_file: (TargetEnvironment == 'PROD') ? {
+ ...(TargetEnvironment == 'PROD' ? {
+ Delete_file: {
runAfter: {
Send_file: [
'Succeeded'
]
}
(...)
- } : null
+ }
+ } : { })
(...)
outputs: {}
}
}
} |
Hi @TomaszGrzmilas, this issue has been marked as stale because it was labeled as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 3 days of this comment. Thanks for contributing to bicep! 😄 🦾 |
Bicep version
0.27.1
Describe the bug
I can't conditional add logic app step
To Reproduce
Create logic app using bicep:
This cause error while deploying. Tried also json(null) and {} neither works.
The text was updated successfully, but these errors were encountered: