|
1 | 1 | --- |
2 | 2 | description: This article lists the repositories that have been tested with PowerShellGet v3 and how to configure them. |
3 | | -ms.date: 03/21/2025 |
| 3 | +ms.date: 05/22/2025 |
4 | 4 | ms.topic: reference |
5 | 5 | title: Supported repository configurations |
6 | 6 | --- |
@@ -124,7 +124,7 @@ You must use the **Credential** and **ApiKey** parameters of the `Publish-PSReso |
124 | 124 | publish packages to an Azure Artifacts feed. The credential must be a personal access token (PAT) |
125 | 125 | that has the **Packaging (read, write, and manage)** scope. For more information, see |
126 | 126 | [Use Azure Artifacts feeds as a private PowerShell repository][04]. The value of the **ApiKey** |
127 | | -parameter is not important. It can be any arbitrary string, but it must be included. For example: |
| 127 | +parameter isn't important. It can be any arbitrary string, but it must be included. For example: |
128 | 128 |
|
129 | 129 | ```powershell |
130 | 130 | $patToken = ConvertTo-SecureString -String '<personal-access-token>' -AsPlainText -Force |
@@ -189,6 +189,29 @@ ACR repositories: |
189 | 189 | - Find by DSC resource name |
190 | 190 | - `Find-PSResource -DscResourceName ResourceName -Repository ACRDemoRepo` |
191 | 191 |
|
| 192 | +## Microsoft Artifact Registry (MAR) |
| 193 | + |
| 194 | +MAR is a public registry for housing Microsoft's official artifacts, such as container images. MAR |
| 195 | +enhances security by ensuring only Microsoft can publish official packages, eliminating risks like |
| 196 | +name squatting. It also improves software supply chain integrity by offering greater transparency |
| 197 | +and control over artifact provenance. |
| 198 | + |
| 199 | +Use the following commands to register MAR repository as a PSResource repository. |
| 200 | + |
| 201 | +```powershell |
| 202 | +$mcrUrl = 'https://mcr.microsoft.com' |
| 203 | +Register-PSResourceRepository -Name MAR -Uri $mcrUrl -ApiVersion ContainerRegistry |
| 204 | +``` |
| 205 | + |
| 206 | +After you register the repository, you can use it like any other ACR-based repository. |
| 207 | + |
| 208 | +Support for MAR was added in **Microsoft.PowerShell.PSResourceGet** v1.1.1. |
| 209 | + |
| 210 | +### MAR limitations |
| 211 | + |
| 212 | +The MAR repository has the same limitations as ACR repositories. The MAR is read-only and doesn't |
| 213 | +support publishing packages. |
| 214 | + |
192 | 215 | ## GitHub Packages |
193 | 216 |
|
194 | 217 | GitHub Packages is a software package hosting service that allows you to host your software packages |
|
0 commit comments