Connect MS AZURE to Powershell

Connect MS AZURE  to Powershell

// Allow remote signed scripts to run

Set-ExecutionPolicy RemoteSigned

//Installing the Azure PowerShell modules

Install-Module -Name Az -AllowClobber -Scope CurrentUser

// Import all the Azure modules

Import-Module Az -Verbose

// Connect to your Azure account

Connect-AzAccount

// Get all resource groups running in a particular region

Get-AzResourceGroup -Location centralus