One of the easiest and fastest ways to access and work on azure resource is through PowerShell. To enable Azure access through PowerShell we need to install a module called Az. Please follow below steps to successfully install and access Azure from Windows 7.
Step 1: Open Windows PowerShell cmd as Administrator and check for PowerShell version, because Az PowerShell works with PS v 5.1 or higher.
Step 2: Run the below command which installs the module Az in your system. Click “Yes to All” to continue with the installation.
Install-Module -Name Az –AllowClobber
It will take few minutes to install,
Step 3: Once the installation is over, we can check by connecting to Azure account.
Import-Module Az.Accounts
Connect-AzAccount
In my case, I end up with an error as shown below,
So now I need to upgrade my .NET Framework version 4.7.2 or above. We can download .NET Framework from here and install it in your system if you don’t have .NET Framework 4.7.2 or above.
Step 4: After successful installation, run and it will prompt for the credential to access Azure portal.
Connect-AzAccount
After successful connection, we can see our account and other details as show below
In the upcoming articles we will see how to make use of Az PowerShell for various operations. Thank you for your time.
Happy Coding
Ahamed
Leave a comment