@@ -37,13 +37,11 @@ There are no additional requirements for Azure PowerShell when using PowerShell
37
37
38
38
## Install the Azure PowerShell module
39
39
40
- > [ !IMPORTANT]
41
- >
42
- > You can have both the AzureRM and Az modules installed at the same time. If you have both modules installed, __ don't enable aliases__ .
43
- > Enabling aliases will cause conflicts between AzureRM cmdlets and Az command aliases, and could cause unexpected behavior.
44
- > It's recommended that before installing the Az module, you uninstall AzureRM. You can always uninstall AzureRM or enable aliases
45
- > at any time. To learn about the AzureRM command aliases, see [ Migrate from AzureRM to Az] ( migrate-from-azurerm-to-az.md ) .
46
- > For uninstall instructions, see [ Uninstall the AzureRM module] ( uninstall-az-ps.md#uninstall-the-azurerm-module ) .
40
+ > [ !WARNING]
41
+ > You __ can't__ have both the AzureRM and Az modules installed for PowerShell 5.1 for Windows at the same time. If you need to keep AzureRM available
42
+ > on your system, install the Az module for PowerShell Core 6.x or later. To do this,
43
+ > [ install PowerShell Core 6.x or later] ( https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows )
44
+ > and then follow these instructions in a PowerShell Core terminal.
47
45
48
46
To install modules at a global scope, you need elevated privileges to install modules from the PowerShell Gallery. To install Azure PowerShell,
49
47
run the following command in an elevated session ("Run as Administrator" on Windows, or with superuser privileges on macOS or Linux):
@@ -76,6 +74,34 @@ Answer `Yes` or `Yes to All` to continue with the installation.
76
74
The Az module is a rollup module for the Azure PowerShell cmdlets. Installing it downloads all of
77
75
the available Azure Resource Manager modules, and makes their cmdlets available for use.
78
76
77
+ ## Troubleshooting
78
+
79
+ Here are some common problems seen when installing the Azure PowerShell module. If you experience a problem not listed here,
80
+ please [ file an issue on GitHub] ( https://github.com/azure/azure-powershell/issues ) .
81
+
82
+ ### Proxy blocks connection
83
+
84
+ If you get errors from ` Install-Module ` that indicate the PowerShell Gallery is unreachable, you may be behind
85
+ a proxy. Different operating systems will have different requirements for configuring a system-wide proxy, which
86
+ are not covered in detail here. Contact your system administrator for your proxy settings and how to configure
87
+ them for your OS.
88
+
89
+ PowerShell itself may not be configured to use this proxy automatically. With PowerShell 5.1 and later, configure
90
+ the proxy to use for a PowerShell session with the following command:
91
+
92
+ ``` powershell
93
+ (New-Object System.Net.WebClient).Proxy.Credentials = `
94
+ [System.Net.CredentialCache]::DefaultNetworkCredentials
95
+ ```
96
+
97
+ If your operating system credentials are configured correctly, this will route PowerShell requests through the proxy.
98
+ In order to have this setting persist between sessions, add the command to a
99
+ [ PowerShell profile] ( /powershell/module/microsoft.powershell.core/about/about_profiles ) .
100
+
101
+ In order to install the package, your proxy needs to allow HTTPS connections to the following address:
102
+
103
+ * ` https://www.powershellgallery.com `
104
+
79
105
## Sign in
80
106
81
107
To start working with Azure PowerShell, sign in with your Azure credentials.
0 commit comments