-
Notifications
You must be signed in to change notification settings - Fork 745
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
Logic App Workflow and Integration Account Snippet #3919
Conversation
2. Updated snippet for Logic App Integration Account
A suggestion - perhaps we could include in the snippet |
@miqm - I thought this is a simple fix, but I cannot get the tests working.
|
@rajyraman It's not you, seems like snippet tests runner is trying to load the file while it should ignore it. It needs to be changes/fixed, I'll create issue for it and see what can be done. |
@miqm - I can't believe that I could not see the missing '} 🤦. I am now getting this error.
|
Hey @rajyraman, both issues you've been experiencing are fixed, please rebase and try now. |
name: /*${2:'name'}*/'name' | ||
location: resourceGroup().location | ||
properties: { | ||
definition: json(loadTextContent(/*${3:'REQUIRED'}*/'REQUIRED')).definition |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead required put logicApp.json it has to be nam of the file with definition. In addition, remove the .definition
from the end and from json file just leave object starting from schema.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@miqm - I can change the name, but CONTRIBUTING.md, says that I should use 'REQUIRED' if that property must be changed before deployment. All Logic Apps JSON's have definition property, and so I am mapping property to this definition property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is that there are 2 tests. One that uses mapping done in main.bicep and second that just compiles the snippet. Your code is failing with the second one as there is no REQUIRED file to be loaded.
@anthony-c-martin should we make an exemption from the REQUIRED rule and allow for parameter that needs to be changed different file name?
@rajyraman - would you mind enabling "Allow edits from maintainers" for this PR, and I'll push the fixes for your tests. |
@anthony-c-martin - It seems to be already enabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing!
Snippet for Logic App workflow was creating Integration Account, and there was no snippet for Integration Account.
dnsPrefix: 'dnsPrefix'
), unless it's a property that MUST be changed or parameterized in order to deploy. In that case, I use 'REQUIRED' e.g. keyData