Skip to content
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

New parameter GenerateHttpTriggerUrlOutput #50

Merged
merged 6 commits into from Aug 9, 2019

Conversation

SvenskFisk
Copy link
Contributor

"If true, generate an output variable with the http trigger url."

This is a workaround for a problem (trigger does not exist) that occurs when the logic app template is linked from a "master template". Extracting the trigger url in the master template results in an error.

My theory is that trigger creation happens sometime after the logic app is deployed. Outputing the trigger url solves the problem.

@@ -36,6 +36,9 @@ public class GeneratorCmdlet : PSCmdlet
[Parameter(Mandatory = false, HelpMessage = "If true, diagnostic settings will be included in the ARM template")]
public bool DiagnosticSettings = false;

[Parameter(Mandatory = false, HelpMessage = "If true, generate an output variable with the trigger url.")]
public bool GenerateHttpTriggerUrlOutput = false;
Copy link
Contributor

@Splaxi Splaxi Jul 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I suggest that you use the SwitchParameter type instead bool?

This will automatically be false when unset, but you only need to use the -GenerateHttpTriggerUrlOutput instead of -GenerateHttpTriggerUrlOutput:$true

I have suggested the same to DiagnosticSettings in PR #55

@MLogdberg MLogdberg merged commit 741bfe7 into jeffhollan:master Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants