You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs-conceptual/azurermps-6.13.0/install-az-ps.md
+17-16Lines changed: 17 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
---
2
-
title: Install Azure PowerShell with PowerShellGet
3
-
description: How to install Azure PowerShell with PowerShellGet
2
+
title: Install Azure PowerShell 'Az' with PowerShellGet
3
+
description: How to install Azure PowerShell with PowerShellGet on Windows, macOS, and Linux.
4
4
author: sptramer
5
5
ms.author: sttramer
6
6
manager: carmonm
7
7
ms.devlang: powershell
8
8
ms.topic: conceptual
9
-
ms.date: 10/29/2018
9
+
ms.date: 11/16/2018
10
10
---
11
11
12
-
# Install Azure PowerShell with PowerShellGet
12
+
# Install the Azure PowerShell 'Az' module
13
13
14
-
This article tells you how to install the Azure PowerShell modules using PowerShellGet. For the preview release of Az, no other install methods are supported.
14
+
This article tells you how to install the Azure PowerShell modules using PowerShellGet. These instructions work on Windows, macOS, and Linux
15
+
platforms. For the preview release of Az, no other install methods are supported.
15
16
16
17
## Requirements
17
18
@@ -65,20 +66,20 @@ the available Azure Resource Manager modules, and makes their cmdlets available
65
66
66
67
## Sign in
67
68
68
-
To start working with Azure PowerShell, you need to load `Az` into your current PowerShell session
69
-
with the [Import-Module](/powershell/module/Microsoft.PowerShell.Core/Import-Module) cmdlet, and then sign in
70
-
with your Azure credentials.
69
+
To start working with Azure PowerShell, sign in with your Azure credentials.
71
70
72
71
```powershell-interactive
73
-
# Import the module into the PowerShell session
74
-
Import-Module Az
75
72
# Connect to Azure with a browser sign in token
76
73
Connect-AzAccount
77
74
```
78
75
79
-
You'll need to repeat these steps for every new PowerShell session you start. Automatically importing the `Az` module requires
80
-
setting up a PowerShell profile, which you can learn about in [About Profiles](/powershell/module/microsoft.powershell.core/about/about_profiles).
81
-
To learn how to persist your Azure sign-in across sessions, see [Persist user credentials across PowerShell sessions](context-persistence.md).
76
+
> [!NOTE]
77
+
>
78
+
> If you've disabled module autoloading, you need to manually import the module with `Import-Module Az`. Because of
79
+
> the way the module is structured, this can take a few seconds.
80
+
81
+
You'll need to repeat these steps for every new PowerShell session you start. To learn how to persist your Azure sign-in
82
+
across PowerShell sessions, see [Persist user credentials across PowerShell sessions](context-persistence.md).
To remove a version of Azure PowerShell, see [Uninstall the Azure PowerShell module](uninstall-azurerm-ps.md).
103
104
104
-
You can load a specific version of the `Az` module by using the `-RequiredVersion` argument with `Install-Module`or`Import-Module`:
105
+
You can load a specific version of the `Az` module by using the `-RequiredVersion` argument with `Install-Module`and`Import-Module`:
105
106
106
107
```powershell-interactive
107
108
Install-Module -Name Az -RequiredVersion 0.4.0
108
109
Import-Module -Name Az -RequiredVersion 0.4.0
109
110
```
110
111
111
-
If you have more than one version of the module installed, the latest version is loaded by default when importing.
112
+
If you have more than one version of the module installed, the latest version is loaded by default.
112
113
113
114
## Provide feedback
114
115
@@ -117,4 +118,4 @@ To provide feedback from the command line, use the [Send-Feedback](/powershell/m
117
118
118
119
## Next Steps
119
120
120
-
To get started using Azure PowerShell, see [Get Started with Azure PowerShell](get-started-azureps.md) to learn more about the module and its features.
121
+
To get started using Azure PowerShell, see [Get Started with Azure PowerShell](get-started-azureps.md) to learn more about the module and its features.
Copy file name to clipboardExpand all lines: docs-conceptual/azurermps-6.13.0/install-azurerm-ps.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: sttramer
6
6
manager: carmonm
7
7
ms.devlang: powershell
8
8
ms.topic: conceptual
9
-
ms.date: 10/08/2018
9
+
ms.date: 11/16/2018
10
10
---
11
11
12
12
# Install Azure PowerShell on Windows with PowerShellGet
@@ -71,20 +71,21 @@ the available Azure Resource Manager modules, and makes their cmdlets available
71
71
72
72
## Sign in
73
73
74
-
To start working with Azure PowerShell, you need to load `AzureRM` into your current PowerShell session
75
-
with the [Import-Module](/powershell/module/Microsoft.PowerShell.Core/Import-Module) cmdlet, and then sign in
76
-
with your Azure credentials.
74
+
To start working with Azure PowerShell, sign in with your Azure credentials.
77
75
78
76
```powershell-interactive
79
-
# Import the module into the PowerShell session
80
-
Import-Module AzureRM
81
77
# Connect to Azure with an interactive dialog for sign-in
82
78
Connect-AzureRmAccount
83
79
```
84
80
85
-
You'll need to repeat these steps for every new PowerShell session you start. Automatically importing the `AzureRM` module requires
86
-
setting up a PowerShell profile, which you can learn about in [About Profiles](/powershell/module/microsoft.powershell.core/about/about_profiles).
87
-
To learn how to persist your Azure sign-in across sessions, see [Persist user credentials across PowerShell sessions](context-persistence.md).
81
+
> [!NOTE]
82
+
>
83
+
> If you've disabled module autoloading, you need to manually import the module with `Import-Module AzureRM`. Because of
84
+
> the way the module is structured, this can take a few seconds.
85
+
86
+
87
+
You'll need to repeat these steps for every new PowerShell session you start. To learn how to persist your Azure sign-in
88
+
across PowerShell sessions, see [Persist user credentials across PowerShell sessions](context-persistence.md).
88
89
89
90
## Update the Azure PowerShell module
90
91
@@ -130,4 +131,4 @@ To provide feedback from the command line, use the [Send-Feedback](/powershell/m
130
131
131
132
## Next Steps
132
133
133
-
To get started using Azure PowerShell, see [Get Started with Azure PowerShell](get-started-azureps.md) to learn more about the module and its features.
134
+
To get started using Azure PowerShell, see [Get Started with Azure PowerShell](get-started-azureps.md) to learn more about the module and its features.
0 commit comments