# New-ConfigurationExternalAsset

Adds an external asset bundle that is prepared before module staging.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

**Outputs**

`PowerForge.ConfigurationExternalAssetSegment`

Adds an external asset bundle that is prepared before module staging.

## Syntax

```
New-ConfigurationExternalAsset
[-Disabled]
-Files <ExternalAssetFileConfiguration[]>
[-License <String>]
[-ManifestPath <String>]
-Name <String>
-OutputPath <String>
[-SkipDownload]
[-Source <String>]
[-Version <String>]
[<CommonParameters>]
```

[#](#method-new-configurationexternalasset-switchparameter-externalassetfileconfiguration-string-string-string-string-switchparameter-string-string)

Parameter set: `All Parameter Sets`

## Description

External asset bundles are for files that should be carried inside a module package but are not authored as normal source files, such as offline installers, tooling archives, generated payloads, or mirrored third-party packages. PowerForge downloads or copies the declared files before staging, computes SHA256 values, and writes a manifest alongside the bundle.

## Examples

### Prepare an offline payload before staging

```powershell
New-ConfigurationExternalAsset -Name VendorTool -OutputPath 'Artefacts\VendorTool' -Files @(New-ConfigurationExternalAssetFile -Runtime win-x64 -FileName tool.zip -Uri 'https://example.test/tool.zip')
```

## Parameters

**-Disabled SwitchParameter optional**

When set, disables the bundle while keeping it in configuration.

**-Files ExternalAssetFileConfiguration[] required**

Files that make up the external asset bundle.

**-License String optional**

Optional license expression or label written to the generated manifest.

**-ManifestPath String optional**

Optional manifest path. Relative paths resolve from the project root; when omitted, manifest.json is written under OutputPath.

**-Name String required**

Friendly bundle name written to the generated manifest.

**-OutputPath String required**

Output directory for the downloaded or copied files. Relative paths resolve from the project root.

**-SkipDownload SwitchParameter optional**

When set, existing files are used and missing files fail the build instead of downloading or copying sources.

**-Source String optional**

Optional source URI or project URL written to the generated manifest.

**-Version String optional**

Optional bundle version written to the generated manifest.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:16C711A237045DC6C926EA6A069EC7D179463B3F73A7760BA570588BF49EE826 -->
