1
1
---
2
- description : Learn how to install and run Azure PowerShell on Windows. You can install Azure PowerShell on Windows with one command .
2
+ description : Learn how to install and run Azure PowerShell on Windows to manage your Azure resources with PowerShell. Step-by-step guide for seamless installation and updates .
3
3
ms.custom : devx-track-azurepowershell
4
4
ms.devlang : powershell
5
5
ms.service : azure-powershell
6
6
ms.topic : conceptual
7
- title : Install Azure PowerShell on Windows | Microsoft Docs
7
+ title : Install Azure PowerShell on Windows
8
8
zone_pivot_group_filename : azure/zone-pivot-groups.json
9
9
zone_pivot_groups : install-azps-windows
10
10
---
@@ -22,7 +22,7 @@ The recommended installation method and PowerShell version for the Az PowerShell
22
22
::: zone pivot="windows-psgallery"
23
23
24
24
This article explains how to install the Az PowerShell module on Windows from the
25
- [ PowerShell Gallery] ( / powershell/scripting/ gallery/overview ) .
25
+ [ PowerShell Gallery] [ powershell- gallery ] .
26
26
27
27
## Prerequisites
28
28
@@ -40,26 +40,24 @@ This article explains how to install the Az PowerShell module on Windows from th
40
40
41
41
> [ !IMPORTANT]
42
42
> If you have the AzureRM PowerShell module installed, see
43
- > [ Az and AzureRM coexistence] ( troubleshooting.md#az-and- azurerm-coexistence) before proceeding.
43
+ > [ Az and AzureRM coexistence] [ azurerm-coexistence ] before proceeding.
44
44
45
45
# [ PowerShell 7] ( #tab/powershell )
46
46
47
- - Install a supported version of
48
- [ PowerShell version 7 or higher] ( /powershell/scripting/install/installing-powershell-on-windows )
47
+ - Install a supported version of [ PowerShell version 7 or higher] [ install-pwsh ]
49
48
50
49
# [ Windows PowerShell] ( #tab/windowspowershell )
51
50
52
- - Update to
53
- [ Windows PowerShell 5.1] ( /powershell/scripting/windows-powershell/install/installing-windows-powershell#upgrading-existing-windows-powershell )
54
- - Install [ .NET Framework 4.7.2 or later] ( /dotnet/framework/install )
51
+ - Update to [ Windows PowerShell 5.1] [ update-powershell51 ]
52
+ - Install [ .NET Framework 4.7.2 or later] [ install-dotnet ]
55
53
- Update PowerShellGet
56
54
57
- Launch Windows PowerShell 5.1 elevated as an administrator and run the following command to
58
- update PowerShellGet:
55
+ Launch Windows PowerShell 5.1 elevated as an administrator and run the following command to update
56
+ PowerShellGet:
59
57
60
- ``` powershell
61
- Install-Module -Name PowerShellGet -Force
62
- ```
58
+ ``` powershell
59
+ Install-Module -Name PowerShellGet -Force
60
+ ```
63
61
64
62
---
65
63
@@ -78,21 +76,19 @@ This article explains how to install the Az PowerShell module on Windows from th
78
76
```
79
77
80
78
For more information about execution policies, see
81
- [about_Execution_Policies](/powershell/module/microsoft.powershell.core/about/about_execution_policies) .
79
+ [about_Execution_Policies][execution-policies] .
82
80
83
81
## Installation
84
82
85
- Use the [Install-Module](/powershell/module/powershellget/install-module) cmdlet to install the Az
86
- PowerShell module:
83
+ Use the [Install-Module][install-module] cmdlet to install the Az PowerShell module:
87
84
88
85
```powershell
89
86
Install-Module -Name Az -Repository PSGallery -Force
90
87
```
91
88
92
89
## Update the Az PowerShell module
93
90
94
- Use [ Update-Module] ( /powershell/module/powershellget/update-module ) to update to the latest version
95
- of the Az PowerShell module:
91
+ Use [ Update-Module] [ update-module ] to update to the latest version of the Az PowerShell module:
96
92
97
93
``` powershell
98
94
Update-Module -Name Az -Force
@@ -103,15 +99,14 @@ PowerShell module from your system.
103
99
104
100
## Uninstallation
105
101
106
- To remove the Az PowerShell module, see
107
- [ Uninstall the Azure PowerShell module] ( uninstall-az-ps.md ) .
102
+ To remove the Az PowerShell module, see [ Uninstall the Azure PowerShell module] [ uninstall-azps ] .
108
103
109
104
::: zone-end
110
105
111
106
::: zone pivot="windows-msi"
112
107
113
108
This article explains how to install the Az PowerShell module on Windows using an MSI installer. The
114
- MSI installer is provided for environments where the PowerShell Gallery may be blocked by a
109
+ MSI installer is provided for environments where the PowerShell Gallery might be blocked by a
115
110
firewall, or an offline installer is needed.
116
111
117
112
> [ !IMPORTANT]
@@ -134,11 +129,10 @@ firewall, or an offline installer is needed.
134
129
135
130
> [ !IMPORTANT]
136
131
> If you have the AzureRM PowerShell module installed, see
137
- > [ Az and AzureRM coexistence] ( troubleshooting.md#az-and- azurerm-coexistence) before proceeding.
132
+ > [ Az and AzureRM coexistence] [ azurerm-coexistence ] before proceeding.
138
133
139
- - Update to
140
- [ Windows PowerShell 5.1] ( /powershell/scripting/windows-powershell/install/installing-windows-powershell#upgrading-existing-windows-powershell )
141
- - Install [ .NET Framework 4.7.2 or later] ( /dotnet/framework/install )
134
+ - Update to [ Windows PowerShell 5.1] [ update-powershell51 ]
135
+ - Install [ .NET Framework 4.7.2 or later] [ install-dotnet ]
142
136
143
137
- Set the PowerShell script execution to remote signed or less restrictive
144
138
@@ -155,19 +149,19 @@ firewall, or an offline installer is needed.
155
149
```
156
150
157
151
For more information about execution policies, see
158
- [about_Execution_Policies](/powershell/module/microsoft.powershell.core/about/about_execution_policies) .
152
+ [about_Execution_Policies][execution-poliicies] .
159
153
160
154
## Installation and update
161
155
162
- The MSI package for Azure PowerShell is available from
163
- [GitHub](https://github.com/Azure/azure-powershell/releases):
156
+ The MSI package for Azure PowerShell is available from [GitHub][azps-github]:
164
157
165
158
1. Visit
166
- [github.com/Azure/azure-powershell/releases](https://github.com/Azure/azure-powershell/releases)
167
- 1. Locate the most recent Az PowerShell module. They are listed chronologically with no name. For example, `9.5.0`
168
- 1. Scroll down to the end of the patch notes and click the arrow next to "Assets" to reveal the
169
- MSI options.
170
- 1. Click on the Az-Cmdlets MSI of your choice to start the download
159
+ [github.com/Azure/azure-powershell/releases][azps-github-releases]
160
+ 1. Locate the most recent Az PowerShell module. They're listed chronologically with no name. For
161
+ example, `13.3.0`
162
+ 1. Scroll down to the end of the patch notes and select the arrow next to "Assets" to reveal the MSI
163
+ options.
164
+ 1. Select the Az-Cmdlets MSI of your choice to start the download
171
165
172
166
The installer automatically removes older versions of the Az PowerShell module that were installed
173
167
using an MSI. The MSI package installs modules in `"${env:ProgramFiles}\WindowsPowerShell\Modules"`
@@ -185,24 +179,40 @@ Connect-AzAccount
185
179
186
180
Use your Azure account login credentials to log into the browser window that opens.
187
181
188
- You'll need to repeat this step for every new PowerShell session you start. To learn how to persist
182
+ You need to repeat this step for every new PowerShell session you start. To learn how to persist
189
183
your Azure sign-in across PowerShell sessions, see
190
- [ Azure PowerShell context objects] ( context-persistence.md ) .
184
+ [ Azure PowerShell context objects] [ context-persistence ] .
191
185
192
186
## Troubleshooting
193
187
194
188
For solutions to common installation issues with the Az PowerShell module, see
195
- [ Troubleshoot installation problems with the Az PowerShell module] ( troubleshooting.md#installation ) .
189
+ [ Troubleshoot installation problems with the Az PowerShell module] [ troubleshoot-install ] .
196
190
197
191
## Provide feedback
198
192
199
- To file an issue about the Az PowerShell module, see:
200
- [ file an issue on GitHub] ( https://github.com/Azure/azure-powershell/issues )
193
+ To file an issue about the Az PowerShell module, see: [ File an issue on GitHub] [ report-issue ]
201
194
202
- To provide feedback from within a PowerShell session, use the
203
- [ Send-Feedback] ( /powershell/module/az.accounts/send-feedback ) cmdlet.
195
+ To provide feedback from within a PowerShell session, use the [ Send-Feedback] [ send-feedback ] cmdlet.
204
196
205
197
## Next Steps
206
198
207
199
To learn more about managing your Azure resources with the Az PowerShell module, see
208
- [ Get Started with Azure PowerShell] ( get-started-azureps.md ) .
200
+ [ Get Started with Azure PowerShell] [ get-started ] .
201
+
202
+ <!-- link references -->
203
+
204
+ [ powershell-gallery ] : /powershell/scripting/gallery/overview
205
+ [ azurerm-coexistence ] : troubleshooting.md#az-and-azurerm-coexistence
206
+ [ install-pwsh ] : /powershell/scripting/install/installing-powershell-on-windows
207
+ [ update-powershell51 ] : /powershell/scripting/windows-powershell/install/installing-windows-powershell#upgrading-existing-windows-powershell
208
+ [ install-dotnet ] : /dotnet/framework/install
209
+ [ execution-policies ] : /powershell/module/microsoft.powershell.core/about/about_execution_policies
210
+ [ install-module ] : /powershell/module/powershellget/install-module
211
+ [ update-module ] : /powershell/module/powershellget/update-module
212
+ [ uninstall-azps ] : uninstall-az-ps.md
213
+ [ azps-github-releases ] : https://github.com/Azure/azure-powershell/releases
214
+ [ context-persistence ] : context-persistence.md
215
+ [ troubleshoot-install ] : troubleshooting.md#installation
216
+ [ report-issue ] : https://github.com/Azure/azure-powershell/issues
217
+ [ send-feedback ] : /powershell/module/az.accounts/send-feedback
218
+ [ get-started ] : get-started-azureps.md
0 commit comments