Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Configuration plan and Get-Http
-
Hi,
I have a problem in Otter with Get-Http in the Configuration Plan. I'm using Get-Http to fetch some information that is used in Ensure-DscResource in the next step. Unfortunately, Get-Http does not execute, so I don't have the information required in the next step.Is there a way to always execute Get-Http in Configuration Plan?
-
This post is deleted!
-
This is because
Get-Http
is an execute-only operation, which means it will only run if configuration changed.To force execute-only operations to run in configuration plans, you need to specify the execution directive to be always execute, as follows...
with executionPolicy=always { ... }
Hopefully we can better document this in the future; it's buried in the formal specification.