Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,16 @@ PSGv3 https://www.powershellgallery.com/api/v3 True 50
### Example 4

This example registers a repository with credential information to be retrieved from a registered
**SecretManagement** vault. You must have the **Microsoft.PowerShell.SecretManagement** module
installed and have a registered vault containing the stored secret. The format of the secret must
match the requirements of the repository.
**SecretManagement** vault, where **SecretStore** is the name of the vault and **TestSecret** is the
name of the stored secret.

You must have the **Microsoft.PowerShell.SecretManagement** module installed, have a registered
vault, and stored a secret within it. If setup correctly, the command
`Get-SecretInfo -Name 'TestSecret'` would return the secret.

The format of the secret must match the requirements of the repository. In some instances,
`TestSecret` might need storing as a **PSCredential** object with a username and password or token.
In others it may need storing as a **SecureString** representing just the token.

```powershell
$parameters = @{
Expand Down