Skip to content

Commit 7192f4a

Browse files
committed
Add instructions for MAR
1 parent 9c33e98 commit 7192f4a

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

powershell-gallery/docs-conceptual/overview.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ PowerShell scripts, modules containing PowerShell cmdlets and Desired State Conf
1111
resources. Some of these packages are authored by Microsoft, and others are authored by the
1212
PowerShell community.
1313

14-
The [PowerShellGet][07] module contains cmdlets for discovering, installing, updating, and publishing
15-
PowerShell packages from the PowerShell Gallery. These packages can contain artifacts such as
16-
Modules, DSC Resources, Role Capabilities, and Scripts. Make sure you have the latest version of
17-
**PowerShellGet** and **PackageManagement** installed.
14+
The [PowerShellGet][07] module contains cmdlets for discovering, installing, updating, and
15+
publishing PowerShell packages from the PowerShell Gallery. These packages can contain artifacts
16+
such as Modules, DSC Resources, Role Capabilities, and Scripts. Make sure you have the latest
17+
version of **PowerShellGet** and **PackageManagement** installed.
1818

1919
The [Microsoft.PowerShell.PSResourceGet][08] module replaces the **PowerShellGet** and
2020
**PackageManagement** modules. **Microsoft.PowerShell.PSResourceGet** version 1.0.1 ships in

powershell-gallery/docs-conceptual/powershellget/overview.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
description: This article explains the purpose and history of PowerShellGet
3-
ms.date: 10/31/2024
3+
ms.date: 05/22/2025
44
ms.topic: overview
55
title: Package management for PowerShell
66
---
@@ -27,11 +27,11 @@ packages can contain artifacts such as Modules, DSC Resources, and Scripts. The
2727
2828
Supported versions:
2929

30-
- Current release
31-
- **Microsoft.PowerShell.PSResourceGet** 1.0.6 - a standalone module that doesn't depend on the
30+
- Current releases
31+
- **Microsoft.PowerShell.PSResourceGet** 1.1.1 - a standalone module that doesn't depend on the
3232
**PowerShellGet** or **PackageManagement** modules
3333
- **PowerShellGet** 2.2.5 with **PackageManagement** 1.4.8.1
34-
- Preview release
34+
- Preview releases
3535
- **Microsoft.PowerShell.PSResourceGet** 1.1.0-rc2 - adds `Compress-PSResource` to create `.nupkg`
3636
files, the ability to publish `.nupkg` files, and support configuration Group Policy.
3737
- **PowerShellGet** 3.0.23-beta23 - a compatibility module that contains proxy cmdlets that call
@@ -42,6 +42,8 @@ Supported versions:
4242

4343
For best results, use the latest version of the **Microsoft.PowerShell.PSResourceGet** module.
4444

45+
- **Microsoft.PowerShell.PSResourceGet** v1.1.1 - shipped in **PowerShell 7.6-preview.4**
46+
- **Microsoft.PowerShell.PSResourceGet** v1.1.0 - shipped in **PowerShell 7.5.0**
4547
- **Microsoft.PowerShell.PSResourceGet** 1.0.6 - released to the PowerShell Gallery on 10-Oct-2024
4648
- **Microsoft.PowerShell.PSResourceGet** 1.0.5 - shipped in **PowerShell 7.5-preview.3**
4749
- **Microsoft.PowerShell.PSResourceGet** 1.0.4.1 - shipped in **PowerShell 7.4.2**

powershell-gallery/docs-conceptual/powershellget/supported-repositories.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
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
44
ms.topic: reference
55
title: Supported repository configurations
66
---
@@ -124,7 +124,7 @@ You must use the **Credential** and **ApiKey** parameters of the `Publish-PSReso
124124
publish packages to an Azure Artifacts feed. The credential must be a personal access token (PAT)
125125
that has the **Packaging (read, write, and manage)** scope. For more information, see
126126
[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:
128128

129129
```powershell
130130
$patToken = ConvertTo-SecureString -String '<personal-access-token>' -AsPlainText -Force
@@ -189,6 +189,29 @@ ACR repositories:
189189
- Find by DSC resource name
190190
- `Find-PSResource -DscResourceName ResourceName -Repository ACRDemoRepo`
191191

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+
192215
## GitHub Packages
193216

194217
GitHub Packages is a software package hosting service that allows you to host your software packages

0 commit comments

Comments
 (0)