Referring to How to install and configure Azure PowerShell from Microsoft, I had tried to install Azure PowerShell 1.0 in my Windows 2012 R2 Server successfully
There are two type of installation here
1. Installing Azure PowerShell from WebPI – Easy way as it can be done in GUI
2. Installing Azure PowerShell from Gallery – using PowerShell
My Steps to install Azure PowerShell 1.0 or greater in Windows 2012 R2
1. Updating Windows Management Framework 5 – For PowerShell Module Discovery, Install and Inventory with PowerShellGet
2. Install-PackageProvider – NuGet
Set-PSRepository for PSGallery to Trusted
3. Install & Update AzureRM Module (31 Modules installed) in C:\Program Files\WindowsPowerShell\Modules
Please refer to the following detail PowerShell Coding for reference
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
Set-PSRepository -InstallationPolicy Trusted -Name PSGallery
Get-PSRepository
Install-module AzureRM
Install-AzureRM -Verbose -Force
#Update to version 1.3.0
Update-Module AzureRM -Verbose
Import-AzureRM
Get-InstalledModule | Measure-Object
#This non-interactive login method only works with a work or school account.
#A work or school account is a user that is managed by your work or school, and defined in the Azure Active Directory instance for your work or school.
Login-AzureRmAccount
#Check Azure Subscribtion
Get-AzureRmSubscription
Sharing of my experience for this lab
1. Cannot automate the login-AzureRM as Non-interactive login method only works with a work or school account. – I sign for 30 Days Trial Azure Cloud using @outlook.com account
2. Install-PackageProvider will only be available after upgrading to WMF5
Additional Reading
Register Chocolaty which is my favorite Package Source which offering alot of applications, like FireFox, GoogleChrome
#Only PSGalley is availble
Get-PackageSource
#Register Chocolatey
Register-PackageSource -Name chocolatey -Location http://chocolatey.org/api/v2 -Provider PowerShellGet -Trusted -Verbose
#Find Package availble
Find-Package -Name GoogleChrome
#Install Package
Install-Package -Name FireFox