If you want to manage Azure from
powershell, then you need to install Azure powershell modules, without that you can’t
manage any Azure resources using powershell.
So here is the question how to
install azure powershell ?
Normally from windows 7 onwards
powershell is inbuilt feature of windows.
To install azure powershell on
you system there are two methods, one is using Webpi and another one is
using powershell, please follow as mentioned below.
Method 1.
Installing Azure PowerShell 1.0 and greater from WebPI is
the same as it was for 0.9.x. Download Azure PowerSehll Download
and start the install. If you have Azure PowerShell 0.9.x installed, version
0.9.x will be uninstalled as part of the upgrade. If you installed Azure
PowerShell modules from PowerShell Gallery, the installer automatically removes
the modules before installation to ensure a consistent Azure PowerShell
environment.
Method 2.
Open Windows powershell ISE as
Administrator mode, and type below commands.
#
Install the Azure Resource Manager modules from the PowerShell Gallery
Install-Module
AzureRM
#
Install the Azure Service Management module from the PowerShell Gallery
Install-Module
Azure
#Set Execution Policy as remote Signed so that we can import script.
Set-ExecutionPolicy remotesigned
#Import the module now.
Import-Module azurerm
Once Azure PowerShell Installed, you
are good to go and manage Azure.
No comments:
Post a Comment