Skip to content

Commit 42a3261

Browse files
author
TaraMeyer
authored
Merge pull request MicrosoftDocs#545 from sdwheeler/sdw-connect
Updating install and get started
2 parents 626693c + c50783d commit 42a3261

13 files changed

+106
-65
lines changed

docs-conceptual/azurermps-1.2.9/install-azurerm-ps.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.product: azure
99
ms.service: azure-powershell
1010
ms.devlang: powershell
1111
ms.topic: conceptual
12-
ms.date: 05/17/2017
12+
ms.date: 03/27/2018
1313
---
1414

1515
# Install and configure Azure PowerShell
@@ -23,24 +23,33 @@ the appropriate version of PowerShellGet and other system requirements. Run the
2323
to see if you have PowerShellGet installed on your system.
2424

2525
```powershell
26-
Get-Module PowerShellGet -list | Select-Object Name,Version,Path
26+
Get-Module -Name PowerShellGet -ListAvailable | Select-Object -Property Name,Version,Path
2727
```
2828

2929
You should see something similar to the following output:
3030

31-
```
31+
```Output
32+
Name Version Path
33+
---- ------- ----
3234
Name Version Path
3335
---- ------- ----
36+
PowerShellGet 1.6.0 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PowerShellGet.psd1
3437
PowerShellGet 1.0.0.1 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PowerShellGet.psd1
3538
```
3639

40+
You need PowerShellGet version 1.1.2.0 or higher. To update PowerShellGet, use the following command:
41+
42+
```powershell
43+
Install-Module PowerShellGet -Force
44+
```
45+
3746
If you do not have PowerShellGet installed, see the [How to get PowerShellGet](#how-to-get-powershellget)
3847
section of this article.
3948

4049
> [!NOTE]
4150
> Using PowerShellGet requires an Execution Policy that allows you to run scripts. For more
4251
> information about PowerShell's Execution Policy, see
43-
> [About Execution Policies](https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.core/about/about_execution_policies).
52+
> [About Execution Policies](/powershell/module/microsoft.powershell.core/about/about_execution_policies).
4453
4554
## Step 2: Install Azure PowerShell
4655

@@ -49,13 +58,13 @@ following command from an elevated PowerShell session:
4958

5059
```powershell
5160
# Install the Azure Resource Manager modules from the PowerShell Gallery
52-
Install-Module AzureRM
61+
Install-Module -Name AzureRM -AllowClobber
5362
```
5463

5564
By default, the PowerShell gallery is not configured as a Trusted repository for PowerShellGet. The
5665
first time you use the PSGallery you see the following prompt:
5766

58-
```
67+
```Output
5968
Untrusted repository
6069
6170
You are installing the modules from an untrusted repository. If you trust this repository, change
@@ -69,7 +78,7 @@ Answer 'Yes' or 'Yes to All' to continue with the installation.
6978

7079
> [!NOTE]
7180
> If you have a version older than 2.8.5.201 of NuGet, you are prompted to download and install
72-
the latest version of NuGet.
81+
> the latest version of NuGet.
7382
7483
The AzureRM module is a rollup module for the Azure Resource Manager cmdlets. When you install the
7584
AzureRM module, any Azure PowerShell module not previously installed is downloaded and from the
@@ -85,7 +94,7 @@ do this in a normal (non-elevated) PowerShell session. Modules are loaded using
8594
cmdlet, as follows:
8695

8796
```powershell
88-
Import-Module AzureRM
97+
Import-Module -Name AzureRM
8998
```
9099

91100
## Next Steps
@@ -108,11 +117,11 @@ For more information about using Azure PowerShell, see the following articles:
108117
### Checking the version of Azure PowerShell
109118

110119
Although we encourage you to upgrade to the latest version as early as possible, several versions
111-
of Azure PowerShell are support. To determine the version of Azure PowerShell you have installed,
120+
of Azure PowerShell are supported. To determine the version of Azure PowerShell you have installed,
112121
run `Get-Module AzureRM` from your command line.
113122

114123
```powershell
115-
Get-Module AzureRM -list | Select-Object Name,Version,Path
124+
Get-Module AzureRM -ListAvailable | Select-Object -Property Name,Version,Path
116125
```
117126

118127
### Support for classic deployment methods
@@ -128,7 +137,7 @@ version of each package.
128137
If you have a previous version of Azure PowerShell installed that includes the Service Management
129138
module, you may receive the following error:
130139

131-
```
140+
```Output
132141
PackageManagement\Install-Package : A command with name 'Get-AzureStorageContainerAcl' is already
133142
available on this system. This module 'Azure.Storage' may override the existing commands. If you
134143
still want to install this module 'Azure.Storage', use -AllowClobber parameter.
@@ -145,7 +154,7 @@ the following command:
145154

146155
```powershell
147156
# Install the Azure Resource Manager modules from the PowerShell Gallery
148-
Install-Module AzureRM -AllowClobber
157+
Install-Module -Name AzureRM -AllowClobber
149158
```
150159

151160
For more information, see the help topic for
@@ -167,7 +176,7 @@ Only one version of the module can be loaded in a PowerShell session. You must o
167176
PowerShell window and use `Import-Module` to import a specific version of the AzureRM cmdlets:
168177

169178
```powershell
170-
Import-Module AzureRM -RequiredVersion 1.2.9
179+
Import-Module -Name AzureRM -RequiredVersion 1.2.9
171180
```
172181

173182
> [!NOTE]

docs-conceptual/azurermps-2.2.0/install-azurerm-ps.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.product: azure
99
ms.service: azure-powershell
1010
ms.devlang: powershell
1111
ms.topic: conceptual
12-
ms.date: 05/17/2017
12+
ms.date: 03/27/2018
1313
---
1414

1515
# Install and configure Azure PowerShell
@@ -23,24 +23,33 @@ the appropriate version of PowerShellGet and other system requirements. Run the
2323
to see if you have PowerShellGet installed on your system.
2424

2525
```powershell
26-
Get-Module PowerShellGet -list | Select-Object Name,Version,Path
26+
Get-Module -Name PowerShellGet -ListAvailable | Select-Object -Property Name,Version,Path
2727
```
2828

2929
You should see something similar to the following output:
3030

31-
```
31+
```Output
32+
Name Version Path
33+
---- ------- ----
3234
Name Version Path
3335
---- ------- ----
36+
PowerShellGet 1.6.0 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PowerShellGet.psd1
3437
PowerShellGet 1.0.0.1 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PowerShellGet.psd1
3538
```
3639

40+
You need PowerShellGet version 1.1.2.0 or higher. To update PowerShellGet, use the following command:
41+
42+
```powershell
43+
Install-Module PowerShellGet -Force
44+
```
45+
3746
If you do not have PowerShellGet installed, see the [How to get PowerShellGet](#how-to-get-powershellget)
3847
section of this article.
3948

4049
> [!NOTE]
4150
> Using PowerShellGet requires an Execution Policy that allows you to run scripts. For more
4251
> information about PowerShell's Execution Policy, see
43-
> [About Execution Policies](https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.core/about/about_execution_policies).
52+
> [About Execution Policies](/powershell/module/microsoft.powershell.core/about/about_execution_policies).
4453
4554
## Step 2: Install Azure PowerShell
4655

@@ -49,13 +58,13 @@ following command from an elevated PowerShell session:
4958

5059
```powershell
5160
# Install the Azure Resource Manager modules from the PowerShell Gallery
52-
Install-Module AzureRM
61+
Install-Module -Name AzureRM -AllowClobber
5362
```
5463

5564
By default, the PowerShell gallery is not configured as a Trusted repository for PowerShellGet. The
5665
first time you use the PSGallery you see the following prompt:
5766

58-
```
67+
```Output
5968
Untrusted repository
6069
6170
You are installing the modules from an untrusted repository. If you trust this repository, change
@@ -69,7 +78,7 @@ Answer 'Yes' or 'Yes to All' to continue with the installation.
6978

7079
> [!NOTE]
7180
> If you have a version older than 2.8.5.201 of NuGet, you are prompted to download and install
72-
the latest version of NuGet.
81+
> the latest version of NuGet.
7382
7483
The AzureRM module is a rollup module for the Azure Resource Manager cmdlets. When you install the
7584
AzureRM module, any Azure PowerShell module not previously installed is downloaded and from the
@@ -85,7 +94,7 @@ do this in a normal (non-elevated) PowerShell session. Modules are loaded using
8594
cmdlet, as follows:
8695

8796
```powershell
88-
Import-Module AzureRM
97+
Import-Module -Name AzureRM
8998
```
9099

91100
## Next Steps
@@ -108,11 +117,11 @@ For more information about using Azure PowerShell, see the following articles:
108117
### Checking the version of Azure PowerShell
109118

110119
Although we encourage you to upgrade to the latest version as early as possible, several versions
111-
of Azure PowerShell are support. To determine the version of Azure PowerShell you have installed,
120+
of Azure PowerShell are supported. To determine the version of Azure PowerShell you have installed,
112121
run `Get-Module AzureRM` from your command line.
113122

114123
```powershell
115-
Get-Module AzureRM -list | Select-Object Name,Version,Path
124+
Get-Module AzureRM -ListAvailable | Select-Object -Property Name,Version,Path
116125
```
117126

118127
### Support for classic deployment methods
@@ -128,7 +137,7 @@ version of each package.
128137
If you have a previous version of Azure PowerShell installed that includes the Service Management
129138
module, you may receive the following error:
130139

131-
```
140+
```Output
132141
PackageManagement\Install-Package : A command with name 'Get-AzureStorageContainerAcl' is already
133142
available on this system. This module 'Azure.Storage' may override the existing commands. If you
134143
still want to install this module 'Azure.Storage', use -AllowClobber parameter.
@@ -145,7 +154,7 @@ the following command:
145154

146155
```powershell
147156
# Install the Azure Resource Manager modules from the PowerShell Gallery
148-
Install-Module AzureRM -AllowClobber
157+
Install-Module -Name AzureRM -AllowClobber
149158
```
150159

151160
For more information, see the help topic for
@@ -167,7 +176,7 @@ Only one version of the module can be loaded in a PowerShell session. You must o
167176
PowerShell window and use `Import-Module` to import a specific version of the AzureRM cmdlets:
168177

169178
```powershell
170-
Import-Module AzureRM -RequiredVersion 1.2.9
179+
Import-Module -Name AzureRM -RequiredVersion 1.2.9
171180
```
172181

173182
> [!NOTE]

docs-conceptual/azurermps-3.8.0/install-azurerm-ps.md

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.product: azure
99
ms.service: azure-powershell
1010
ms.devlang: powershell
1111
ms.topic: conceptual
12-
ms.date: 05/17/2017
12+
ms.date: 03/27/2018
1313
---
1414

1515
# Install and configure Azure PowerShell
@@ -23,24 +23,33 @@ the appropriate version of PowerShellGet and other system requirements. Run the
2323
to see if you have PowerShellGet installed on your system.
2424

2525
```powershell
26-
Get-Module PowerShellGet -list | Select-Object Name,Version,Path
26+
Get-Module -Name PowerShellGet -ListAvailable | Select-Object -Property Name,Version,Path
2727
```
2828

2929
You should see something similar to the following output:
3030

31-
```
31+
```Output
32+
Name Version Path
33+
---- ------- ----
3234
Name Version Path
3335
---- ------- ----
36+
PowerShellGet 1.6.0 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.6.0\PowerShellGet.psd1
3437
PowerShellGet 1.0.0.1 C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PowerShellGet.psd1
3538
```
3639

40+
You need PowerShellGet version 1.1.2.0 or higher. To update PowerShellGet, use the following command:
41+
42+
```powershell
43+
Install-Module PowerShellGet -Force
44+
```
45+
3746
If you do not have PowerShellGet installed, see the [How to get PowerShellGet](#how-to-get-powershellget)
3847
section of this article.
3948

4049
> [!NOTE]
4150
> Using PowerShellGet requires an Execution Policy that allows you to run scripts. For more
4251
> information about PowerShell's Execution Policy, see
43-
> [About Execution Policies](https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.core/about/about_execution_policies).
52+
> [About Execution Policies](/powershell/module/microsoft.powershell.core/about/about_execution_policies).
4453
4554
## Step 2: Install Azure PowerShell
4655

@@ -49,13 +58,13 @@ following command from an elevated PowerShell session:
4958

5059
```powershell
5160
# Install the Azure Resource Manager modules from the PowerShell Gallery
52-
Install-Module AzureRM
61+
Install-Module -Name AzureRM -AllowClobber
5362
```
5463

5564
By default, the PowerShell gallery is not configured as a Trusted repository for PowerShellGet. The
5665
first time you use the PSGallery you see the following prompt:
5766

58-
```
67+
```Output
5968
Untrusted repository
6069
6170
You are installing the modules from an untrusted repository. If you trust this repository, change
@@ -69,7 +78,7 @@ Answer 'Yes' or 'Yes to All' to continue with the installation.
6978

7079
> [!NOTE]
7180
> If you have a version older than 2.8.5.201 of NuGet, you are prompted to download and install
72-
the latest version of NuGet.
81+
> the latest version of NuGet.
7382
7483
The AzureRM module is a rollup module for the Azure Resource Manager cmdlets. When you install the
7584
AzureRM module, any Azure PowerShell module not previously installed is downloaded and from the
@@ -85,7 +94,7 @@ do this in a normal (non-elevated) PowerShell session. Modules are loaded using
8594
cmdlet, as follows:
8695

8796
```powershell
88-
Import-Module AzureRM
97+
Import-Module -Name AzureRM
8998
```
9099

91100
## Next Steps
@@ -108,11 +117,11 @@ For more information about using Azure PowerShell, see the following articles:
108117
### Checking the version of Azure PowerShell
109118

110119
Although we encourage you to upgrade to the latest version as early as possible, several versions
111-
of Azure PowerShell are support. To determine the version of Azure PowerShell you have installed,
120+
of Azure PowerShell are supported. To determine the version of Azure PowerShell you have installed,
112121
run `Get-Module AzureRM` from your command line.
113122

114123
```powershell
115-
Get-Module AzureRM -list | Select-Object Name,Version,Path
124+
Get-Module AzureRM -ListAvailable | Select-Object -Property Name,Version,Path
116125
```
117126

118127
### Support for classic deployment methods
@@ -128,7 +137,7 @@ version of each package.
128137
If you have a previous version of Azure PowerShell installed that includes the Service Management
129138
module, you may receive the following error:
130139

131-
```
140+
```Output
132141
PackageManagement\Install-Package : A command with name 'Get-AzureStorageContainerAcl' is already
133142
available on this system. This module 'Azure.Storage' may override the existing commands. If you
134143
still want to install this module 'Azure.Storage', use -AllowClobber parameter.
@@ -145,7 +154,7 @@ the following command:
145154

146155
```powershell
147156
# Install the Azure Resource Manager modules from the PowerShell Gallery
148-
Install-Module AzureRM -AllowClobber
157+
Install-Module -Name AzureRM -AllowClobber
149158
```
150159

151160
For more information, see the help topic for
@@ -167,7 +176,7 @@ Only one version of the module can be loaded in a PowerShell session. You must o
167176
PowerShell window and use `Import-Module` to import a specific version of the AzureRM cmdlets:
168177

169178
```powershell
170-
Import-Module AzureRM -RequiredVersion 1.2.9
179+
Import-Module -Name AzureRM -RequiredVersion 1.2.9
171180
```
172181

173182
> [!NOTE]

0 commit comments

Comments
 (0)