# New-ConfigurationExternalAssetFile

Creates a file entry for an external asset bundle.

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.ExternalAssetFileConfiguration`

Creates a file entry for an external asset bundle.

## Syntax

```
New-ConfigurationExternalAssetFile
[-Architecture <String>]
-FileName <String>
[-Path <String>]
-Runtime <String>
[-Sha256 <String>]
-Uri <String>
[<CommonParameters>]
```

[#](#method-new-configurationexternalassetfile-string-string-string-string-string-string)

Parameter set: `All Parameter Sets`

## Description

File entries are passed to New-ConfigurationExternalAsset. Each entry declares where the build pipeline obtains a file from, where it lands inside the output folder, and which runtime or architecture metadata should be written to the generated manifest.

## Examples

### Create a web-download file entry

```powershell
New-ConfigurationExternalAssetFile -Runtime netcore -Architecture x64 -FileName tool.zip -Uri 'https://example.test/tool.zip'
```

## Parameters

**-Architecture String optional**

Optional architecture metadata written to the generated manifest.

**-FileName String required**

Destination file name when Path is not specified.

**-Path String optional**

Destination path relative to the bundle output directory. Defaults to FileName.

**-Runtime String required**

Runtime or payload group, such as netcore, netfx, linux-x64, or win-x64.

**-Sha256 String optional**

Optional expected SHA256. When provided, mismatches fail the build.

**-Uri String requiredaliases: Url**

HTTP(S) URI, file URI, rooted local path, or project-relative local path for this file.

## 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:A7B5102590A21402BF892DE0804FBEAC151B43C4365F524587BCC37E34C356AF -->
