Skip to content

Commit 2260aef

Browse files
committed
Added install from mar instructions
1 parent 0854d09 commit 2260aef

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs-conceptual/azps-13.2.0/install-azps-optimized.md

+26
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,31 @@ The following example installs the **AzPreview** module using **PSResourceGet**.
110110
Install-PSResource -Name AzPreview
111111
```
112112

113+
## Install from the Microsoft Artifact Registry
114+
115+
Installing the **Az** PowerShell module from the Microsoft Artifact Registry (MAR) offers faster,
116+
more reliable installations. MAR ensures quick download speeds and a smooth setup process,
117+
minimizing potential issues during installation.
118+
119+
1. If you're using a version of PowerShell earlier than 7.5.0, you must install
120+
**Microsoft.PowerShell.PSResourceGet** version 1.1.0 or higher
121+
122+
```powershell
123+
Install-Module -Name Microsoft.PowerShell.PSResourceGet -Repository PSGallery
124+
```
125+
126+
1. Register MAR as a repository in **PSResourceGet** on your system
127+
128+
```powershell
129+
Register-PSResourceRepository -Name MAR -Uri https://mcr.microsoft.com -ApiVersion ContainerRegistry
130+
```
131+
132+
1. Install the **Az** PowerShell Module from MAR using **PSResourceGet**
133+
134+
```powershell
135+
Install-PSResource -Name Az -Repository MAR
136+
```
137+
113138
## Benefits of optimizing the installation process
114139

115140
By adopting a more selective and efficient installation process, you:
@@ -129,6 +154,7 @@ To learn more about managing your Azure resources with the **Az** PowerShell mod
129154
[Get Started with Azure PowerShell][get-started-azps].
130155

131156
<!-- link references -->
157+
132158
[execution-policies]: /powershell/module/microsoft.powershell.core/about/about_execution_policies
133159
[install-psresourceget]: /powershell/gallery/powershellget/install-powershellget#install-microsoftpowershellpsresourceget
134160
[install-psresource]: /powershell/module/microsoft.powershell.psresourceget/install-psresource

0 commit comments

Comments
 (0)