How to Install, Run and Login Azure PowerShell on Windows

shape
shape
shape
shape
shape
shape
shape
shape
How to Install, Run and Login Azure PowerShell on Windows

This article describes How to Install, Run and Login Azure PowerShell on Windows

Microsoft is a leading global vendor of computer software; hardware for computer, mobile and gaming systems; and cloud services. Microsoft's corporate headquarters is located in Redmond, Wash., and it has offices in more than 60 countries.

Microsoft Azure is an ever-expanding set of cloud services to help your organisation meet your business challenges. It’s the freedom to build, manage and deploy applications on a massive, global network using your favourite tools and frameworks.

Azure provides solutions for all industries. Bring together cloud services and products tailored for your industry to help meet your specific needs and drive innovation.

Azure is the only consistent hybrid cloud, has more regions than any cloud provider, delivers unparalleled developer productivity and offers more comprehensive compliance coverage – including meeting the requirements of the General Data Protection Regulation (GDPR).

PowerShell lets you write commands and execute them immediately. This is known as interactive mode.

A PowerShell command is called a cmdlet (pronounced "command-let"). A cmdlet is a command that manipulates a single feature. The term cmdlet is intended to imply "small command". By convention, cmdlet authors are encouraged to keep cmdlets simple and single-purpose.

Cmdlets are shipped in modules. A PowerShell Module is a DLL that includes the code to process each available cmdlet. You load cmdlets into PowerShell by loading the module they are contained in. You can get a list of loaded modules using the Get-Module command.

Az is the formal name for the Azure PowerShell module containing cmdlets to work with Azure features. It contains hundreds of cmdlets that let you control nearly every aspect of every Azure resource. You can work with resource groups, storage, virtual machines, Azure Active Directory, containers, machine learning, and so on. This module is an open source component available on GitHub.

To install the latest Azure PowerShell module, run the following commands:
Open the Start menu and type Windows PowerShell.
Right-click the Windows PowerShell icon and select Run as administrator.
In the User Account Control dialog, select Yes.
Type the following command, and then press Enter:
Install-Module -Name Az -AllowClobber

You can check whether this is the case by executing the command Get-ExecutionPolicy. If it returns "Restricted", then do the following:
Open an elevated PowerShell command prompt.
Use the SetExecutionPolicy cmdlet to change the policy to "RemoteSigned":
Set-ExecutionPolicy RemoteSigned

Import-Module Az
Get-Module

The Connect-AzAccount cmdlet prompts for your Azure credentials and then connects to your Azure subscription. It has many optional parameters, but if all you need is an interactive prompt, no parameters are needed:
Connect-AzAccount

Please subscribe to support our channel.
To be aware of our new videos please subscribe our channel.

Visit our website https://sdk-it.com
Visit our youtube channel
Watch IT & Learn IT & Apply IT.

Enjoy!