Skip to content

Latest commit

 

History

History
120 lines (96 loc) · 2.22 KB

File metadata and controls

120 lines (96 loc) · 2.22 KB

DSC Resource 'PowerShellRepositories'

PowerShellRepositories registers and configures PowerShell module repositories.

When to use 'PowerShellRepositories'

Use this resource when you need to register internal or custom PowerShell repositories (e.g., a private NuGet feed or Azure Artifacts) as trusted sources for installing PowerShell modules. This is essential in enterprise environments that host internal modules or need to proxy the PowerShell Gallery.

Source

DSC Resource

Documentation

Table 1. Attributes of category 'PowerShellRepositories'
Parameter Attribute DataType Description Allowed Values

Repositories

Hashtable[]

set of Powershell repositories

Table 2. Attributes of category 'PowerShellRepositories/Repositories'
Parameter Attribute DataType Description Allowed Values

Name

Key

String

SourceLocation

String

ScriptSourceLocation

String

PublishLocation

String

ScriptPublishLocation

String

InstallationPolicy

String

  • Trusted

  • Untrusted

PackageManagementProvider

String

Ensure

String

  • Present

  • Absent

Example
PowerShellRepositories:
  Repositories:
  - Name: RepoA
    SourceLocation: https://somegallery/v2
    PublishLocation: https://somegallery/v2
  - Name: RepoB
    InstallationPolicy: trusted
    SourceLocation: https://somegallery/v2