| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Creates or updates a saved managed module repository profile.
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>]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.
Set-ManagedModuleRepository -Name Company -AzureDevOpsOrganization contoso -AzureDevOpsProject Platform -AzureArtifactsFeed ModulesSaves a user-local profile that later commands can reference with -ProfileName Company.
Set-ManagedModuleRepository -Name Finance -AzureDevOpsOrganization contoso -AzureDevOpsProject Platform -AzureArtifactsFeed InternalModules -RepositoryName CompanyModules -Priority 20Stores the Azure Artifacts feed identity while registering it locally as CompanyModules.
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: TrueAzure 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: TrueOptional 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: TrueBootstrap/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: TrueGitHub 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: TrueJFrog 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: TrueJFrog 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: TrueRepository 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: TrueOptional 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: TruePrivate 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: TrueProvider 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: TrueOptional 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: TruePowerShellGet 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: TruePowerShellGet 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: TruePSResourceGet 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: TrueProfile 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: TrueRegistration 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: TrueWhen 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: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
None
PSPublishModule.ModuleRepositoryProfileResult— User-facing private module repository profile saved by PSPublishModule.
- None