Skip to content

Latest commit

 

History

History
340 lines (271 loc) · 8.11 KB

File metadata and controls

340 lines (271 loc) · 8.11 KB
external help file PSPublishModule-help.xml
Module Name PSPublishModule
online version https://github.com/EvotecIT/PSPublishModule
schema 2.0.0

Set-ManagedModuleRepository

SYNOPSIS

Creates or updates a saved managed module repository profile.

SYNTAX

__AllParameterSets

Set-ManagedModuleRepository [-Name] <string> [-Provider <PrivateGalleryProvider>] [-AzureDevOpsOrganization <string>] [-AzureDevOpsProject <string>] [-AzureArtifactsFeed <string>] [-Repository <string>] [-RepositoryName <string>] [-RepositoryUri <string>] [-RepositorySourceUri <string>] [-RepositoryPublishUri <string>] [-JFrogBaseUri <string>] [-JFrogRepository <string>] [-GitHubOwner <string>] [-Tool <RepositoryRegistrationTool>] [-BootstrapMode <PrivateGalleryBootstrapMode>] [-Trusted <bool>] [-Priority <int>] [-Scope <ModuleRepositoryProfileScope>] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Profiles store non-secret repository shape, trust, bootstrap, and publish-source settings used by the managed module lifecycle commands. Secrets stay in credentials, environment variables, secret files, or provider sessions.

EXAMPLES

EXAMPLE 1

Set-ManagedModuleRepository -Name Company -AzureDevOpsOrganization contoso -AzureDevOpsProject Platform -AzureArtifactsFeed Modules

Saves a user-local profile that later commands can reference with -ProfileName Company.

EXAMPLE 2

Set-ManagedModuleRepository -Name Finance -AzureDevOpsOrganization contoso -AzureDevOpsProject Platform -AzureArtifactsFeed InternalModules -RepositoryName CompanyModules -Priority 20

Stores the Azure Artifacts feed identity while registering it locally as CompanyModules.

PARAMETERS

-AzureArtifactsFeed

Azure Artifacts feed name.

Type: String
Parameter Sets: __AllParameterSets
Aliases: Feed
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-AzureDevOpsOrganization

Azure DevOps organization name.

Type: String
Parameter Sets: __AllParameterSets
Aliases: Organization
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-AzureDevOpsProject

Optional Azure DevOps project name for project-scoped feeds.

Type: String
Parameter Sets: __AllParameterSets
Aliases: Project
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-BootstrapMode

Bootstrap/authentication mode saved in the profile. Defaults to ExistingSession for Azure Artifacts Credential Provider login.

Type: PrivateGalleryBootstrapMode
Parameter Sets: __AllParameterSets
Aliases: Mode
Possible values: Auto, ExistingSession, CredentialPrompt, JFrogCli

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-GitHubOwner

GitHub user or organization namespace for GitHub Packages. Defaults from Repository when omitted.

Type: String
Parameter Sets: __AllParameterSets
Aliases: Owner, Namespace
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-JFrogBaseUri

JFrog Artifactory base URI, for example https://company.jfrog.io/artifactory.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-JFrogRepository

JFrog NuGet repository key. Defaults from Repository when omitted.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Name

Repository profile name used by managed find, save, install, update, repair, and publish commands.

Type: String
Parameter Sets: __AllParameterSets
Aliases: ProfileName
Possible values:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Priority

Optional PSResourceGet repository priority.

Type: Nullable`1
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Provider

Private gallery provider.

Type: PrivateGalleryProvider
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: AzureArtifacts, Azure, JFrog, NuGet, GitHubPackages, GitHub

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Repository

Provider repository/feed id. For Azure this is the feed when AzureArtifactsFeed is omitted; for JFrog this is the Artifactory NuGet repository key.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-RepositoryName

Optional local repository name override. Defaults to the provider repository/feed id.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-RepositoryPublishUri

PowerShellGet publish URI for generic/JFrog feeds.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-RepositorySourceUri

PowerShellGet source URI for generic/JFrog feeds.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-RepositoryUri

PSResourceGet v3 repository URI for generic/JFrog feeds.

Type: String
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Scope

Profile store scope to write. Use Machine from an elevated/admin deployment to share non-secret feed settings with all users.

Type: ModuleRepositoryProfileScope
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: User, Machine, All

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Tool

Registration strategy saved in the profile. Defaults to PSResourceGet for Entra-first Azure Artifacts use.

Type: RepositoryRegistrationTool
Parameter Sets: __AllParameterSets
Aliases: None
Possible values: Auto, PSResourceGet, PowerShellGet, Both

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Trusted

When true, marks the repository as trusted during registration.

Type: Boolean
Parameter Sets: __AllParameterSets
Aliases: None
Possible values:

Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • PSPublishModule.ModuleRepositoryProfileResult — User-facing private module repository profile saved by PSPublishModule.

RELATED LINKS

  • None