-
Notifications
You must be signed in to change notification settings - Fork 48
Update docs for PSResourceGet v1.2.0-preview5 #304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sdwheeler
merged 5 commits into
MicrosoftDocs:main
from
sdwheeler:sdw-w538867-psrget1.2.0-p5-relnotes
Dec 11, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
180716d
Update docs for PSResourceGet v1.2.0-preview5
sdwheeler 4d38ea0
Apply suggestions from code review
sdwheeler 39789d3
Fix build error
sdwheeler 6592b11
(MAINT) Trim trailing newlines in reference content
michaeltlombardi 28a0231
Apply suggestions from code review
sdwheeler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
...conceptual/powershellget/how-to/use-credential-provider-with-azure-artifacts.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| --- | ||
| description: This article describes how PSResourceGet integrates with the Azure Artifacts Credential Provider with ADO feeds. | ||
| ms.date: 12/10/2025 | ||
| ms.topic: reference | ||
| title: Use the Azure Artifacts Credential Provider with Azure Artifacts feeds | ||
| --- | ||
|
|
||
| # Use the Azure Artifacts Credential Provider with Azure Artifacts feeds | ||
|
|
||
| PSResourceGet v1.2.0-preview5 adds support for using the Azure Artifacts Credential Provider with | ||
| Azure Artifacts feeds. | ||
|
|
||
| The `Register-PSResourceRepository` and `Set-PSResourceRepository` cmdlets have a new dynamic | ||
| parameter `-CredentialProvider` that allows you to configure the **CredentialProvider** property of | ||
| a **PSResourceRepository**. This dynamic parameter only works with repositories that aren't | ||
| **ContainerRegistry** repositories or the **PSGallery** repository. | ||
|
|
||
| PSResourceGet automatically sets the value **CredentialProvider** to `AzArtifacts` when the URI | ||
| contains `pkgs.dev.azure.com` or `pkgs.visualstudio.com`. This check is done when registering a new | ||
| repository or when PSResourceGet reads the registered repositories. | ||
|
|
||
| The Credential Provider can be bypassed by setting the `-CredentialProvider` parameter to `None`. | ||
|
|
||
| ## How it works | ||
|
|
||
| PSResourceGet looks for the credential provider any time network credentials are set in the | ||
| following priority order: | ||
|
|
||
| 1. Credentials passed in via **Credential** parameter. | ||
| 1. Credentials retrieved via the Azure Artifacts Credential Provider. | ||
| 1. Credentials retrieved from SecretManagement. | ||
|
|
||
| If the **CredentialProvider** property of a repository is set to `AzArtifacts`, PSResourceGet | ||
| attempts to find the Credential Provider file on the machine in the following order: | ||
|
|
||
| 1. Checking the environment variable `NUGET_PLUGIN_PATHS` | ||
| 1. Checking the default locations: `$env:USERPROFILE\.nuget\plugins` | ||
| 1. Checking the location where Visual Studio is installed: | ||
| `common7\IDE\CommonExtensions\Microsoft\NuGet` | ||
|
|
||
| For more information about the discovery process, see _Convention-based discovery_ section of | ||
| [NuGet cross platform plugins][01]. | ||
|
|
||
| After locating the Credential Provider, PSResourceGet uses one of the following commands to call the | ||
| provider: | ||
|
|
||
| - `CredentialProvider.Microsoft.exe -Uri <uri> -NonInteractive -IsRetry -F Json` | ||
| - `dotnet CredentialProvider.Microsoft.dll -Uri <uri> -NonInteractive -IsRetry -F Json` | ||
|
|
||
| `CredentialProvider.Microsoft.exe` is used on Windows machines, while `dotnet` works on all supported | ||
| platforms. | ||
|
|
||
| ## Dependencies | ||
|
|
||
| For this feature to work, the Azure Artifacts Credential Provider must be installed on the machine. | ||
| The provider might already be available if you have Visual Studio or the .NET SDK installed. For | ||
| more information about installing the Azure Artifacts Credential Provider, see the [README][02] file | ||
| in the GitHub repository for the Azure Artifacts Credential Provider. | ||
|
|
||
| <!-- link references --> | ||
| [01]: /nuget/reference/extensibility/nuget-cross-platform-plugins#convention-based-discovery | ||
| [02]: https://github.com/microsoft/artifacts-credprovider/blob/master/README.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
...gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Find-PSResource.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.