Introduction
#PowerShell, #Bash and #CLI, and the most common language now for how to manage #Azure are very helpful when you need to automate the tasks did you imagine that you can know provision new VM or new SQL on Azure using your mobile though azure mobile app with Powershell. 💥⛈
If you asked me what is the best? I will be told you nothing all of them are very powerful language and choosing which one of them depends on your past experiences If you are coming from background windows so the PowerShell is the most compatibles with you and if you are coming from Linux background Bash will be the most compatible with you.
Take Control of the Cloud with the Windows Azure PowerShell Cmdlets https://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/WAD-B305#fbid=
How I prepare my local PC to be able to manage azure using theses language?
This is our post of today, all of us know that we have the availability to write PowerShell or Bach code from Azure portal itself😲 . But if we need to manage the portal from our PC, we need to install some tools and import some modules, at the end of the post you will find most of the tools and requirements and advanced tools you can use it on your local PC or on-Premises server to manage Azure.🦾
Note🚦: If you didn’t used Cloud shell before on Azure portal, when you start it portal will ask you to create Storage account for more information check this post “Step by Step How to Enable Azure Cloud Shell in Microsoft Azure“🚀
Azure Cloud Shell
AS i explained above ⬆ How we can enable cloud shell on azure portal i need to share with you YouTube channel you can learn from it more information about how to use cloud shell
How to Enable Azure AZ module
- Open PowerShell on your Local PC AS administrator
- Install Az module using this first command
- Check the Az module after installation using last two command
Install-Module -Name Az -AllowClobber -Force -Verbose
Get-InstalledModule -Name Az -AllVersions | select Name,Version
Get-Module -ListAvailable *Az*
Enable Azure CLI on Windows PowerShell
- Download and install MSI installer using this link (Install Azure CLI on Windows)
- Open Windows PowerShell As Administrator and Write Az
- If you need to enable the interactive mode only write Az interactive
Enable Azure Module
- Open Windows PowerShell As Administrator
- Execute below two PowerShell Command
Install-Module Azure -AllowClobber -Force -Verbose
Import-Module Azure -Force -Verbose
Enable AzureRM Module
- Open Windows PowerShell As Administrator
- Execute below two PowerShell Command
- Check the Module after installation using second command
Install-Module AzureRM -AllowClobber -force -Verbose
Get-Module -ListAvailable *Azure*
Check Azure Module Versions
Get-InstalledModule Azure -AllVersions | Select-Object Name,Version,Path
Get-InstalledModule AzureRM -AllVersions | Select-Object Name,Version,Path
Get-InstalledModule Az -AllVersions | Select-Object Name,Version,Path

Azure Support
In case if you have any issue on these steps you can contact me or leave your comment by your issue and i will do my best to support you otherwise you can communicate with Microsoft support team they are very supportive and they will fix to you all of your issues
- Open ticket with Azure Support
- Open Ticket with azure support using azure portal search about “Help + support” then you can open your case easily.
- Azure Support Twitter Profile
Most used tools for Managing azure from on-Premises
Tool Name | Site Link |
Azure Portal | https://portal.azure.com/ |
Azure account | https://account.azure.com/Profile |
.Net Framework 4.7 | https://docs.microsoft.com/en-us/dotnet/framework/install/ |
Windows Powershell | https://github.com/powershell/powershell |
Azure Studio | https://docs.microsoft.com/en-us/sql/azure-data-studio/what-is?view=sql-server-ver15 |
Install Azure CLI | https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest |
Install Azure PowerShell Module | https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-3.6.1&viewFallbackFrom=azps-1.2.0#install-the-azure-powershell-module |
Install AzCopy Command-Line Tool for Azure Storage | https://aka.ms/downloadazcopy |
Install Azure Storage Emulator | https://go.microsoft.com/fwlink/?LinkId=717179&clcid=0x409 |
Azure Storage Explore | https://azure.microsoft.com/en-us/features/storage-explorer |
Install PowerShell Module Manger 2020 | https://www.sapien.com/software/powershell_modulemanager |
Conclusion
It is very important now to know how to use these languages or at least one of them to be able to automate and custom your azure tasks from your azure portal, PC or even your mobile phone using an azure mobile application.
One thought on “How to manage Azure using Windows PowerShell”