---
title: "Ensure Release"
---
Ensures a release exists in another application.
Ensure-Release(
	[Application: <text>],
	[ReleaseNumber: <text>],
	[Pipeline: <text>],
	[ReleaseName: <text>],
	[Variables: <%(key1: value1, ...)>]
);
This operation may be prefixed with Core::, although this is a built-in namespace and isn't really necessary.
| Name | Format | Script Usage | Usage Notes | 
|---|---|---|---|
| In application | text | Application | Default value is "$ApplicationName". | 
| Release number | text | ReleaseNumber | Default value is "$ReleaseNumber". | 
| Pipeline name | text | Pipeline | Default value is "$PipelineName". | 
| Release name | text | ReleaseName | |
| Variables | %(key1: value1, ...) | Variables | Value note: "%(var1: 1000, var2: $HdarFsServer, ...)". | 
Ensure-Release
(
    Application: Hdars.Packager,
    ReleaseNumber: $ReleaseNumber,
    Pipeline: AutoCreate,
    Variables: %(TargetServer: Tst001, ReleaseType: $ReleaseType)
);