Validate using Powershell

Use the Confirm-JDResource powershell function to validate a potential deployment. The Type parameter can be used to validate resources of just a specific type. This is useful if you have many resources in your file and you do not want to validate all of them.

Example to validate a single deployment file containing all configuration and resource objects.

Confirm-JDResource -Type all -DeploymentFile "deployment.yml"

Example to validate multiple deployment files collectively containing all configuration and resource objects. Use separate common files for Setting, Connection and even Variable is a great way to start to modularise your deployments.

Confirm-JDResource -Type all -DeploymentFile "setting.yml","connection.yml","resources.yml"

Example to validate multiple deployment files in a single directory collectively containing all configuration and resource objects.

Confirm-JDResource -Type all -DeploymentDir "c:\mydeploymentfiles"

Using verbose will instruct JustDeploy to display additional information to help with debugging should anything fail.

Parameters

Name Type Mandatory Values Default Notes
Type Array No See Resource Short Codes ALL Resource type short codes you wish to validate
OutputLogFile String No log filename for verbose output logging
IgnoreWarnings Switch No warnings will not be returned, only errors
Verbose Switch No display additional messages, useful for debugging
DeploymentDir Switch No Name of a directory containing the YAML or JSON file(s) containing the configuration
DeploymentFile Array No Name of the YAML or JSON file(s) containing the configuration