Skip to content

Commit 1ef290e

Browse files
committed
layout
1 parent 9f33672 commit 1ef290e

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

docs/artifacts/tutorials/private-powershell-library.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ Using a personal access token (PAT) is a great way to authenticate with Azure De
110110
111111
- Org-scoped feed:
112112
113-
```powershell
114-
nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
115-
```
113+
```powershell
114+
nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
115+
```
116116
117117
- Project-scoped feed:
118118
119-
```powershell
120-
nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
121-
```
119+
```powershell
120+
nuget sources Add -Name "<FEED_NAME>" -Source "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3/index.json" -username "<USER_NAME>" -password "<PERSONAL_ACCESS_TOKEN>"
121+
```
122122
123123
1. Publish the package to your feed.
124124
@@ -149,29 +149,29 @@ Using a personal access token (PAT) is a great way to authenticate with Azure De
149149
150150
- Project-scoped feed:
151151
152-
```powershell
153-
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
154-
```
152+
```powershell
153+
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
154+
```
155155
156156
- Org-scoped feed:
157157
158-
```powershell
159-
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
160-
```
158+
```powershell
159+
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
160+
```
161161
162162
If you're still using the older `visualstudio.com` URLs, use the following command instead:
163163
164164
- Project-scoped feed:
165165
166-
```powershell
167-
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
168-
```
166+
```powershell
167+
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
168+
```
169169
170170
- Org-scoped feed:
171171
172-
```powershell
173-
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
174-
```
172+
```powershell
173+
Register-PSRepository -Name "PowershellAzureDevopsServices" -SourceLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -PublishLocation "https://<ORGANIZATION_NAME>.pkgs.visualstudio.com/_packaging/<FEED_NAME>/nuget/v3" -InstallationPolicy Trusted -Credential $credsAzureDevopsServices
174+
```
175175
176176
> [!TIP]
177177
> If you encounter the following warning `Unable to resolve package source`, restart your PowerShell session.
@@ -180,15 +180,15 @@ Using a personal access token (PAT) is a great way to authenticate with Azure De
180180
181181
- Project-scoped feed:
182182
183-
```powershell
184-
Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
185-
```
183+
```powershell
184+
Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/<PROJECT_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
185+
```
186186
187187
- Org-scoped feed:
188188
189-
```powershell
190-
Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
191-
```
189+
```powershell
190+
Register-PackageSource -Name "PowershellAzureDevopsServices" -Location "https://pkgs.dev.azure.com/<ORGANIZATION_NAME>/_packaging/<FEED_NAME>/nuget/v3" -ProviderName NuGet -Trusted -SkipValidate -Credential $credsAzureDevopsServices
191+
```
192192
193193
1. Run the following command to confirm if the repository was registered successfully. This command gets all the registered repositories for the current user:
194194

0 commit comments

Comments
 (0)