@@ -110,6 +110,31 @@ The following example installs the **AzPreview** module using **PSResourceGet**.
110
110
Install-PSResource -Name AzPreview
111
111
```
112
112
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
+
113
138
## Benefits of optimizing the installation process
114
139
115
140
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
129
154
[ Get Started with Azure PowerShell] [ get-started-azps ] .
130
155
131
156
<!-- link references -->
157
+
132
158
[ execution-policies ] : /powershell/module/microsoft.powershell.core/about/about_execution_policies
133
159
[ install-psresourceget ] : /powershell/gallery/powershellget/install-powershellget#install-microsoftpowershellpsresourceget
134
160
[ install-psresource ] : /powershell/module/microsoft.powershell.psresourceget/install-psresource
0 commit comments