Posh-MSAL

5.0.1

PowerShell cmdlets wrapping MSAL.NET (Microsoft.Identity.Client) to acquire tokens from Microsoft Entra ID in the public and sovereign clouds.

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Posh-MSAL

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Posh-MSAL

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Lucas Cueff. Based on MSAL.PS, (c) 2021 Jason Thompson, MIT License.

Package Details

Author(s)

  • MS-LUF

Tags

MSAL Microsoft.Identity.Client EntraID AzureAD SovereignCloud BleuCloud Windows Linux

Functions

Add-MsalClientApplication Add-MsalEnvironment Clear-MsalTokenCache Enable-MsalTokenCacheOnDisk Get-MsalAccount Get-MsalClientApplication Get-MsalEnvironment Get-MsalFeatureSupport Get-MsalToken New-MsalClientApplication Remove-MsalClientApplication Remove-MsalEnvironment Select-MsalClientApplication Set-MsalEnvironment

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

5.0.0: first Posh-MSAL release: MSAL.NET 4.92, Linux, public and sovereign clouds (-Environment, *-MsalEnvironment), encrypted token cache on disk on Windows and Linux.

FileList

Version History

Version Downloads Last updated
5.0.1 (current version) 8 11/9/2026