To install Azure PowerShell on Linux we first need install PowerShell Core (PowerShell 7 or later) and then install the…