Skip to content

Commit 5002ea8

Browse files
authored
Merge pull request #226 from MicrosoftDocs/main
5/13/2025 PM Publish
2 parents b11ac1b + 176c411 commit 5002ea8

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Register-PSResourceRepository.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,16 @@ PSGv3 https://www.powershellgallery.com/api/v3 True 50
115115
### Example 4
116116

117117
This example registers a repository with credential information to be retrieved from a registered
118-
**SecretManagement** vault. You must have the **Microsoft.PowerShell.SecretManagement** module
119-
installed and have a registered vault containing the stored secret. The format of the secret must
120-
match the requirements of the repository.
118+
**SecretManagement** vault, where **SecretStore** is the name of the vault and **TestSecret** is the
119+
name of the stored secret.
120+
121+
You must have the **Microsoft.PowerShell.SecretManagement** module installed, have a registered
122+
vault, and stored a secret within it. If setup correctly, the command
123+
`Get-SecretInfo -Name 'TestSecret'` would return the secret.
124+
125+
The format of the secret must match the requirements of the repository. In some instances,
126+
`TestSecret` might need storing as a **PSCredential** object with a username and password or token.
127+
In others it may need storing as a **SecureString** representing just the token.
121128

122129
```powershell
123130
$parameters = @{

0 commit comments

Comments
 (0)